diff options
| author | Yi Zhao <yi.zhao@windriver.com> | 2020-04-14 15:41:47 +0800 |
|---|---|---|
| committer | Joe MacDonald <joe_macdonald@mentor.com> | 2020-04-15 14:58:16 -0400 |
| commit | 65086a9972bf345a72c5c1f40dfb3209e1059ccf (patch) | |
| tree | c35f5873e718ba26da7d5017ec853b3dba6bf247 /recipes-security/selinux/libselinux-python.inc | |
| parent | a1db7a9925d781450595641692b44cb5353155cc (diff) | |
| download | meta-selinux-65086a9972bf345a72c5c1f40dfb3209e1059ccf.tar.gz | |
libselinux-python: upgrade to 3.0 (20191204)
* Inherit python3native as the libselinux uses python distutils to install
selinux python bindings now.
* Add a patch to fix python modules install path for multilib.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'recipes-security/selinux/libselinux-python.inc')
| -rw-r--r-- | recipes-security/selinux/libselinux-python.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/recipes-security/selinux/libselinux-python.inc b/recipes-security/selinux/libselinux-python.inc index 6a64473..3760fd8 100644 --- a/recipes-security/selinux/libselinux-python.inc +++ b/recipes-security/selinux/libselinux-python.inc | |||
| @@ -7,9 +7,9 @@ LICENSE = "PD" | |||
| 7 | 7 | ||
| 8 | FILESEXTRAPATHS_prepend := "${THISDIR}/libselinux:" | 8 | FILESEXTRAPATHS_prepend := "${THISDIR}/libselinux:" |
| 9 | 9 | ||
| 10 | inherit python3-dir | 10 | inherit python3native |
| 11 | 11 | ||
| 12 | DEPENDS += "python3 swig-native" | 12 | DEPENDS += "python3 swig-native libpcre libsepol" |
| 13 | RDEPENDS_${PN} += "libselinux python3-core python3-shell" | 13 | RDEPENDS_${PN} += "libselinux python3-core python3-shell" |
| 14 | 14 | ||
| 15 | def get_policyconfigarch(d): | 15 | def get_policyconfigarch(d): |
| @@ -24,6 +24,7 @@ EXTRA_OEMAKE += "LDFLAGS='${LDFLAGS} -lpcre' LIBSEPOLA='${STAGING_LIBDIR}/libsep | |||
| 24 | EXTRA_OEMAKE_append_libc-musl = " FTS_LDLIBS=-lfts" | 24 | EXTRA_OEMAKE_append_libc-musl = " FTS_LDLIBS=-lfts" |
| 25 | 25 | ||
| 26 | FILES_${PN} = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" | 26 | FILES_${PN} = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" |
| 27 | INSANE_SKIP_${PN} = "dev-so" | ||
| 27 | 28 | ||
| 28 | do_compile() { | 29 | do_compile() { |
| 29 | oe_runmake pywrap -j1 \ | 30 | oe_runmake pywrap -j1 \ |
| @@ -34,7 +35,7 @@ do_compile() { | |||
| 34 | 35 | ||
| 35 | do_install() { | 36 | do_install() { |
| 36 | oe_runmake install-pywrap \ | 37 | oe_runmake install-pywrap \ |
| 37 | PYCEXT='.so' \ | 38 | DESTDIR=${D} \ |
| 38 | PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ | 39 | PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' \ |
| 39 | PYTHONLIBDIR='${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages' | 40 | PYTHONLIBDIR='${libdir}/python${PYTHON_BASEVERSION}/site-packages' |
| 40 | } | 41 | } |
