diff options
Diffstat (limited to 'recipes-security/selinux/libselinux_3.6.bb')
-rw-r--r-- | recipes-security/selinux/libselinux_3.6.bb | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/recipes-security/selinux/libselinux_3.6.bb b/recipes-security/selinux/libselinux_3.6.bb index dab4965..b0dcde6 100644 --- a/recipes-security/selinux/libselinux_3.6.bb +++ b/recipes-security/selinux/libselinux_3.6.bb | |||
@@ -8,18 +8,16 @@ LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0" | |||
8 | 8 | ||
9 | require selinux_common.inc | 9 | require selinux_common.inc |
10 | 10 | ||
11 | inherit lib_package pkgconfig python3targetconfig | 11 | inherit lib_package pkgconfig |
12 | 12 | ||
13 | FILESEXTRAPATHS:prepend := "${THISDIR}/libselinux:" | 13 | FILESEXTRAPATHS:prepend := "${THISDIR}/libselinux:" |
14 | SRC_URI += "\ | 14 | SRC_URI += "\ |
15 | file://0001-Makefile-fix-python-modules-install-path-for-multili.patch \ | ||
16 | file://0002-Do-not-use-PYCEXT-and-rely-on-the-installed-file-nam.patch \ | ||
17 | file://0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch \ | 15 | file://0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch \ |
18 | " | 16 | " |
19 | 17 | ||
20 | S = "${WORKDIR}/git/libselinux" | 18 | S = "${WORKDIR}/git/libselinux" |
21 | 19 | ||
22 | DEPENDS = "libsepol libpcre2 swig-native python3-setuptools-scm-native" | 20 | DEPENDS = "libsepol libpcre2" |
23 | DEPENDS:append:libc-musl = " fts" | 21 | DEPENDS:append:libc-musl = " fts" |
24 | 22 | ||
25 | def get_policyconfigarch(d): | 23 | def get_policyconfigarch(d): |
@@ -32,29 +30,4 @@ def get_policyconfigarch(d): | |||
32 | EXTRA_OEMAKE = "${@get_policyconfigarch(d)}" | 30 | EXTRA_OEMAKE = "${@get_policyconfigarch(d)}" |
33 | EXTRA_OEMAKE:append:libc-musl = " FTS_LDLIBS=-lfts" | 31 | EXTRA_OEMAKE:append:libc-musl = " FTS_LDLIBS=-lfts" |
34 | 32 | ||
35 | do_compile:append() { | ||
36 | oe_runmake pywrap -j1 \ | ||
37 | PYLIBVER='python${PYTHON_BASEVERSION}' \ | ||
38 | PYINC='-I${STAGING_INCDIR}/${PYLIBVER}' \ | ||
39 | PYLIBS='-L${STAGING_LIBDIR}/${PYLIBVER} -l${PYLIBVER}' | ||
40 | } | ||
41 | |||
42 | do_install:append() { | ||
43 | oe_runmake install-pywrap \ | ||
44 | DESTDIR=${D} \ | ||
45 | PREFIX=${prefix} | ||
46 | PYLIBVER='python${PYTHON_BASEVERSION}' \ | ||
47 | PYTHONLIBDIR='${PYTHON_SITEPACKAGES_DIR}' | ||
48 | |||
49 | # Fix buildpaths issue | ||
50 | sed -i -e 's,${WORKDIR},,g' \ | ||
51 | ${D}${PYTHON_SITEPACKAGES_DIR}/selinux-${PV}.dist-info/direct_url.json | ||
52 | } | ||
53 | |||
54 | PACKAGES += "${PN}-python" | ||
55 | RDEPENDS:${PN}-python = "python3-core python3-shell" | ||
56 | |||
57 | FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*" | ||
58 | INSANE_SKIP:${PN}-python = "dev-so" | ||
59 | |||
60 | BBCLASSEXTEND = "native" | 33 | BBCLASSEXTEND = "native" |