diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-gnome/gnome/gnome-doc-utils/use-usr-bin-env-for-python-in-xml2po.patch | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
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.patch | 30 |
1 files changed, 30 insertions, 0 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 new file mode 100644 index 0000000000..0e196c0634 --- /dev/null +++ b/meta/recipes-gnome/gnome/gnome-doc-utils/use-usr-bin-env-for-python-in-xml2po.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | We can't use #!/full/path/to/python -u as this can be longer than shebang | ||
2 | allows for. In order to be appropraite for upstream more work would be | ||
3 | needed to make sure that the main xml2po code doesn't rely on python | ||
4 | being invoked with -u (force stdin/out/err to be used raw). | ||
5 | |||
6 | Upstream-Status: Inappropriate [Would break behavior on Windows] | ||
7 | Signed-off-by: Constantin Musca <constantinx.musca@intel.com> | ||
8 | |||
9 | Index: gnome-doc-utils-0.20.10/xml2po/xml2po/Makefile.am | ||
10 | =================================================================== | ||
11 | --- gnome-doc-utils-0.20.10.orig/xml2po/xml2po/Makefile.am | ||
12 | +++ gnome-doc-utils-0.20.10/xml2po/xml2po/Makefile.am | ||
13 | @@ -7,7 +7,6 @@ CLEANFILES = xml2po | ||
14 | |||
15 | xml2po: xml2po.py.in | ||
16 | $(AM_V_GEN)sed -e "s/^VERSION =.*/VERSION = \"@VERSION@\"/" \ | ||
17 | - -e "s+^#!.*python.*+#!$(PYTHON)+" \ | ||
18 | < $(srcdir)/xml2po.py.in > xml2po | ||
19 | $(AM_V_at)chmod +x xml2po | ||
20 | |||
21 | Index: gnome-doc-utils-0.20.10/xml2po/xml2po/xml2po.py.in | ||
22 | =================================================================== | ||
23 | --- gnome-doc-utils-0.20.10.orig/xml2po/xml2po/xml2po.py.in | ||
24 | +++ gnome-doc-utils-0.20.10/xml2po/xml2po/xml2po.py.in | ||
25 | @@ -1,4 +1,4 @@ | ||
26 | -#!/usr/bin/python -u | ||
27 | +#!/usr/bin/env python | ||
28 | # -*- encoding: utf-8 -*- | ||
29 | # Copyright (c) 2004, 2005, 2006 Danilo Ĺ egan <danilo@gnome.org>. | ||
30 | # Copyright (c) 2009 Claude Paroz <claude@2xlibre.net>. | ||