summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gtk-doc/files/0001-Do-not-hardocode-paths-to-perl-python-in-scripts.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-gnome/gtk-doc/files/0001-Do-not-hardocode-paths-to-perl-python-in-scripts.patch')
-rw-r--r--meta/recipes-gnome/gtk-doc/files/0001-Do-not-hardocode-paths-to-perl-python-in-scripts.patch155
1 files changed, 79 insertions, 76 deletions
diff --git a/meta/recipes-gnome/gtk-doc/files/0001-Do-not-hardocode-paths-to-perl-python-in-scripts.patch b/meta/recipes-gnome/gtk-doc/files/0001-Do-not-hardocode-paths-to-perl-python-in-scripts.patch
index 477fc9ae8c..2fe3ab9221 100644
--- a/meta/recipes-gnome/gtk-doc/files/0001-Do-not-hardocode-paths-to-perl-python-in-scripts.patch
+++ b/meta/recipes-gnome/gtk-doc/files/0001-Do-not-hardocode-paths-to-perl-python-in-scripts.patch
@@ -1,7 +1,7 @@
1From 6fab82b93c7bd301eb42448515b02f7cb3306897 Mon Sep 17 00:00:00 2001 1From 928102874bc2339a1d57c6b178877e0c6002cb3a Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 31 Aug 2016 16:44:46 +0300 3Date: Wed, 31 Aug 2016 16:44:46 +0300
4Subject: [PATCH] Do not hardocode paths to perl/python in scripts. 4Subject: [PATCH 1/3] Do not hardocode paths to perl/python in scripts.
5 5
6Doing so when the interpreters are somewhere deep in a sysroot directory 6Doing so when the interpreters are somewhere deep in a sysroot directory
7can reach the shebang line limit, and resulting scripts wouldn't work 7can reach the shebang line limit, and resulting scripts wouldn't work
@@ -9,131 +9,134 @@ on targets either.
9 9
10Upstream-Status: Inappropriate [oe-core specific] 10Upstream-Status: Inappropriate [oe-core specific]
11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
12
12--- 13---
13 gtkdoc-check.in | 2 +- 14 gtkdoc-check.in | 2 +-
14 gtkdoc-common.pl.in | 2 +- 15 gtkdoc-depscan.in | 2 +-
15 gtkdoc-depscan.in | 2 +- 16 gtkdoc-fixxref.in | 2 +-
16 gtkdoc-fixxref.in | 2 +- 17 gtkdoc-mkdb.in | 2 +-
17 gtkdoc-mkdb.in | 2 +- 18 gtkdoc-mkhtml.in | 2 +-
18 gtkdoc-mktmpl.in | 2 +- 19 gtkdoc-mkman.in | 2 +-
19 gtkdoc-rebase.in | 2 +- 20 gtkdoc-mkpdf.in | 2 +-
20 gtkdoc-scan.in | 2 +- 21 gtkdoc-rebase.in | 2 +-
21 gtkdoc-scangobj.in | 2 +- 22 gtkdoc-scan.in | 2 +-
22 tests/tools.sh.in | 4 ++-- 23 gtkdoc-scangobj.in | 2 +-
23 10 files changed, 11 insertions(+), 11 deletions(-) 24 tests/tools.sh.in | 2 +-
25 11 files changed, 11 insertions(+), 11 deletions(-)
24 26
25diff --git a/gtkdoc-check.in b/gtkdoc-check.in 27diff --git a/gtkdoc-check.in b/gtkdoc-check.in
26index 560d69b..b60857f 100755 28index 8c8e917..f6a25f6 100755
27--- a/gtkdoc-check.in 29--- a/gtkdoc-check.in
28+++ b/gtkdoc-check.in 30+++ b/gtkdoc-check.in
29@@ -1,4 +1,4 @@ 31@@ -1,4 +1,4 @@
30-#!@PERL@ -w 32-#!@PYTHON@
31+#!/usr/bin/env perl 33+#!/usr/bin/env python3
32 # -*- cperl -*- 34 # -*- python; coding: utf-8 -*-
33 #
34 # gtk-doc - GTK DocBook documentation generator.
35diff --git a/gtkdoc-common.pl.in b/gtkdoc-common.pl.in
36index 4747396..cfadb78 100644
37--- a/gtkdoc-common.pl.in
38+++ b/gtkdoc-common.pl.in
39@@ -1,4 +1,4 @@
40-#!@PERL@ -w
41+#!/usr/bin/env perl
42 # -*- cperl -*-
43 # 35 #
44 # gtk-doc - GTK DocBook documentation generator. 36 # gtk-doc - GTK DocBook documentation generator.
45diff --git a/gtkdoc-depscan.in b/gtkdoc-depscan.in 37diff --git a/gtkdoc-depscan.in b/gtkdoc-depscan.in
46index 83af01b..917e247 100644 38index 9bfaf30..aadc952 100644
47--- a/gtkdoc-depscan.in 39--- a/gtkdoc-depscan.in
48+++ b/gtkdoc-depscan.in 40+++ b/gtkdoc-depscan.in
49@@ -1,4 +1,4 @@ 41@@ -1,4 +1,4 @@
50-#!@PYTHON@ 42-#!@PYTHON@
51+#!/usr/bin/env python 43+#!/usr/bin/env python3
52 44
53 import gzip, os.path, re 45 from __future__ import print_function
54 46
55diff --git a/gtkdoc-fixxref.in b/gtkdoc-fixxref.in 47diff --git a/gtkdoc-fixxref.in b/gtkdoc-fixxref.in
56index 3d9e8d0..d55190b 100755 48index 0ea02d4..bdd443a 100755
57--- a/gtkdoc-fixxref.in 49--- a/gtkdoc-fixxref.in
58+++ b/gtkdoc-fixxref.in 50+++ b/gtkdoc-fixxref.in
59@@ -1,4 +1,4 @@ 51@@ -1,4 +1,4 @@
60-#!@PERL@ -w 52-#!@PYTHON@
61+#!/usr/bin/env perl 53+#!/usr/bin/env python3
62 # -*- cperl -*- 54 # -*- python -*-
63 # 55 #
64 # gtk-doc - GTK DocBook documentation generator. 56 # gtk-doc - GTK DocBook documentation generator.
65diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in 57diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
66index 8dd6d5e..d808750 100755 58index 42d5731..3a56d56 100755
67--- a/gtkdoc-mkdb.in 59--- a/gtkdoc-mkdb.in
68+++ b/gtkdoc-mkdb.in 60+++ b/gtkdoc-mkdb.in
69@@ -1,4 +1,4 @@ 61@@ -1,4 +1,4 @@
70-#!@PERL@ -w 62-#!@PYTHON@
71+#!/usr/bin/env perl 63+#!/usr/bin/env python3
72 # -*- cperl -*- 64 # -*- python; coding: utf-8 -*-
65 #
66 # gtk-doc - GTK DocBook documentation generator.
67diff --git a/gtkdoc-mkhtml.in b/gtkdoc-mkhtml.in
68index 0d0a15d..914ff55 100644
69--- a/gtkdoc-mkhtml.in
70+++ b/gtkdoc-mkhtml.in
71@@ -1,4 +1,4 @@
72-#!@PYTHON@
73+#!/usr/bin/env python3
74 # -*- python; coding: utf-8 -*-
73 # 75 #
74 # gtk-doc - GTK DocBook documentation generator. 76 # gtk-doc - GTK DocBook documentation generator.
75diff --git a/gtkdoc-mktmpl.in b/gtkdoc-mktmpl.in 77diff --git a/gtkdoc-mkman.in b/gtkdoc-mkman.in
76index c64dfd3..2f46c18 100755 78index c5445cd..65db71a 100644
77--- a/gtkdoc-mktmpl.in 79--- a/gtkdoc-mkman.in
78+++ b/gtkdoc-mktmpl.in 80+++ b/gtkdoc-mkman.in
79@@ -1,4 +1,4 @@ 81@@ -1,4 +1,4 @@
80-#!@PERL@ -w 82-#!@PYTHON@
81+#!/usr/bin/env perl 83+#!/usr/bin/env python3
82 # -*- cperl -*- 84 # -*- python; coding: utf-8 -*-
85 #
86 # gtk-doc - GTK DocBook documentation generator.
87diff --git a/gtkdoc-mkpdf.in b/gtkdoc-mkpdf.in
88index e8c0c03..f807236 100755
89--- a/gtkdoc-mkpdf.in
90+++ b/gtkdoc-mkpdf.in
91@@ -1,4 +1,4 @@
92-#!@PYTHON@
93+#!/usr/bin/env python3
94 # -*- python; coding: utf-8 -*-
83 # 95 #
84 # gtk-doc - GTK DocBook documentation generator. 96 # gtk-doc - GTK DocBook documentation generator.
85diff --git a/gtkdoc-rebase.in b/gtkdoc-rebase.in 97diff --git a/gtkdoc-rebase.in b/gtkdoc-rebase.in
86index 375482d..cf05b45 100644 98index 17a71c2..ec3fd28 100755
87--- a/gtkdoc-rebase.in 99--- a/gtkdoc-rebase.in
88+++ b/gtkdoc-rebase.in 100+++ b/gtkdoc-rebase.in
89@@ -1,4 +1,4 @@ 101@@ -1,4 +1,4 @@
90-#!@PERL@ -w 102-#!@PYTHON@
91+#!/usr/bin/env perl 103+#!/usr/bin/env python3
92 # -*- cperl -*- 104 # -*- python -*-
93 # 105 #
94 # gtk-doc - GTK DocBook documentation generator. 106 # gtk-doc - GTK DocBook documentation generator.
95diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in 107diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in
96index 048e5c9..78c6136 100755 108index 954c811..f461504 100755
97--- a/gtkdoc-scan.in 109--- a/gtkdoc-scan.in
98+++ b/gtkdoc-scan.in 110+++ b/gtkdoc-scan.in
99@@ -1,4 +1,4 @@ 111@@ -1,4 +1,4 @@
100-#!@PERL@ -w 112-#!@PYTHON@
101+#!/usr/bin/env perl 113+#!/usr/bin/env python3
102 # -*- cperl -*- 114 # -*- python -*-
103 # 115 #
104 # gtk-doc - GTK DocBook documentation generator. 116 # gtk-doc - GTK DocBook documentation generator.
105diff --git a/gtkdoc-scangobj.in b/gtkdoc-scangobj.in 117diff --git a/gtkdoc-scangobj.in b/gtkdoc-scangobj.in
106index fb66b76..67ee8f7 100644 118index 4cbe130..52c2c24 100644
107--- a/gtkdoc-scangobj.in 119--- a/gtkdoc-scangobj.in
108+++ b/gtkdoc-scangobj.in 120+++ b/gtkdoc-scangobj.in
109@@ -1,4 +1,4 @@ 121@@ -1,4 +1,4 @@
110-#!@PERL@ -w 122-#!@PYTHON@
111+#!/usr/bin/env perl 123+#!/usr/bin/env python3
112 # -*- cperl -*- 124 # -*- python -*-
113 # 125 #
114 # gtk-doc - GTK DocBook documentation generator. 126 # gtk-doc - GTK DocBook documentation generator.
115diff --git a/tests/tools.sh.in b/tests/tools.sh.in 127diff --git a/tests/tools.sh.in b/tests/tools.sh.in
116index a114a42..7073883 100644 128index 4d301d0..565fc1e 100644
117--- a/tests/tools.sh.in 129--- a/tests/tools.sh.in
118+++ b/tests/tools.sh.in 130+++ b/tests/tools.sh.in
119@@ -11,7 +11,7 @@ echo "Running suite(s): gtk-doc-$suite"; 131@@ -31,7 +31,7 @@ done
120 132 # TODO: test python 2 and 3 (python3 -mcompileall gtkdoc/*.py)
121 # test perl scripts 133 for file in gtkdoc-check gtkdoc-depscan gtkdoc-fixxref gtkdoc-mkdb gtkdoc-mkhtml gtkdoc-mkman gtkdoc-mkpdf gtkdoc-rebase gtkdoc-scangobj; do
122 for file in gtkdoc-check gtkdoc-fixxref gtkdoc-mkdb gtkdoc-mktmpl gtkdoc-rebase gtkdoc-scan gtkdoc-scangobj ; do 134 fullfile=`which $file`
123- @PERL@ -cwT `which $file` 135- @PYTHON@ -m py_compile $fullfile
124+ perl -cwT `which $file` 136+ python3 -m py_compile $fullfile
125 if test $? = 1 ; then failed=`expr $failed + 1`; fi 137 if test $? != 0 ; then failed=`expr $failed + 1`; fi
126 tested=`expr $tested + 1` 138 tested=`expr $tested + 1`
127 done 139 done
128@@ -34,7 +34,7 @@ done
129
130
131 # test python scripts
132-@PYTHON@ -m py_compile `which gtkdoc-depscan`
133+python -m py_compile `which gtkdoc-depscan`
134 if test $? != 0 ; then failed=`expr $failed + 1`; fi
135 tested=`expr $tested + 1`
136
137-- 140--
1382.9.3 1412.14.1
139 142