summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-04-06 10:10:47 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-04-12 17:27:53 +0100
commit55a03fca7f717ae5d2195f26195ea477db3e50c0 (patch)
tree946d80e99cc87effb5fb515a41e8f11f367776d5 /meta/recipes-support
parente1365064bea70381e05536c1a2877986bc57b1ab (diff)
downloadpoky-55a03fca7f717ae5d2195f26195ea477db3e50c0.tar.gz
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>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/libseccomp/libseccomp_2.5.5.bb10
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/recipes-support/libseccomp/libseccomp_2.5.5.bb b/meta/recipes-support/libseccomp/libseccomp_2.5.5.bb
index 06ba5e9c98..478e5f4289 100644
--- a/meta/recipes-support/libseccomp/libseccomp_2.5.5.bb
+++ b/meta/recipes-support/libseccomp/libseccomp_2.5.5.bb
@@ -17,10 +17,12 @@ S = "${WORKDIR}/git"
17 17
18inherit autotools-brokensep pkgconfig ptest features_check 18inherit autotools-brokensep pkgconfig ptest features_check
19 19
20inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3native', '', d)}
21
20REQUIRED_DISTRO_FEATURES = "seccomp" 22REQUIRED_DISTRO_FEATURES = "seccomp"
21 23
22PACKAGECONFIG ??= "" 24PACKAGECONFIG ??= ""
23PACKAGECONFIG[python] = "--enable-python, --disable-python, python3" 25PACKAGECONFIG[python] = "--enable-python, --disable-python, python3-cython-native"
24 26
25DISABLE_STATIC = "" 27DISABLE_STATIC = ""
26 28
@@ -48,9 +50,13 @@ do_install_ptest() {
48 for file in $(find tools/.libs/* -executable -type f); do 50 for file in $(find tools/.libs/* -executable -type f); do
49 install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tools 51 install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tools
50 done 52 done
53 # fix python shebang
54 sed -i -e 's@cmd /usr/bin/env python @cmd /usr/bin/env python3 @' ${D}/${PTEST_PATH}/tests/regression
55 sed -i -e 's@^#!/usr/bin/env python$@#!/usr/bin/env python3@' ${D}/${PTEST_PATH}/tests/*.py
51} 56}
52 57
53FILES:${PN} = "${bindir} ${libdir}/${BPN}.so*" 58FILES:${PN} = "${bindir} ${libdir}/${BPN}.so* ${PYTHON_SITEPACKAGES_DIR}/"
54FILES:${PN}-dbg += "${libdir}/${PN}/tests/.debug/* ${libdir}/${PN}/tools/.debug" 59FILES:${PN}-dbg += "${libdir}/${PN}/tests/.debug/* ${libdir}/${PN}/tools/.debug"
55 60
61RDEPENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3', '', d)}"
56RDEPENDS:${PN}-ptest = "coreutils bash" 62RDEPENDS:${PN}-ptest = "coreutils bash"