File: usr-bin-plots.patch

package info (click to toggle)
plots 0.8.5%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,612 kB
  • sloc: python: 3,247; xml: 443; sh: 26; makefile: 6
file content (24 lines) | stat: -rw-r--r-- 1,059 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Fix GLSL 3.30 is not supported & use GL renderer
 This patch is based on ideas visible from
 https://github.com/alexhuntley/Plots/pull/152, especially
 commit f5959427b6cc84ee6c8a280efeb84f7140450b04. However, the final version of
 this PR, effective 2025-09-23, does not cover running plots from command line. 
Bug: https://github.com/alexhuntley/Plots/issues/151
Origin: backport, https://github.com/alexhuntley/Plots/pull/152/commits/f5959427b6cc84ee6c8a280efeb84f7140450b04
Forwarded: not-needed
Author: Sven Geuer <sge@debian.org>
Last-Update: 2025-09-23
----
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/debian/plots/usr/bin/plots	2025-09-23 14:23:54.223694968 +0200
+++ b/debian/plots/usr/bin/plots	2025-09-23 14:32:29.334998755 +0200
@@ -2,6 +2,9 @@
 # EASY-INSTALL-ENTRY-SCRIPT: 'Plots==0.8.5','gui_scripts','plots'
 import re
 import sys
+import os
+os.environ["GDK_DEBUG"] = "gl-prefer-gl"
+os.environ["GSK_RENDERER"] = "gl"
 
 # for compatibility with easy_install; see #2198
 __requires__ = 'Plots==0.8.5'