summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/itstool/itstool/0002-Don-t-use-build-time-hardcoded-python-binary-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/itstool/itstool/0002-Don-t-use-build-time-hardcoded-python-binary-path.patch')
-rw-r--r--meta/recipes-support/itstool/itstool/0002-Don-t-use-build-time-hardcoded-python-binary-path.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-support/itstool/itstool/0002-Don-t-use-build-time-hardcoded-python-binary-path.patch b/meta/recipes-support/itstool/itstool/0002-Don-t-use-build-time-hardcoded-python-binary-path.patch
new file mode 100644
index 0000000000..b91105330c
--- /dev/null
+++ b/meta/recipes-support/itstool/itstool/0002-Don-t-use-build-time-hardcoded-python-binary-path.patch
@@ -0,0 +1,29 @@
1From cd9b56224895576125e91cca317ace8a80f3eb77 Mon Sep 17 00:00:00 2001
2From: Piotr Tworek <tworaz@tworaz.net>
3Date: Sat, 27 Jul 2019 10:19:11 +0200
4Subject: [PATCH] Don't use build time hardcoded python binary path.
5
6This path obviously won't work on target since they refer to build
7machine directory structure. Native builds will also fail if local.conf
8has INHERIT+=rm_work. Instread of hardcoding path to python binary use
9whatever is found in PATH first. This should also allow the tool to use
10python3 binary provided in recipe-sysroot-native.
11
12Upstream-Status: Inappropriate [OE specific]
13---
14 itstool.in | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/itstool.in b/itstool.in
18index b3c0033..7df2476 100755
19--- a/itstool.in
20+++ b/itstool.in
21@@ -1,4 +1,4 @@
22-#!@PYTHON@ -s
23+#!/usr/bin/env -S python3 -s
24 #
25 # Copyright (c) 2010-2018 Shaun McCance <shaunm@gnome.org>
26 #
27--
282.21.0
29