summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/classes/itstool.bbclass5
-rw-r--r--meta-oe/recipes-support/itstool/itstool/0001-Native-Don-t-use-build-time-hardcoded-python-binary-.patch35
-rw-r--r--meta-oe/recipes-support/itstool/itstool/0002-Don-t-use-build-time-hardcoded-python-binary-path.patch (renamed from meta-oe/recipes-support/itstool/itstool/0001-Don-t-use-build-time-hardcoded-python-binary-path.patch)0
-rw-r--r--meta-oe/recipes-support/itstool/itstool_2.0.6.bb6
4 files changed, 44 insertions, 2 deletions
diff --git a/meta-oe/classes/itstool.bbclass b/meta-oe/classes/itstool.bbclass
new file mode 100644
index 000000000..45e3fb839
--- /dev/null
+++ b/meta-oe/classes/itstool.bbclass
@@ -0,0 +1,5 @@
1# helper class to prepare correct environment for native itstool
2
3inherit python3native
4
5DEPENDS_append = " itstool-native"
diff --git a/meta-oe/recipes-support/itstool/itstool/0001-Native-Don-t-use-build-time-hardcoded-python-binary-.patch b/meta-oe/recipes-support/itstool/itstool/0001-Native-Don-t-use-build-time-hardcoded-python-binary-.patch
new file mode 100644
index 000000000..19a858bd7
--- /dev/null
+++ b/meta-oe/recipes-support/itstool/itstool/0001-Native-Don-t-use-build-time-hardcoded-python-binary-.patch
@@ -0,0 +1,35 @@
1From 335ef14fc801c9dfbe7e5692dc71cfbe72049d2b Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Sun, 27 Oct 2019 16:38:52 +0100
4Subject: [PATCH] Native: Don't use build time hardcoded python binary path.
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9This is same patch as used for target build except that we do not use the
10'-S' and '-s' option because '-S' is relatively young [1] and elder build-host
11don't support it [2]
12
13[1] https://github.com/coreutils/coreutils/commit/668306ed86c8c79b0af0db8b9c882654ebb66db2#diff-83d9d52b1f12ac589739ab1334ae4f30
14[2] https://errors.yoctoproject.org/Errors/Details/274743/
15
16Upstream-Status: Inappropriate [OE specific]
17
18Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
19---
20 itstool.in | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23diff --git a/itstool.in b/itstool.in
24index e64cd34..05d264f 100755
25--- a/itstool.in
26+++ b/itstool.in
27@@ -1,4 +1,4 @@
28-#!@PYTHON@ -s
29+#!/usr/bin/env python3
30 #
31 # Copyright (c) 2010-2018 Shaun McCance <shaunm@gnome.org>
32 #
33--
342.21.0
35
diff --git a/meta-oe/recipes-support/itstool/itstool/0001-Don-t-use-build-time-hardcoded-python-binary-path.patch b/meta-oe/recipes-support/itstool/itstool/0002-Don-t-use-build-time-hardcoded-python-binary-path.patch
index b91105330..b91105330 100644
--- a/meta-oe/recipes-support/itstool/itstool/0001-Don-t-use-build-time-hardcoded-python-binary-path.patch
+++ b/meta-oe/recipes-support/itstool/itstool/0002-Don-t-use-build-time-hardcoded-python-binary-path.patch
diff --git a/meta-oe/recipes-support/itstool/itstool_2.0.6.bb b/meta-oe/recipes-support/itstool/itstool_2.0.6.bb
index b4b37aa01..8290c5e58 100644
--- a/meta-oe/recipes-support/itstool/itstool_2.0.6.bb
+++ b/meta-oe/recipes-support/itstool/itstool_2.0.6.bb
@@ -7,8 +7,10 @@ inherit autotools python3native
7 7
8DEPENDS = "libxml2-native" 8DEPENDS = "libxml2-native"
9 9
10SRC_URI = "http://files.itstool.org/${BPN}/${BPN}-${PV}.tar.bz2 \ 10SRC_URI = "http://files.itstool.org/${BPN}/${BPN}-${PV}.tar.bz2"
11 file://0001-Don-t-use-build-time-hardcoded-python-binary-path.patch" 11SRC_URI_append_class-native = " file://0001-Native-Don-t-use-build-time-hardcoded-python-binary-.patch"
12SRC_URI_append_class-target = " file://0002-Don-t-use-build-time-hardcoded-python-binary-path.patch"
13
12SRC_URI[md5sum] = "4306eeba4f4aee6b393d14f9c3c57ca1" 14SRC_URI[md5sum] = "4306eeba4f4aee6b393d14f9c3c57ca1"
13SRC_URI[sha256sum] = "6233cc22726a9a5a83664bf67d1af79549a298c23185d926c3677afa917b92a9" 15SRC_URI[sha256sum] = "6233cc22726a9a5a83664bf67d1af79549a298c23185d926c3677afa917b92a9"
14 16