diff options
Diffstat (limited to 'sys-apps/kmod')
-rw-r--r-- | sys-apps/kmod/Manifest | 4 | ||||
-rw-r--r-- | sys-apps/kmod/kmod-30-r1.ebuild | 23 | ||||
-rw-r--r-- | sys-apps/kmod/kmod-9999.ebuild | 25 |
3 files changed, 45 insertions, 7 deletions
diff --git a/sys-apps/kmod/Manifest b/sys-apps/kmod/Manifest index 5a92dc91d74d..6f61e9530bb5 100644 --- a/sys-apps/kmod/Manifest +++ b/sys-apps/kmod/Manifest @@ -1,7 +1,7 @@ AUX kmod-30-configure-clang16.patch 948 BLAKE2B 35403640d79e60d1600abd676be818331ea975f139136bd60cd06df183768d78e11427505e7eda56d501a964420bff07eebff61e414655a7b043076e082ab143 SHA512 5f1b765ba51e224d464814247aa343649d1677f619dcca99d0a00ca244580443cc7615bf5291773062aa03cdeb42c7475d40da749c39d79907ae4ba0c9ed9c29 AUX kmod-static-nodes-r1 500 BLAKE2B 44ae03377e6cc7b5a271063828fcb39ec6925d82e52207771e1b6b4f921d0a07e51e97a8e6f432b542d88fb0195e1298cd54ba92d462a828ddd94dab7f924eb3 SHA512 8210d90f5d0702aea626b6db00adbabbd550009d8275fe430c8b113fcb0593a4dfb9efb22c061dde259e1bd94390be49823415d3fd99909e22a2bbf7ae349f63 DIST kmod-30.tar.xz 567484 BLAKE2B c5cb690dbb8fad66ac603648ff330794b417ff2fa2f8f61b6e9cb76dab93f984128b3d83a826203f39f3fb94f174f0db7395db6a47e52e8b7c561486f9d00778 SHA512 e2cd34e600a72e44710760dfda9364b790b8352a99eafbd43e683e4a06f37e6b5c0b5d14e7c28070e30fc5fc6ceddedf7b97f3b6c2c5c2d91204fefd630b9a3e -EBUILD kmod-30-r1.ebuild 5466 BLAKE2B d4acfd95df6b6b45cb5af1aa1380961ecf1258998cf9af5a48e2b315b854a31e140bf8737ce6ebe4ecd8dcfe60a84f464137ca2b1fe86e5805c36e1cc6a9a25d SHA512 cd4a38562b4de7a5a8d76ce9f1d536c38c74595833d820e7f9fc14d7319b82f0fedf60d7ffddba59eb8762c91ecf1c44d0b3b57f7d18263f9236d656a71751c0 +EBUILD kmod-30-r1.ebuild 6142 BLAKE2B 4c6890d1c39df76feab8a5002de83fb8ca3c337c3e31fc7371753c83bd79c7831fc14ca29869e5bc1de5b924ba42783eac260744b6eab93b5f56586fc01c983a SHA512 c9cfa7a0fe01c925c60565b995883156b5e0b9f7bdc290d917d4a6e2dcd7de7b7fd1a23e9c65b2e984e49b6c94c1d519c66ea967ed77f2df6b256338a6c08e33 EBUILD kmod-30.ebuild 5286 BLAKE2B abb956a6d6b60f47941bc754c7b4b902776b85b85a9d447994991fc8cb72b3bad2e6ce9ab50f8d4effc51500a340bac62200415110725fb40f40c3df2f176d3c SHA512 859b05e77b9c2acd45810442de38cceb244b4fd23b9410de890b544a39478db2b3ecc9c113d05bad2b742f5110af44966f898e921bd6f54cdea484b74ed1d7a1 -EBUILD kmod-9999.ebuild 5291 BLAKE2B 68c5805179c21c745991c8056d50114dbf07c8111e9e9349d878b067f63576f1c641e6d5aa87dcd0d483f0729b7a4c39355d35698fca7ea939e4ef075739a898 SHA512 6662392cc0d385d5c27ea118b6457622b3e05b653954ef35d1cbd50f969db230bb7b4cd6a38f34d64e0d41e2ba4252a46104f797a4e62901c7b60a83093096cc +EBUILD kmod-9999.ebuild 5970 BLAKE2B 85950b5aba18c4050c8db2f63e8d513f9490d886541523e007890aff8cce52819a76506b8332a84dc052519095237b29de0b2ecbe193cb6e969d2326e184496c SHA512 149e16f86841f272f700633b39eafbe179d35efc4db7b06a51fe06562b210ecdb1e2fc0fac8fc5c644335a07f22dca03f8ae312eadc0c5d394da44a89b2e1cae MISC metadata.xml 681 BLAKE2B d99a380ff37258528d263ede7c4752ffbb9abfb458674e884504a3618d574cffd0cad0da260e9bca208c5bdce1878ce7b3bf26e48fe883e812c5221c6ae38a53 SHA512 032d9a89779ae60a3e34f4d5cdb6b89c6f07bec68dc23b063e1b06f57825cb071ea89322f3bd9408b2503dab423fef3bac42ab5c8a9ae899849f51e38e0ecef3 diff --git a/sys-apps/kmod/kmod-30-r1.ebuild b/sys-apps/kmod/kmod-30-r1.ebuild index 9cb6a84d3e0b..18c0daa0974a 100644 --- a/sys-apps/kmod/kmod-30-r1.ebuild +++ b/sys-apps/kmod/kmod-30-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{9..10} ) +PYTHON_COMPAT=( python3_{9..11} ) inherit autotools libtool bash-completion-r1 python-r1 @@ -26,7 +26,7 @@ IUSE="debug doc +lzma pkcs7 python static-libs +tools +zlib +zstd" # I was also told that the test suite is intended for kmod developers. # So we have to restrict it. # See bug #408915. -RESTRICT="test" +#RESTRICT="test" # - >=zlib-1.2.6 required because of bug #427130 # - Block systemd below 217 for -static-nodes-indicate-that-creation-of-static-nodes-.patch @@ -139,6 +139,25 @@ src_compile() { fi } +src_test() { + python_test() { + mkdir "${T}/test-${EPYTHON}" || die + emake -C "${BUILD_DIR}" DESTDIR="${T}/test-${EPYTHON}" \ + VPATH="${native_builddir}:${S}" \ + install-pkgpyexecLTLIBRARIES \ + install-dist_pkgpyexecPYTHON + + # Smoke test based on https://bugs.gentoo.org/891975#c5 + local -x PYTHONPATH="${T}/test-${EPYTHON}/usr/lib/${EPYTHON}/site-packages:${PYTHONPATH}" + ${EPYTHON} -c 'import kmod; km = kmod.Kmod(); print([(m.name, m.size) for m in km.loaded()])' || die + rm -r "${T}/test-${EPYTHON}" || die + } + + if use python; then + python_foreach_impl python_test + fi +} + src_install() { emake -C "${BUILD_DIR}" DESTDIR="${D}" install diff --git a/sys-apps/kmod/kmod-9999.ebuild b/sys-apps/kmod/kmod-9999.ebuild index 872dcbbc2737..50b51480db27 100644 --- a/sys-apps/kmod/kmod-9999.ebuild +++ b/sys-apps/kmod/kmod-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{9..10} ) +PYTHON_COMPAT=( python3_{9..11} ) inherit autotools libtool bash-completion-r1 python-r1 @@ -26,7 +26,7 @@ IUSE="debug doc +lzma pkcs7 python static-libs +tools +zlib +zstd" # I was also told that the test suite is intended for kmod developers. # So we have to restrict it. # See bug #408915. -RESTRICT="test" +#RESTRICT="test" # - >=zlib-1.2.6 required because of bug #427130 # - Block systemd below 217 for -static-nodes-indicate-that-creation-of-static-nodes-.patch @@ -60,7 +60,7 @@ fi REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" -DOCS=( NEWS README TODO ) +DOCS=( NEWS README.md TODO ) src_prepare() { default @@ -132,6 +132,25 @@ src_compile() { fi } +src_test() { + python_test() { + mkdir "${T}/test-${EPYTHON}" || die + emake -C "${BUILD_DIR}" DESTDIR="${T}/test-${EPYTHON}" \ + VPATH="${native_builddir}:${S}" \ + install-pkgpyexecLTLIBRARIES \ + install-dist_pkgpyexecPYTHON + + # Smoke test based on https://bugs.gentoo.org/891975#c5 + local -x PYTHONPATH="${T}/test-${EPYTHON}/usr/lib/${EPYTHON}/site-packages:${PYTHONPATH}" + ${EPYTHON} -c 'import kmod; km = kmod.Kmod(); print([(m.name, m.size) for m in km.loaded()])' || die + rm -r "${T}/test-${EPYTHON}" || die + } + + if use python; then + python_foreach_impl python_test + fi +} + src_install() { emake -C "${BUILD_DIR}" DESTDIR="${D}" install |