diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2019-11-14 09:48:54 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2019-12-19 11:09:21 -0500 |
commit | 751d5a3f2abb7cf629136fd6dc752d63477058cf (patch) | |
tree | d4686ce5f61e78d2e2cab48225f36d1120a5c7c5 /recipes-security/selinux/selinux-python.inc | |
parent | 72a6a1f88bd43bf5ff47e019868b0b4a9ab2a619 (diff) | |
download | meta-selinux-751d5a3f2abb7cf629136fd6dc752d63477058cf.tar.gz |
selinux-python: uprev to 2.9 (20190315)
* Switch to python3
* Drop patches:
fix-TypeError-for-seobject.py.patch
process-ValueError-for-sepolicy-seobject.patch
* Rebase patches
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'recipes-security/selinux/selinux-python.inc')
-rw-r--r-- | recipes-security/selinux/selinux-python.inc | 62 |
1 files changed, 29 insertions, 33 deletions
diff --git a/recipes-security/selinux/selinux-python.inc b/recipes-security/selinux/selinux-python.inc index 8b34bff..5e27781 100644 --- a/recipes-security/selinux/selinux-python.inc +++ b/recipes-security/selinux/selinux-python.inc | |||
@@ -6,60 +6,54 @@ SELinux utilities audit2allow, chcat, semanage ..." | |||
6 | SECTION = "base" | 6 | SECTION = "base" |
7 | LICENSE = "GPLv2+" | 7 | LICENSE = "GPLv2+" |
8 | 8 | ||
9 | SRC_URI += "file://fix-sepolicy-install-path.patch \ | 9 | SRC_URI += "file://fix-sepolicy-install-path.patch" |
10 | file://fix-TypeError-for-seobject.py.patch \ | ||
11 | file://process-ValueError-for-sepolicy-seobject.patch \ | ||
12 | " | ||
13 | 10 | ||
14 | inherit python-dir | 11 | inherit python3-dir |
15 | 12 | ||
16 | DEPENDS += "python-native libsepol" | 13 | DEPENDS += "python3 libsepol" |
17 | RDEPENDS_${BPN}-audit2allow += "\ | 14 | RDEPENDS_${BPN}-audit2allow += "\ |
18 | python-core \ | 15 | python3-core \ |
19 | python-textutils \ | ||
20 | libselinux-python \ | 16 | libselinux-python \ |
21 | ${BPN}-sepolgen \ | 17 | ${BPN}-sepolgen \ |
22 | " | 18 | " |
23 | RDEPENDS_${BPN}-chcat += "\ | 19 | RDEPENDS_${BPN}-chcat += "\ |
24 | python-core \ | 20 | python3-core \ |
25 | python-codecs \ | 21 | python3-codecs \ |
26 | python-shell \ | 22 | python3-shell \ |
27 | python-stringold \ | 23 | python3-stringold \ |
28 | python-unixadmin \ | 24 | python3-unixadmin \ |
29 | libselinux-python \ | 25 | libselinux-python \ |
30 | ${BPN} \ | 26 | ${BPN} \ |
31 | " | 27 | " |
32 | RDEPENDS_${BPN} += "\ | 28 | RDEPENDS_${BPN} += "\ |
33 | python-core \ | 29 | python3-core \ |
34 | python-codecs \ | 30 | python3-codecs \ |
35 | python-io \ | 31 | python3-io \ |
36 | python-ipy \ | 32 | python3-ipy \ |
37 | python-re \ | 33 | python3-stringold \ |
38 | python-stringold \ | 34 | python3-syslog \ |
39 | python-syslog \ | 35 | python3-unixadmin \ |
40 | python-unixadmin \ | ||
41 | libselinux-python \ | 36 | libselinux-python \ |
42 | libsemanage-python \ | 37 | libsemanage-python \ |
43 | setools \ | 38 | setools \ |
44 | " | 39 | " |
45 | RDEPENDS_${BPN}-semanage += "\ | 40 | RDEPENDS_${BPN}-semanage += "\ |
46 | python-core \ | 41 | python3-core \ |
47 | python-ipy \ | 42 | python3-ipy \ |
48 | python-compression \ | 43 | python3-compression \ |
49 | python-xml \ | 44 | python3-xml \ |
50 | python-misc \ | 45 | python3-misc \ |
51 | libselinux-python \ | 46 | libselinux-python \ |
52 | ${BPN} \ | 47 | ${BPN} \ |
53 | " | 48 | " |
54 | RDEPENDS_${BPN}-sepolicy += "\ | 49 | RDEPENDS_${BPN}-sepolicy += "\ |
55 | python-argparse \ | 50 | python3-core \ |
56 | python-codecs \ | 51 | python3-codecs \ |
57 | python-core \ | 52 | python3-syslog \ |
58 | python-syslog \ | ||
59 | ${BPN} \ | 53 | ${BPN} \ |
60 | " | 54 | " |
61 | RDEPENDS_${BPN}-sepolgen-ifgen += "\ | 55 | RDEPENDS_${BPN}-sepolgen-ifgen += "\ |
62 | python \ | 56 | python3-core \ |
63 | libselinux-python \ | 57 | libselinux-python \ |
64 | " | 58 | " |
65 | 59 | ||
@@ -96,7 +90,7 @@ FILES_${PN}-sepolgen += "\ | |||
96 | ${libdir}/python${PYTHON_BASEVERSION}/site-packages/sepolgen* \ | 90 | ${libdir}/python${PYTHON_BASEVERSION}/site-packages/sepolgen* \ |
97 | ${localstatedir}/lib/sepolgen/perm_map \ | 91 | ${localstatedir}/lib/sepolgen/perm_map \ |
98 | " | 92 | " |
99 | # Map to policycoreutils-python in 2.6 | 93 | |
100 | FILES_${PN} += "\ | 94 | FILES_${PN} += "\ |
101 | ${libdir}/python${PYTHON_BASEVERSION}/site-packages/seobject.py* \ | 95 | ${libdir}/python${PYTHON_BASEVERSION}/site-packages/seobject.py* \ |
102 | ${libdir}/python${PYTHON_BASEVERSION}/site-packages/sepolicy*.egg-info \ | 96 | ${libdir}/python${PYTHON_BASEVERSION}/site-packages/sepolicy*.egg-info \ |
@@ -104,9 +98,11 @@ FILES_${PN} += "\ | |||
104 | " | 98 | " |
105 | 99 | ||
106 | EXTRA_OEMAKE += "LIBSEPOLA=${STAGING_LIBDIR}/libsepol.a" | 100 | EXTRA_OEMAKE += "LIBSEPOLA=${STAGING_LIBDIR}/libsepol.a" |
101 | |||
107 | do_install() { | 102 | do_install() { |
108 | oe_runmake DESTDIR=${D} \ | 103 | oe_runmake DESTDIR="${D}" \ |
109 | LIBDIR="${libdir}" \ | 104 | LIBDIR="${libdir}" \ |
105 | PYLIBVER='python${PYTHON_BASEVERSION}' \ | ||
110 | PYTHONLIBDIR='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \ | 106 | PYTHONLIBDIR='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \ |
111 | install | 107 | install |
112 | } | 108 | } |