diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2023-03-11 21:12:58 +0800 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2023-03-27 09:34:02 -0400 |
commit | e582e169c4e0373839dc085f98cacc484389cf04 (patch) | |
tree | 381a09153b8d2a94c62d1df233de12fcde95cbfc | |
parent | 7c0d8121c336a7a3ea4bef97626ba1ea5684fac4 (diff) | |
download | meta-selinux-e582e169c4e0373839dc085f98cacc484389cf04.tar.gz |
libsemanage: upgrade 3.4 -> 3.5
License-Update: Rename COPYING to LICENSE. No content changes.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r-- | recipes-security/selinux/libsemanage_3.5.bb (renamed from recipes-security/selinux/libsemanage_3.4.bb) | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/recipes-security/selinux/libsemanage_3.4.bb b/recipes-security/selinux/libsemanage_3.5.bb index 7f038ac..93eb870 100644 --- a/recipes-security/selinux/libsemanage_3.4.bb +++ b/recipes-security/selinux/libsemanage_3.5.bb | |||
@@ -5,7 +5,7 @@ as by programs like load_policy that need to perform specific transformations \ | |||
5 | on binary policies such as customizing policy boolean settings." | 5 | on binary policies such as customizing policy boolean settings." |
6 | SECTION = "base" | 6 | SECTION = "base" |
7 | LICENSE = "LGPL-2.1-or-later" | 7 | LICENSE = "LGPL-2.1-or-later" |
8 | LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343" | 8 | LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=a6f89e2100d9b6cdffcea4f398e37343" |
9 | 9 | ||
10 | require selinux_common.inc | 10 | require selinux_common.inc |
11 | 11 | ||
@@ -29,23 +29,24 @@ PACKAGES =+ "${PN}-python" | |||
29 | # For /usr/libexec/selinux/semanage_migrate_store | 29 | # For /usr/libexec/selinux/semanage_migrate_store |
30 | RDEPENDS:${PN}-python = "python3-core" | 30 | RDEPENDS:${PN}-python = "python3-core" |
31 | 31 | ||
32 | FILES:${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/* \ | 32 | FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/* \ |
33 | ${libexecdir}/selinux/semanage_migrate_store" | 33 | ${libexecdir}/selinux/semanage_migrate_store" |
34 | FILES:${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug/*" | 34 | FILES:${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug/*" |
35 | FILES:${PN} += "${libexecdir}" | 35 | FILES:${PN} += "${libexecdir}" |
36 | 36 | ||
37 | do_compile:append() { | 37 | do_compile:append() { |
38 | oe_runmake pywrap \ | 38 | oe_runmake pywrap \ |
39 | PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ | 39 | PYLIBVER='python${PYTHON_BASEVERSION}' \ |
40 | PYINC='-I${STAGING_INCDIR}/${PYLIBVER}' \ | 40 | PYINC='-I${STAGING_INCDIR}/${PYLIBVER}' \ |
41 | PYLIBS='-L${STAGING_LIBDIR}/${PYLIBVER} -l${PYLIBVER}' | 41 | PYLIBS='-L${STAGING_LIBDIR}/${PYLIBVER} -l${PYLIBVER}' |
42 | } | 42 | } |
43 | 43 | ||
44 | do_install:append() { | 44 | do_install:append() { |
45 | oe_runmake install-pywrap \ | 45 | oe_runmake install-pywrap \ |
46 | DESTDIR=${D} \ | ||
46 | PYCEXT='.so' \ | 47 | PYCEXT='.so' \ |
47 | PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ | 48 | PYLIBVER='python${PYTHON_BASEVERSION}' \ |
48 | PYTHONLIBDIR='${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages' | 49 | PYTHONLIBDIR='${PYTHON_SITEPACKAGES_DIR}' |
49 | 50 | ||
50 | # Update "policy-version" for semanage.conf | 51 | # Update "policy-version" for semanage.conf |
51 | sed -i 's/^#\s*\(policy-version\s*=\).*$/\1 33/' \ | 52 | sed -i 's/^#\s*\(policy-version\s*=\).*$/\1 33/' \ |