diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2021-03-13 13:50:32 +0800 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2021-03-17 09:39:50 -0400 |
commit | e2895ba1990345a7346b1e910cde1e3d7d04499d (patch) | |
tree | 835ede65ad68a40a3e697bf8a16aadb093ba6aeb | |
parent | b78b413a24cf97f5ebda73bcf36fcb15ffbe1abf (diff) | |
download | meta-selinux-e2895ba1990345a7346b1e910cde1e3d7d04499d.tar.gz |
libselinux-python: update to 3.2
Merge inc file into bb file.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r-- | recipes-security/selinux/libselinux-python_3.1.bb | 26 | ||||
-rw-r--r-- | recipes-security/selinux/libselinux-python_3.2.bb (renamed from recipes-security/selinux/libselinux-python.inc) | 25 |
2 files changed, 17 insertions, 34 deletions
diff --git a/recipes-security/selinux/libselinux-python_3.1.bb b/recipes-security/selinux/libselinux-python_3.1.bb deleted file mode 100644 index 854eca9..0000000 --- a/recipes-security/selinux/libselinux-python_3.1.bb +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | SELINUX_RELEASE = "20200710" | ||
2 | |||
3 | SRC_URI = "https://github.com/SELinuxProject/selinux/releases/download/${SELINUX_RELEASE}/libselinux-${PV}.tar.gz" | ||
4 | |||
5 | require ${BPN}.inc | ||
6 | |||
7 | inherit python3targetconfig | ||
8 | |||
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0" | ||
10 | |||
11 | SRC_URI[md5sum] = "693680c021feb69a4b258b0370021461" | ||
12 | SRC_URI[sha256sum] = "ea5dcbb4d859e3f999c26a13c630da2f16dff9462e3cc8cb7b458ac157d112e7" | ||
13 | |||
14 | SRC_URI += "\ | ||
15 | file://libselinux-make-O_CLOEXEC-optional.patch \ | ||
16 | file://libselinux-make-SOCK_CLOEXEC-optional.patch \ | ||
17 | file://libselinux-define-FD_CLOEXEC-as-necessary.patch \ | ||
18 | file://0001-Makefile-fix-python-modules-install-path-for-multili.patch \ | ||
19 | file://0001-Do-not-use-PYCEXT-and-rely-on-the-installed-file-nam.patch \ | ||
20 | " | ||
21 | |||
22 | SRC_URI_append_libc-musl = " \ | ||
23 | file://0001-libselinux-do-not-define-gettid-for-musl.patch \ | ||
24 | " | ||
25 | |||
26 | S = "${WORKDIR}/libselinux-${PV}" | ||
diff --git a/recipes-security/selinux/libselinux-python.inc b/recipes-security/selinux/libselinux-python_3.2.bb index 7149d94..b741449 100644 --- a/recipes-security/selinux/libselinux-python.inc +++ b/recipes-security/selinux/libselinux-python_3.2.bb | |||
@@ -4,11 +4,20 @@ process and file security contexts and to obtain security policy \ | |||
4 | decisions. Required for any applications that use the SELinux API." | 4 | decisions. Required for any applications that use the SELinux API." |
5 | SECTION = "base" | 5 | SECTION = "base" |
6 | LICENSE = "PD" | 6 | LICENSE = "PD" |
7 | LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=84b4d2c6ef954a2d4081e775a270d0d0" | ||
7 | 8 | ||
8 | FILESEXTRAPATHS_prepend := "${THISDIR}/libselinux:" | 9 | require selinux_common.inc |
9 | 10 | ||
10 | inherit python3native python3targetconfig | 11 | inherit python3native python3targetconfig |
11 | 12 | ||
13 | FILESEXTRAPATHS_prepend := "${THISDIR}/libselinux:" | ||
14 | SRC_URI += "\ | ||
15 | file://0001-Makefile-fix-python-modules-install-path-for-multili.patch \ | ||
16 | file://0001-Do-not-use-PYCEXT-and-rely-on-the-installed-file-nam.patch \ | ||
17 | " | ||
18 | |||
19 | S = "${WORKDIR}/git/libselinux" | ||
20 | |||
12 | DEPENDS += "python3 swig-native libpcre libsepol" | 21 | DEPENDS += "python3 swig-native libpcre libsepol" |
13 | RDEPENDS_${PN} += "libselinux python3-core python3-shell" | 22 | RDEPENDS_${PN} += "libselinux python3-core python3-shell" |
14 | 23 | ||
@@ -18,8 +27,8 @@ def get_policyconfigarch(d): | |||
18 | p = re.compile('i.86') | 27 | p = re.compile('i.86') |
19 | target = p.sub('i386',target) | 28 | target = p.sub('i386',target) |
20 | return "ARCH=%s" % (target) | 29 | return "ARCH=%s" % (target) |
21 | EXTRA_OEMAKE += "${@get_policyconfigarch(d)}" | ||
22 | 30 | ||
31 | EXTRA_OEMAKE += "${@get_policyconfigarch(d)}" | ||
23 | EXTRA_OEMAKE += "LDFLAGS='${LDFLAGS} -lpcre' LIBSEPOLA='${STAGING_LIBDIR}/libsepol.a'" | 32 | EXTRA_OEMAKE += "LDFLAGS='${LDFLAGS} -lpcre' LIBSEPOLA='${STAGING_LIBDIR}/libsepol.a'" |
24 | EXTRA_OEMAKE_append_libc-musl = " FTS_LDLIBS=-lfts" | 33 | EXTRA_OEMAKE_append_libc-musl = " FTS_LDLIBS=-lfts" |
25 | 34 | ||
@@ -28,14 +37,14 @@ INSANE_SKIP_${PN} = "dev-so" | |||
28 | 37 | ||
29 | do_compile() { | 38 | do_compile() { |
30 | oe_runmake pywrap -j1 \ | 39 | oe_runmake pywrap -j1 \ |
31 | PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ | 40 | PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ |
32 | PYINC='-I${STAGING_INCDIR}/${PYLIBVER}' \ | 41 | PYINC='-I${STAGING_INCDIR}/${PYLIBVER}' \ |
33 | PYLIBS='-L${STAGING_LIBDIR}/${PYLIBVER} -l${PYLIBVER}' | 42 | PYLIBS='-L${STAGING_LIBDIR}/${PYLIBVER} -l${PYLIBVER}' |
34 | } | 43 | } |
35 | 44 | ||
36 | do_install() { | 45 | do_install() { |
37 | oe_runmake install-pywrap \ | 46 | oe_runmake install-pywrap \ |
38 | DESTDIR=${D} \ | 47 | DESTDIR=${D} \ |
39 | PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ | 48 | PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ |
40 | PYTHONLIBDIR='${libdir}/python${PYTHON_BASEVERSION}/site-packages' | 49 | PYTHONLIBDIR='${libdir}/python${PYTHON_BASEVERSION}/site-packages' |
41 | } | 50 | } |