summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/itstool/itstool/0001-Native-Don-t-use-build-time-hardcoded-python-binary-.patch
blob: fdcbe46fedbb26c4207100dc49b6320f15aa1e46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From c47820450ce7f55d22c672cf94d20a5f9fd208bf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
Date: Sun, 27 Oct 2019 16:38:52 +0100
Subject: [PATCH] Native: Don't use build time hardcoded python binary path.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This is same patch as used for target build except that we do not use the
'-S' and '-s' option because '-S' is relatively young [1] and elder build-host
don't support it [2]

[1] https://github.com/coreutils/coreutils/commit/668306ed86c8c79b0af0db8b9c882654ebb66db2#diff-83d9d52b1f12ac589739ab1334ae4f30
[2] https://errors.yoctoproject.org/Errors/Details/274743/

Upstream-Status: Inappropriate [OE specific]

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>

---
 itstool.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/itstool.in b/itstool.in
index c21ad4b..daea177 100755
--- a/itstool.in
+++ b/itstool.in
@@ -1,4 +1,4 @@
-#!@PYTHON@ -s
+#!/usr/bin/env python3
 #
 # Copyright (c) 2010-2018 Shaun McCance <shaunm@gnome.org>
 #