summaryrefslogtreecommitdiffstats
path: root/debian/patches/python3.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:50:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:50:52 +0000
commit907022700e065013d64cc64196ddc175d4c454d6 (patch)
tree218a957b3859521100533257263f435269d02fb4 /debian/patches/python3.patch
parentAdding upstream version 1.3+ds. (diff)
downloadinkscape-907022700e065013d64cc64196ddc175d4c454d6.tar.xz
inkscape-907022700e065013d64cc64196ddc175d4c454d6.zip
Adding debian version 1.3+ds-1.debian/1.3+ds-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/python3.patch')
-rw-r--r--debian/patches/python3.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/python3.patch b/debian/patches/python3.patch
new file mode 100644
index 0000000..db7f644
--- /dev/null
+++ b/debian/patches/python3.patch
@@ -0,0 +1,23 @@
+Description: Don't consider `python` a valid python[23]? interpreter.
+ Just to be safe, don't even try to look it up.
+ Should be safe to drop the patch once python2 is not around anymore.
+Author: Mattia Rizzolo <mattia@debian.org>
+Forwarded: not-needed
+Last-Update: 2020-05-07
+
+--- a/src/extension/implementation/script.cpp
++++ b/src/extension/implementation/script.cpp
+@@ -92,9 +92,11 @@
+ { "python", {"python-interpreter", {"python3" }}},
+ #else
+ { "perl", {"perl-interpreter", {"perl" }}},
+- { "python", {"python-interpreter", {"python3", "python" }}},
++ /* don't consider `python` a valid python(3) interpreter */
++ { "python", {"python-interpreter", {"python3" }}},
+ #endif
+- { "python2", {"python2-interpreter", {"python2", "python" }}},
++ /* don't consider `python` a valid python(2) interpreter either */
++ { "python2", {"python2-interpreter", {"python2" }}},
+ { "ruby", {"ruby-interpreter", {"ruby" }}},
+ { "shell", {"shell-interpreter", {"sh" }}},
+ // clang-format on