blob: 19e05f1b996fc46bbe0e1df2e3efddd4a4ac2358 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 80e6aff72affa6d92f5abd7ff6353dfc4a7bff38 Mon Sep 17 00:00:00 2001
Patrick Williamsc0f7c042017-02-23 20:41:17 -06002From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 31 Aug 2016 16:44:46 +0300
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08004Subject: [PATCH] Do not hardocode paths to perl/python in scripts.
Patrick Williamsc0f7c042017-02-23 20:41:17 -06005
6Doing so when the interpreters are somewhere deep in a sysroot directory
7can reach the shebang line limit, and resulting scripts wouldn't work
8on targets either.
9
10Upstream-Status: Inappropriate [oe-core specific]
11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Brad Bishop316dfdd2018-06-25 12:45:53 -040012
Patrick Williamsc0f7c042017-02-23 20:41:17 -060013---
Brad Bishop316dfdd2018-06-25 12:45:53 -040014 gtkdoc-check.in | 2 +-
15 gtkdoc-depscan.in | 2 +-
16 gtkdoc-fixxref.in | 2 +-
17 gtkdoc-mkdb.in | 2 +-
18 gtkdoc-mkhtml.in | 2 +-
19 gtkdoc-mkman.in | 2 +-
20 gtkdoc-mkpdf.in | 2 +-
21 gtkdoc-rebase.in | 2 +-
22 gtkdoc-scan.in | 2 +-
23 gtkdoc-scangobj.in | 2 +-
24 tests/tools.sh.in | 2 +-
25 11 files changed, 11 insertions(+), 11 deletions(-)
Patrick Williamsc0f7c042017-02-23 20:41:17 -060026
27diff --git a/gtkdoc-check.in b/gtkdoc-check.in
Brad Bishop316dfdd2018-06-25 12:45:53 -040028index 8c8e917..f6a25f6 100755
Patrick Williamsc0f7c042017-02-23 20:41:17 -060029--- a/gtkdoc-check.in
30+++ b/gtkdoc-check.in
31@@ -1,4 +1,4 @@
Brad Bishop316dfdd2018-06-25 12:45:53 -040032-#!@PYTHON@
33+#!/usr/bin/env python3
34 # -*- python; coding: utf-8 -*-
Patrick Williamsc0f7c042017-02-23 20:41:17 -060035 #
36 # gtk-doc - GTK DocBook documentation generator.
37diff --git a/gtkdoc-depscan.in b/gtkdoc-depscan.in
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080038index 9bfaf30..aadc952 100755
Patrick Williamsc0f7c042017-02-23 20:41:17 -060039--- a/gtkdoc-depscan.in
40+++ b/gtkdoc-depscan.in
41@@ -1,4 +1,4 @@
42-#!@PYTHON@
Brad Bishop316dfdd2018-06-25 12:45:53 -040043+#!/usr/bin/env python3
Patrick Williamsc0f7c042017-02-23 20:41:17 -060044
Brad Bishop316dfdd2018-06-25 12:45:53 -040045 from __future__ import print_function
Patrick Williamsc0f7c042017-02-23 20:41:17 -060046
47diff --git a/gtkdoc-fixxref.in b/gtkdoc-fixxref.in
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080048index 44f6bd1..26fbd93 100755
Patrick Williamsc0f7c042017-02-23 20:41:17 -060049--- a/gtkdoc-fixxref.in
50+++ b/gtkdoc-fixxref.in
51@@ -1,4 +1,4 @@
Brad Bishop316dfdd2018-06-25 12:45:53 -040052-#!@PYTHON@
53+#!/usr/bin/env python3
54 # -*- python -*-
Patrick Williamsc0f7c042017-02-23 20:41:17 -060055 #
56 # gtk-doc - GTK DocBook documentation generator.
57diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
Brad Bishop316dfdd2018-06-25 12:45:53 -040058index 42d5731..3a56d56 100755
Patrick Williamsc0f7c042017-02-23 20:41:17 -060059--- a/gtkdoc-mkdb.in
60+++ b/gtkdoc-mkdb.in
61@@ -1,4 +1,4 @@
Brad Bishop316dfdd2018-06-25 12:45:53 -040062-#!@PYTHON@
63+#!/usr/bin/env python3
64 # -*- python; coding: utf-8 -*-
Patrick Williamsc0f7c042017-02-23 20:41:17 -060065 #
66 # gtk-doc - GTK DocBook documentation generator.
Brad Bishop316dfdd2018-06-25 12:45:53 -040067diff --git a/gtkdoc-mkhtml.in b/gtkdoc-mkhtml.in
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080068index 0d0a15d..914ff55 100755
Brad Bishop316dfdd2018-06-25 12:45:53 -040069--- a/gtkdoc-mkhtml.in
70+++ b/gtkdoc-mkhtml.in
Patrick Williamsc0f7c042017-02-23 20:41:17 -060071@@ -1,4 +1,4 @@
Brad Bishop316dfdd2018-06-25 12:45:53 -040072-#!@PYTHON@
73+#!/usr/bin/env python3
74 # -*- python; coding: utf-8 -*-
75 #
76 # gtk-doc - GTK DocBook documentation generator.
77diff --git a/gtkdoc-mkman.in b/gtkdoc-mkman.in
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080078index c5445cd..65db71a 100755
Brad Bishop316dfdd2018-06-25 12:45:53 -040079--- a/gtkdoc-mkman.in
80+++ b/gtkdoc-mkman.in
81@@ -1,4 +1,4 @@
82-#!@PYTHON@
83+#!/usr/bin/env python3
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 -*-
Patrick Williamsc0f7c042017-02-23 20:41:17 -060095 #
96 # gtk-doc - GTK DocBook documentation generator.
97diff --git a/gtkdoc-rebase.in b/gtkdoc-rebase.in
Brad Bishop316dfdd2018-06-25 12:45:53 -040098index 17a71c2..ec3fd28 100755
Patrick Williamsc0f7c042017-02-23 20:41:17 -060099--- a/gtkdoc-rebase.in
100+++ b/gtkdoc-rebase.in
101@@ -1,4 +1,4 @@
Brad Bishop316dfdd2018-06-25 12:45:53 -0400102-#!@PYTHON@
103+#!/usr/bin/env python3
104 # -*- python -*-
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600105 #
106 # gtk-doc - GTK DocBook documentation generator.
107diff --git a/gtkdoc-scan.in b/gtkdoc-scan.in
Brad Bishop316dfdd2018-06-25 12:45:53 -0400108index 954c811..f461504 100755
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600109--- a/gtkdoc-scan.in
110+++ b/gtkdoc-scan.in
111@@ -1,4 +1,4 @@
Brad Bishop316dfdd2018-06-25 12:45:53 -0400112-#!@PYTHON@
113+#!/usr/bin/env python3
114 # -*- python -*-
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600115 #
116 # gtk-doc - GTK DocBook documentation generator.
117diff --git a/gtkdoc-scangobj.in b/gtkdoc-scangobj.in
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800118index 4cbe130..52c2c24 100755
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600119--- a/gtkdoc-scangobj.in
120+++ b/gtkdoc-scangobj.in
121@@ -1,4 +1,4 @@
Brad Bishop316dfdd2018-06-25 12:45:53 -0400122-#!@PYTHON@
123+#!/usr/bin/env python3
124 # -*- python -*-
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600125 #
126 # gtk-doc - GTK DocBook documentation generator.
127diff --git a/tests/tools.sh.in b/tests/tools.sh.in
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800128index 343844a..9dc6692 100644
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600129--- a/tests/tools.sh.in
130+++ b/tests/tools.sh.in
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800131@@ -30,7 +30,7 @@ done
132 # TODO: also test the module files
133 for file in gtkdoc-check gtkdoc-depscan gtkdoc-fixxref gtkdoc-mkdb gtkdoc-mkhtml gtkdoc-mkhtml2 gtkdoc-mkman gtkdoc-mkpdf gtkdoc-rebase gtkdoc-scangobj; do
Brad Bishop316dfdd2018-06-25 12:45:53 -0400134 fullfile=`which $file`
135- @PYTHON@ -m py_compile $fullfile
136+ python3 -m py_compile $fullfile
137 if test $? != 0 ; then failed=`expr $failed + 1`; fi
138 tested=`expr $tested + 1`
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600139 done