diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-03 21:11:18 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-03 21:11:18 +0000 |
commit | 8ba493f5439ffec0ed21707f660602b7bd80bbbf (patch) | |
tree | a103c65926b64945179cd7435d608e9c761ebaf3 /sys-apps/kmod/kmod-30-r1.ebuild | |
parent | dc50ce612ba7a32ca77479875798989da2885437 (diff) |
gentoo auto-resync : 03:02:2023 - 21:11:18
Diffstat (limited to 'sys-apps/kmod/kmod-30-r1.ebuild')
-rw-r--r-- | sys-apps/kmod/kmod-30-r1.ebuild | 23 |
1 files changed, 21 insertions, 2 deletions
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 |