diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-24 02:11:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-24 02:11:45 +0100 |
commit | b49088575eb777ced2551f484da86317332d6087 (patch) | |
tree | bf9a151cf2d61956340d555659ffc098ee1da466 /sys-apps/selinux-python | |
parent | 514d1bbe260df2521fe60f1a3ec87cfcfde1a829 (diff) |
gentoo resync : 24.07.2021
Diffstat (limited to 'sys-apps/selinux-python')
-rw-r--r-- | sys-apps/selinux-python/Manifest | 4 | ||||
-rw-r--r-- | sys-apps/selinux-python/selinux-python-3.2.ebuild | 32 | ||||
-rw-r--r-- | sys-apps/selinux-python/selinux-python-9999.ebuild | 32 |
3 files changed, 60 insertions, 8 deletions
diff --git a/sys-apps/selinux-python/Manifest b/sys-apps/selinux-python/Manifest index aaa471cb4345..bc2a4576362e 100644 --- a/sys-apps/selinux-python/Manifest +++ b/sys-apps/selinux-python/Manifest @@ -1,6 +1,6 @@ DIST selinux-python-3.1.tar.gz 2100549 BLAKE2B c5d207bad60c379259e3bfc8f029f76d4572818cdd41a263498ed4434a70eaf7ff51af7772cfb27de0e9e4af03bcf9906ab0f6a59e88de10e81cbe0e8c5928b8 SHA512 5dd98f77ae8ea8bac6a89ec7def76e12496b9a9f8c9612c4cc1dac7a8e8c60380a00c857426bfefbcb4273706addd2594e9b467f69408ef284f082a09d45bd49 DIST selinux-python-3.2.tar.gz 2101106 BLAKE2B b4b185a7468de68eb2146011a9bc82ffb7db9878517833c1e8dfa23279aec3dfbf46a27b70b17c1e317a2c939bcf6d1748638fd4a078325b853de34ae3c51a6f SHA512 2c3483e27c4ad6942e23e39897e0eccf61b95d685ace62315678cb49739d300d4ca4a7a51fa7a9aacaa98737446a70923855d15827eb6275ffd6999be0b2a755 EBUILD selinux-python-3.1-r2.ebuild 2548 BLAKE2B a449b67df1783f7a74859bb5fda7c6c17d4c71c21abb5e3f286872befd15c6f8b85b0a12b67232682bc4e5bcdb6701c0b926d78b4b428d56cec6f0f264072ca9 SHA512 a7ca65aab8c6c7fbcd16e1b26a0b21569f72ffc10e7784ca6cba5cbc1bf4cb57fc846095abd0056d0e4ddb4dc6065b464defef55053e4d554cf5baa086bd70f1 -EBUILD selinux-python-3.2.ebuild 2387 BLAKE2B a3562c641efba34a9c207bac993b2cbba25fbbc6c232c665296fb9e99f6b34736c576edf69e9cb0770648c19d791afcd161c7a242a275e25758fabe836fa1308 SHA512 16c620571c290dbea57e25ad1c4f9ce2a3bf2542a7cbc5609aee7131a315c16f5f30608da552749c7df043deeaea1a75d9b040bd115c18b83eb55d46ce3076dd -EBUILD selinux-python-9999.ebuild 2388 BLAKE2B 70c5228702559cce48ba1430a0d216a696ab8edb79c5a67611dd214ae3de4c3e95f9e5d93b71bde4e6da9dda0099ab20e6c4268ad1a7a429b76b7a4ed7fc57cd SHA512 c57c79af8c506b93997561024e5fa71191c94be9297eaefff074d5518069b8a3a15ca7ab7db96011c61b6d931c877445d60c2dd809ea765143d2e2ba5da55e2f +EBUILD selinux-python-3.2.ebuild 3090 BLAKE2B 17200335ad8527c654fe58d7819537ee921e9f05e01cbe54c0e79443a46738642754bc6ff098506e2f8f4edc686b5ecfedb560dd0039b334fa07a7735bb8eda0 SHA512 7a9d8988aa4e6af503ab8205fff2a53c009c2a19fe874f6ce613ce7b34a74b0018f924d32fa63c79e636fa64c7d8887c7be6528ceec5d5949c2d7b2414ea8fd6 +EBUILD selinux-python-9999.ebuild 3091 BLAKE2B f808560e53edca86a9bf4048f90f271039c7904da00cc71628ed3e34abbb5c57607ce8dfb408cfcfb98218baab88ffe95d13f044451b9fcbd3023c669ad3d6ba SHA512 badf21087e5b5d43791c2351c25ba2c087e9db7b1ef1a4db3a9bdf9c4283a03399cb999acb5dfb88e9c13c21e1c82f5684f0c041f0f5b081b9861eb2974aac0d MISC metadata.xml 557 BLAKE2B 40a5075b9313be98cc5566696ebdf42dfa77814d2c5907832c06b8f846cb902023949bca3aa1b37a03a756649c6025f5f91357c0f6c73292b864396ea1c118cd SHA512 248d0177b4794bd342b35ce901f91a67227f1d8b256f6a56f06b3d424e94dbfb48b8500623bdccc2e0650402276cc1e50d1a7f475e2b04505ec0d4b4f2b590fe diff --git a/sys-apps/selinux-python/selinux-python-3.2.ebuild b/sys-apps/selinux-python/selinux-python-3.2.ebuild index df7cfa14c519..d0d1993c20a3 100644 --- a/sys-apps/selinux-python/selinux-python-3.2.ebuild +++ b/sys-apps/selinux-python/selinux-python-3.2.ebuild @@ -7,6 +7,8 @@ PYTHON_REQ_USE="xml" inherit python-r1 toolchain-funcs +IUSE="test" +RESTRICT="!test? ( test )" REQUIRED_USE="${PYTHON_REQUIRED_USE}" DESCRIPTION="SELinux core utilities" @@ -24,14 +26,18 @@ fi LICENSE="GPL-2" SLOT="0" -DEPEND=">=sys-libs/libselinux-${PV}:=[python] +RDEPEND=">=sys-libs/libselinux-${PV}:=[python] >=sys-libs/libsemanage-${PV}:=[python(+)] >=sys-libs/libsepol-${PV}:= >=app-admin/setools-4.2.0[${PYTHON_USEDEP}] >=sys-process/audit-1.5.1[python,${PYTHON_USEDEP}] ${PYTHON_DEPS}" - -RDEPEND="${DEPEND}" +DEPEND="${RDEPEND}" +BDEPEND=" + test? ( + ${RDEPEND} + >=sys-apps/secilc-${PV} + )" src_prepare() { default @@ -49,6 +55,26 @@ src_compile() { python_foreach_impl building } +src_test() { + testing() { + # The different subprojects have some interproject dependencies: + # - audit2allow depens on sepolgen + # - chcat depends on semanage + # and maybe others. + # Add all the modules of the individual subprojects to the + # PYTHONPATH, so they get actually found and used. In + # particular, already installed versions on the system are not + # used. + for dir in audit2allow chcat semanage sepolgen/src sepolicy ; do + PYTHONPATH="${BUILD_DIR}/${dir}:${PYTHONPATH}" + done + PYTHONPATH=${PYTHONPATH} \ + emake -C "${BUILD_DIR}" \ + test + } + python_foreach_impl testing +} + src_install() { installation() { emake -C "${BUILD_DIR}" \ diff --git a/sys-apps/selinux-python/selinux-python-9999.ebuild b/sys-apps/selinux-python/selinux-python-9999.ebuild index 2d1cc6d2b32b..8e1f90984a8b 100644 --- a/sys-apps/selinux-python/selinux-python-9999.ebuild +++ b/sys-apps/selinux-python/selinux-python-9999.ebuild @@ -7,6 +7,8 @@ PYTHON_REQ_USE="xml" inherit python-r1 toolchain-funcs +IUSE="test" +RESTRICT="!test? ( test )" REQUIRED_USE="${PYTHON_REQUIRED_USE}" DESCRIPTION="SELinux core utilities" @@ -24,14 +26,18 @@ fi LICENSE="GPL-2" SLOT="0" -DEPEND=">=sys-libs/libselinux-${PV}:=[python] +RDEPEND=">=sys-libs/libselinux-${PV}:=[python] >=sys-libs/libsemanage-${PV}:=[python(+)] >=sys-libs/libsepol-${PV}:= >=app-admin/setools-4.2.0[${PYTHON_USEDEP}] >=sys-process/audit-1.5.1[python,${PYTHON_USEDEP}] ${PYTHON_DEPS}" - -RDEPEND="${DEPEND}" +DEPEND="${RDEPEND}" +BDEPEND=" + test? ( + ${RDEPEND} + >=sys-apps/secilc-${PV} + )" src_prepare() { default @@ -49,6 +55,26 @@ src_compile() { python_foreach_impl building } +src_test() { + testing() { + # The different subprojects have some interproject dependencies: + # - audit2allow depens on sepolgen + # - chcat depends on semanage + # and maybe others. + # Add all the modules of the individual subprojects to the + # PYTHONPATH, so they get actually found and used. In + # particular, already installed versions on the system are not + # used. + for dir in audit2allow chcat semanage sepolgen/src sepolicy ; do + PYTHONPATH="${BUILD_DIR}/${dir}:${PYTHONPATH}" + done + PYTHONPATH=${PYTHONPATH} \ + emake -C "${BUILD_DIR}" \ + test + } + python_foreach_impl testing +} + src_install() { installation() { emake -C "${BUILD_DIR}" \ |