mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-08 08:16:23 +00:00
itstool was reworked in [1] to not use host's python. This patch introduced the
'-S' option for coreutils's env [2]. Unfortunately that option is relatively
young [3] and elder build-host don't support it [4].
The only way to get around this is:
* remove '-S' and -s' from native shebang
* add a class itstool.bbclass. This class depends itstool-native and creates a
valid python3 runtime environment. Most notable in the environment is
export PYTHONNOUSERSITE = "1"
which does same as '-s' option: force python to avoid adding (host) user sites.
[1] http://cgit.openembedded.org/meta-openembedded/commit/meta-oe/recipes-support/itstool/itstool/0001-Don-t-use-build-time-hardcoded-python-binary-path.patch?id=e5ac325b7974a346b218d1f43b92d06f5b0dd078
[2] http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-support/itstool/itstool/0001-Don-t-use-build-time-hardcoded-python-binary-path.patch
[3] 668306ed86 (diff-83d9d52b1f12ac589739ab1334ae4f30)
[4] https://errors.yoctoproject.org/Errors/Details/274743/
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
21 lines
771 B
BlitzBasic
21 lines
771 B
BlitzBasic
SUMMARY = "ITS Tool allows you to translate your XML documents with PO files"
|
|
HOMEPAGE = "http://itstool.org/"
|
|
LICENSE = "GPLv3"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=59c57b95fd7d0e9e238ebbc7ad47c5a5"
|
|
|
|
inherit autotools python3native
|
|
|
|
DEPENDS = "libxml2-native"
|
|
|
|
SRC_URI = "http://files.itstool.org/${BPN}/${BPN}-${PV}.tar.bz2"
|
|
SRC_URI_append_class-native = " file://0001-Native-Don-t-use-build-time-hardcoded-python-binary-.patch"
|
|
SRC_URI_append_class-target = " file://0002-Don-t-use-build-time-hardcoded-python-binary-path.patch"
|
|
|
|
SRC_URI[md5sum] = "4306eeba4f4aee6b393d14f9c3c57ca1"
|
|
SRC_URI[sha256sum] = "6233cc22726a9a5a83664bf67d1af79549a298c23185d926c3677afa917b92a9"
|
|
|
|
BBCLASSEXTEND = "native"
|
|
|
|
RDEPENDS_${PN} += "libxml2-python"
|
|
RDEPENDS_${PN}_class-native = ""
|