summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gnome/gnome-doc-utils/use-usr-bin-env-for-python-in-xml2po.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-gnome/gnome/gnome-doc-utils/use-usr-bin-env-for-python-in-xml2po.patch')
-rw-r--r--meta/recipes-gnome/gnome/gnome-doc-utils/use-usr-bin-env-for-python-in-xml2po.patch25
1 files changed, 11 insertions, 14 deletions
diff --git a/meta/recipes-gnome/gnome/gnome-doc-utils/use-usr-bin-env-for-python-in-xml2po.patch b/meta/recipes-gnome/gnome/gnome-doc-utils/use-usr-bin-env-for-python-in-xml2po.patch
index a285ad2789..0e196c0634 100644
--- a/meta/recipes-gnome/gnome/gnome-doc-utils/use-usr-bin-env-for-python-in-xml2po.patch
+++ b/meta/recipes-gnome/gnome/gnome-doc-utils/use-usr-bin-env-for-python-in-xml2po.patch
@@ -1,30 +1,27 @@
1Upstream-Status="Inappropriate [Would break behavior on Windows]"
2
3We can't use #!/full/path/to/python -u as this can be longer than shebang 1We can't use #!/full/path/to/python -u as this can be longer than shebang
4allows for. In order to be appropraite for upstream more work would be 2allows for. In order to be appropraite for upstream more work would be
5needed to make sure that the main xml2po code doesn't rely on python 3needed to make sure that the main xml2po code doesn't rely on python
6being invoked with -u (force stdin/out/err to be used raw). 4being invoked with -u (force stdin/out/err to be used raw).
7---
8 xml2po/xml2po/Makefile.am | 1 -
9 xml2po/xml2po/xml2po.py.in | 2 +-
10 2 files changed, 1 insertion(+), 2 deletions(-)
11 5
12Index: gnome-doc-utils-0.20.6/xml2po/xml2po/Makefile.am 6Upstream-Status: Inappropriate [Would break behavior on Windows]
7Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
8
9Index: gnome-doc-utils-0.20.10/xml2po/xml2po/Makefile.am
13=================================================================== 10===================================================================
14--- gnome-doc-utils-0.20.6.orig/xml2po/xml2po/Makefile.am 11--- gnome-doc-utils-0.20.10.orig/xml2po/xml2po/Makefile.am
15+++ gnome-doc-utils-0.20.6/xml2po/xml2po/Makefile.am 12+++ gnome-doc-utils-0.20.10/xml2po/xml2po/Makefile.am
16@@ -7,7 +7,6 @@ CLEANFILES = xml2po 13@@ -7,7 +7,6 @@ CLEANFILES = xml2po
17 14
18 xml2po: xml2po.py.in 15 xml2po: xml2po.py.in
19 sed -e "s/^VERSION =.*/VERSION = \"@VERSION@\"/" \ 16 $(AM_V_GEN)sed -e "s/^VERSION =.*/VERSION = \"@VERSION@\"/" \
20- -e "s+^#!.*python.*+#!$(PYTHON)+" \ 17- -e "s+^#!.*python.*+#!$(PYTHON)+" \
21 < $(srcdir)/xml2po.py.in > xml2po 18 < $(srcdir)/xml2po.py.in > xml2po
22 chmod +x xml2po 19 $(AM_V_at)chmod +x xml2po
23 20
24Index: gnome-doc-utils-0.20.6/xml2po/xml2po/xml2po.py.in 21Index: gnome-doc-utils-0.20.10/xml2po/xml2po/xml2po.py.in
25=================================================================== 22===================================================================
26--- gnome-doc-utils-0.20.6.orig/xml2po/xml2po/xml2po.py.in 23--- gnome-doc-utils-0.20.10.orig/xml2po/xml2po/xml2po.py.in
27+++ gnome-doc-utils-0.20.6/xml2po/xml2po/xml2po.py.in 24+++ gnome-doc-utils-0.20.10/xml2po/xml2po/xml2po.py.in
28@@ -1,4 +1,4 @@ 25@@ -1,4 +1,4 @@
29-#!/usr/bin/python -u 26-#!/usr/bin/python -u
30+#!/usr/bin/env python 27+#!/usr/bin/env python