mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
libseccomp: Fix build when python packageconfig is enabled
It needs additional tweaks with python enabled (From OE-Core rev: c3568ee00d3b7f6b421020dfec8005a27c2e9164) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -17,10 +17,12 @@ S = "${WORKDIR}/git"
|
|||||||
|
|
||||||
inherit autotools-brokensep pkgconfig ptest features_check
|
inherit autotools-brokensep pkgconfig ptest features_check
|
||||||
|
|
||||||
|
inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3native', '', d)}
|
||||||
|
|
||||||
REQUIRED_DISTRO_FEATURES = "seccomp"
|
REQUIRED_DISTRO_FEATURES = "seccomp"
|
||||||
|
|
||||||
PACKAGECONFIG ??= ""
|
PACKAGECONFIG ??= ""
|
||||||
PACKAGECONFIG[python] = "--enable-python, --disable-python, python3"
|
PACKAGECONFIG[python] = "--enable-python, --disable-python, python3-cython-native"
|
||||||
|
|
||||||
DISABLE_STATIC = ""
|
DISABLE_STATIC = ""
|
||||||
|
|
||||||
@@ -48,9 +50,13 @@ do_install_ptest() {
|
|||||||
for file in $(find tools/.libs/* -executable -type f); do
|
for file in $(find tools/.libs/* -executable -type f); do
|
||||||
install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tools
|
install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tools
|
||||||
done
|
done
|
||||||
|
# fix python shebang
|
||||||
|
sed -i -e 's@cmd /usr/bin/env python @cmd /usr/bin/env python3 @' ${D}/${PTEST_PATH}/tests/regression
|
||||||
|
sed -i -e 's@^#!/usr/bin/env python$@#!/usr/bin/env python3@' ${D}/${PTEST_PATH}/tests/*.py
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES:${PN} = "${bindir} ${libdir}/${BPN}.so*"
|
FILES:${PN} = "${bindir} ${libdir}/${BPN}.so* ${PYTHON_SITEPACKAGES_DIR}/"
|
||||||
FILES:${PN}-dbg += "${libdir}/${PN}/tests/.debug/* ${libdir}/${PN}/tools/.debug"
|
FILES:${PN}-dbg += "${libdir}/${PN}/tests/.debug/* ${libdir}/${PN}/tools/.debug"
|
||||||
|
|
||||||
|
RDEPENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3', '', d)}"
|
||||||
RDEPENDS:${PN}-ptest = "coreutils bash"
|
RDEPENDS:${PN}-ptest = "coreutils bash"
|
||||||
|
|||||||
Reference in New Issue
Block a user