diff options
author | William Hubbs <williamh@gentoo.org> | 2015-06-06 19:38:10 +0000 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2015-06-06 19:38:10 +0000 |
commit | f159afde659e063aa6a523347d89ec31b52e7189 (patch) | |
tree | 9b0887481b5e48896772b0e7253fb37a9f734fe3 /sys-apps | |
parent | Add SLOT operators (diff) | |
download | historical-f159afde659e063aa6a523347d89ec31b52e7189.tar.gz historical-f159afde659e063aa6a523347d89ec31b52e7189.tar.bz2 historical-f159afde659e063aa6a523347d89ec31b52e7189.zip |
remove old versions
Package-Manager: portage-2.2.18/cvs/Linux x86_64
Manifest-Sign-Key: 0x30C46538
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/kmod/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/kmod/Manifest | 28 | ||||
-rw-r--r-- | sys-apps/kmod/files/kmod-15-dynamic-kmod.patch | 16 | ||||
-rw-r--r-- | sys-apps/kmod/files/kmod-18-static-nodes-indicate-that-creation-of-static-nodes-.patch | 36 | ||||
-rw-r--r-- | sys-apps/kmod/kmod-18-r1.ebuild | 196 | ||||
-rw-r--r-- | sys-apps/kmod/kmod-19.ebuild | 190 |
6 files changed, 8 insertions, 466 deletions
diff --git a/sys-apps/kmod/ChangeLog b/sys-apps/kmod/ChangeLog index be13e124664f..cbcb1789327b 100644 --- a/sys-apps/kmod/ChangeLog +++ b/sys-apps/kmod/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/kmod # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/ChangeLog,v 1.198 2015/06/03 18:54:39 mattst88 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/ChangeLog,v 1.199 2015/06/06 19:37:09 williamh Exp $ + + 06 Jun 2015; William Hubbs <williamh@gentoo.org> + -files/kmod-15-dynamic-kmod.patch, + -files/kmod-18-static-nodes-indicate-that-creation-of-static-nodes-.patch, + -kmod-18-r1.ebuild, -kmod-19.ebuild: + remove old versions 03 Jun 2015; Matt Turner <mattst88@gentoo.org> kmod-20.ebuild: alpha stable, bug 547502 diff --git a/sys-apps/kmod/Manifest b/sys-apps/kmod/Manifest index c9c984cee58f..a9e4e5374d31 100644 --- a/sys-apps/kmod/Manifest +++ b/sys-apps/kmod/Manifest @@ -1,32 +1,6 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 - -AUX kmod-15-dynamic-kmod.patch 493 SHA256 36aa0232ec80a8f211c29d349ab5ef8c3f6dea1cb490e5d5c272125d30e3f04d SHA512 f26a75da8b0cfe861c60e6bdb66eec61be74038e1fa4ae45c4f8d19ea2b08e2b96683bc33e5b91945522c8dfc3af61bac094b31a1dda44965e378acf4ec4eb83 WHIRLPOOL 33e5bcb0658215005feb952dd0f42fb60242d1541d4e9ac5a76a34fba16b3638d48eeec17c1d9a98caff4d0f80e8fa9e37a2b0a2bbcfabbf9c25571460d8536d -AUX kmod-18-static-nodes-indicate-that-creation-of-static-nodes-.patch 1352 SHA256 1896fff7ca582f9975ddff41e12ce0c6aaca04de92896d22e8377457f183cd07 SHA512 5e40000e7dcebd64379d7960e95128a5f352a0cfcd900f70788af7712657c799b6bf5fc450fe8b499cdd98fab0440fbf8b9dc1006c6e684c04b3ee2b10bcc89a WHIRLPOOL 8de780a1a899b0db98689dc6a2f8762c0568dfb5a8a6073192a1dad8088e28b7fde05c723f83f74e71917261e027f603e31b144afac909d1766f36ddbf6bb95b AUX kmod-static-nodes-r1 601 SHA256 21995879ee2ac6727ca5784a309eff5dd41b93030efc854f123b8a4d8ef3294b SHA512 d95b63174b7e28cc8d72b28a1a436fb108164528d5643ce9f65012f233151604f6b26c20c64fbe2f657fbbd6863c08ae9094c5bdc2dfc68d417448e268a7bc11 WHIRLPOOL f0342f23912535134e5cbc88cd13fdd9a6681ba5502a15cb5b0d5aafe2d6db4a2bba806293be29b9e14f11ad28456cc1104f6d031b88d1142ab313407df73163 -DIST kmod-18.tar.xz 1473904 SHA256 e16e57272b54acb219c465b334715cfdddb5d97ff5d8948d4830ca1a372a868e SHA512 6704f52f1b69837f06516237fb61d3f29551b06e59f270561993e0318c104bdc0140a32d3fc9bda859d0918412ea2c40effa0ceeccbda5e1cb79a204d7219847 WHIRLPOOL d8e022cdbf19cef8dac46f70d49dcb0b9812e6b263bf40628a082de3696793fe591cc402b12773b43a86b3514910c292aebb7b8fc8954c796ac9679e65f43b98 -DIST kmod-19.tar.xz 1473916 SHA256 3e7fee6eeff5435848b2dcc852bc8959066478d687d232284d67300c071e7b14 SHA512 317aebbfe12e2bd8f610d799642499d411e017cbda6082d0de92b1597753d29f42c4a2faac574879166e8cda8d7fd42ad2f98086b169e85b238cf024887ec0ee WHIRLPOOL a2aec8057cbc7776b71cea5c70fcec90fa20f09d2195f532f03085df2e85ae6dfbba50450a1b33425fd17caa01b997e052ec4676e0ed9c6afd7555b53aa8c589 DIST kmod-20.tar.xz 437880 SHA256 89c1a1a2193c31f9ebe582640bfa2bd401341dc24119f5a7f702588116fadaa0 SHA512 1026d80486e6c823fc74a439d15a8b1e4a501140f67568165904b43a73130133d6c84075ec8a7981a5d4a187d5fbd21afd197de4e81cc05a66506711865edf96 WHIRLPOOL 938d1ea4d153c04231b89701c7a7f602d31166e5c85bb6f2798ba0a7c22a4961f05bdd8631d985785212e5bf359d1cd12c4088fd9c2a07d8b6b9a77599e84a39 -EBUILD kmod-18-r1.ebuild 5232 SHA256 fe74bc461fc547d5363d4c01f29ab80e2fad139477537bb787e470e8b6157ddd SHA512 7b5b3a16388ec254bdc3a4b2bfdbce8d82101541dcfd978c1c929c81e3142fdd38133b5482dcfa92f48ab1a6f3cf62e5d78bc781f76fe635d8474cd401cae2df WHIRLPOOL 2c24f787f1407ed35f2505537e9a676d650e99c91f6a20979e097dff35712750e1bc562c56e78de6c8987a09137cd1a5d4b6e41b5969a1b0f097821370c28cd4 -EBUILD kmod-19.ebuild 5017 SHA256 fe6d0216f3abf667a7526db0961d60f0352458c0929a29bfbc4b4115ea4a69a0 SHA512 d3fde281cba92c01ec3304fbafbe5ca6e5f3bbdce3eede0b4be8a6386cbbe17b994b854101db49af3f0fec3285027dc7b5b29ebb0851e47035cf7a4816fa1cbb WHIRLPOOL 4fdb40d6e0337f86bd1c9a7409a92778a9b9f23a4f6fea48a4bd5d3ec5f73ff494b916a2db222e9c8a06e66061cb7fd89be64d2585e6732a7d341f3f35fd58fc EBUILD kmod-20.ebuild 5018 SHA256 a4635d5801878cf2844ff202b3dd6a4d1df118b1a790a9f6ffca209784f6d5b2 SHA512 3eeff761e15a0a38e4ff494a0e23979d7acfdb7491b2d92ac3ee5d23e91579225f92dbeffe0bad6b241fcfad2c406a71f76298481dd54aaad295b7ef94cf2439 WHIRLPOOL ae459094ada02910787a010b30f75589e865618a6b17d750167f7ff081366cf29305d172f31497319244fcfa440bfd47be2cb8bb83602bb22a4c98f87590ad21 EBUILD kmod-9999.ebuild 5027 SHA256 57f7341df35dbb8d25d790f3d012e645a5914047cd65d3309e5cccb986271594 SHA512 c77f96dd8c3f0dd1679a71013d1aa27e491e64890fe3d0b6cd9c572ff87c9b88de13312912feff0acd905d06e7f4ef38c05a2537ee4cd10176a1060d88fccb23 WHIRLPOOL cebdd91defc8318a7d4ae29a7c35f1b27422633ab6bf52d266b55411e2a6c86dd757aef672a1d0d31e8438049f02ab51a3fa27c910c52e47994918dd4c3ca36c -MISC ChangeLog 27868 SHA256 40a78f930fd0df7afbe0f0a6b8d1d39732941b7552df1058a5d0fa6e2f9760c1 SHA512 4d62e91e604537ccf578f95b696dd04e9edfa17d9800c2213d9eafe6b658c25bd9918a518c1cc785a26aa8fa982e94e302d733aff16d94ca54dc4645224b7c85 WHIRLPOOL 40302ee35ac8de9fe396a8cb0b5e7f055ff82e289467a0abde94631949f5e6fc674e4f7e242728a343edb907581ef76b480ea28aa037ea90ca24cd6bbd37cc9f +MISC ChangeLog 28095 SHA256 6b27d60966c35452f133dd852c9491b7040aabe2b3fb27a272298a0ef484ebe2 SHA512 2f2e7725489330d5a2cd34498e85fb2fe1d39575b97e8ed84bf72a27bf871d613e0497d5c3761eb39309f7ee97141ec723a4c18cb8193be752ed00023541bdd9 WHIRLPOOL dfad3dd0c2f369e53c0b715d9a23041a216a0a1f7bab5f76651862287082d578a4d0972a7a0b6a41f908262b4318f441ef34a169aae09a9b6e2eb35fe732e95d MISC metadata.xml 445 SHA256 355b675fdbfffc098875cc02f60b3e4489f78e569fcf47b160f15a0a814fe9bd SHA512 55a0bbdccb5d0af3343e22cc4577bd946e39a19948df2fbe634729a1e0bbb43fc4d97ccf35e884253755182c2c1df33c354eb72ae52695ae530d01f01287d11f WHIRLPOOL 12e2201684ebef6c000dc57a87d92e035a74b71ceda56b6d77e67e705909f726df1fb95621eb51bb48e980583be5350c81b0bf3607a18f6fe34880f5ce8ea72a ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2 - -iQIcBAEBCAAGBQJVb02hAAoJEA/daC2XTKcqqDwP/3hniafKvyaE+GKlWr2qZTQV -EMpCL882mSHfkVBkEMmP0InXYpGQs+YNn3jiFN5jpNDpFu7rnFqKsu9jdw1YDKmY -/OpRAIlPMRibOm/soMXuN8iBHwGoqrxzRdt/oz98u3iw5+wo+DNUiFurDUhtvLDO -kDyEqC6vmn78+ZJa6+/EntlZVqZ3E1gLkZyP0NKFFxk/8ithALOpps4/IxCR7mU2 -lIGv+fxUxoMYBJCYdwfhLUSi3U+RfsjXwmOiB6LondT7fwZMy10jWsmDYgHe02Yl -qr4jnDD7fYQcvy4hzG5rpga8jv/lr1Nr4Q+3pdKBbjADLfZLiFnvi0xSHJlQ4mzv -0JbT6uYBoO96bm50jy0Stfn94kWgvQZpD09m4R2NFux+ktjjgprl6/S5TQvwtXnO -DYbeqUi4nbmFIHWaZ4hy/4qJbLX+SLjIcaMKRK6/ejDYdVs2gR910kkscToE5W4Q -sxNAy/NuEqdfaF5JmnOsqkOmyWLE/drG2ka6DJ6jZxVb4dd9IGReF67Z/+GrAt32 -hrcn4qBRQf4yQqqbVHsBwMsf9e6U2ewlXCB1u7mLde9Evw8Ob2NyrYZUNDJokXVI -tZdAjzcFsbr4PhQmnDpPKxo3NmG/ocrZlbZ08OlRziw5mNkseUrZH5ug+M9kDSDb -mwvJkxswJIsBHveDF1e3 -=wWTf ------END PGP SIGNATURE----- diff --git a/sys-apps/kmod/files/kmod-15-dynamic-kmod.patch b/sys-apps/kmod/files/kmod-15-dynamic-kmod.patch deleted file mode 100644 index c93bea6d6a85..000000000000 --- a/sys-apps/kmod/files/kmod-15-dynamic-kmod.patch +++ /dev/null @@ -1,16 +0,0 @@ -do not statically link kmod against its own libraries - -https://bugs.gentoo.org/493630 -http://thread.gmane.org/gmane.linux.kernel.modules/1206 - ---- a/Makefile.in -+++ b/Makefile.in -@@ -817,7 +817,7 @@ - @BUILD_TOOLS_TRUE@ tools/static-nodes.c - - @BUILD_TOOLS_TRUE@tools_kmod_LDADD = libkmod/libkmod-util.la \ --@BUILD_TOOLS_TRUE@ libkmod/libkmod-internal.la -+@BUILD_TOOLS_TRUE@ libkmod/libkmod.la - - - # ------------------------------------------------------------------------------ diff --git a/sys-apps/kmod/files/kmod-18-static-nodes-indicate-that-creation-of-static-nodes-.patch b/sys-apps/kmod/files/kmod-18-static-nodes-indicate-that-creation-of-static-nodes-.patch deleted file mode 100644 index 2490f943eb1a..000000000000 --- a/sys-apps/kmod/files/kmod-18-static-nodes-indicate-that-creation-of-static-nodes-.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 27eceb2e4ecbf2e31940b67cee682a6935f61e6c Mon Sep 17 00:00:00 2001 -From: Tom Gundersen <teg@jklm.no> -Date: Mon, 27 Oct 2014 17:55:03 +0100 -Subject: [PATCH] static-nodes: indicate that creation of static nodes should - only happen at boot - -udev will only manage static nodes that exist at the time udev is started, so -creating static nodes later on will likely not behave as expected. In -particular, recreating the static nodes at run-time will reset any permissions -udev may have applied to the nodes at boot. - -See <https://bugzilla.redhat.com/show_bug.cgi?id=1147248> and the discussion -following <http://permalink.gmane.org/gmane.comp.sysutils.systemd.devel/23795>. - -Note that this requires (the yet to be released) systemd v217 or a backport -of systemd patch 8c94052ee543c3598a3c7b0c46688150aa2c6168. ---- - tools/static-nodes.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/tools/static-nodes.c b/tools/static-nodes.c -index d1e3b6e..8d2356d 100644 ---- a/tools/static-nodes.c -+++ b/tools/static-nodes.c -@@ -96,7 +96,7 @@ static int write_tmpfiles(FILE *out, char modname[], char devname[], char type, - return EXIT_FAILURE; - } - -- ret = fprintf(out, "%c /dev/%s 0600 - - - %u:%u\n", -+ ret = fprintf(out, "%c! /dev/%s 0600 - - - %u:%u\n", - type, devname, maj, min); - if (ret < 0) - return EXIT_FAILURE; --- -2.1.2 - diff --git a/sys-apps/kmod/kmod-18-r1.ebuild b/sys-apps/kmod/kmod-18-r1.ebuild deleted file mode 100644 index f256108277f7..000000000000 --- a/sys-apps/kmod/kmod-18-r1.ebuild +++ /dev/null @@ -1,196 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-18-r1.ebuild,v 1.16 2015/04/08 18:27:32 mgorny Exp $ - -EAPI=5 - -PYTHON_COMPAT=( python{2_7,3_3,3_4} ) - -inherit bash-completion-r1 eutils multilib python-r1 - -if [[ ${PV} == 9999* ]]; then - EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git" - inherit autotools git-2 -else - SRC_URI="mirror://kernel/linux/utils/kernel/kmod/${P}.tar.xz" - KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" - inherit libtool -fi - -DESCRIPTION="library and tools for managing linux kernel modules" -HOMEPAGE="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git" - -LICENSE="LGPL-2" -SLOT="0" -IUSE="debug doc lzma python static-libs +tools zlib" - -# Upstream does not support running the test suite with custom configure flags. -# I was also told that the test suite is intended for kmod developers. -# So we have to restrict it. -# See bug #408915. -RESTRICT="test" - -# Block systemd above and including 217 for -static-nodes-indicate-that-creation-of-static-nodes-.patch -RDEPEND="!sys-apps/module-init-tools - !sys-apps/modutils - !<sys-apps/openrc-0.12 - lzma? ( >=app-arch/xz-utils-5.0.4-r1 ) - python? ( ${PYTHON_DEPS} ) - zlib? ( >=sys-libs/zlib-1.2.6 )" #427130 -DEPEND="${RDEPEND} - doc? ( dev-util/gtk-doc ) - lzma? ( virtual/pkgconfig ) - python? ( - dev-python/cython[${PYTHON_USEDEP}] - virtual/pkgconfig - ) - zlib? ( virtual/pkgconfig )" -if [[ ${PV} == 9999* ]]; then - DEPEND="${DEPEND} - dev-libs/libxslt" -fi - -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -DOCS="NEWS README TODO" - -src_prepare() { - if [ ! -e configure ]; then - if use doc; then - gtkdocize --copy --docdir libkmod/docs || die - else - touch libkmod/docs/gtk-doc.make - fi - eautoreconf - else - epatch "${FILESDIR}"/${PN}-15-dynamic-kmod.patch #493630 - elibtoolize - fi - - # Restore possibility of running --enable-static wrt #472608 - sed -i \ - -e '/--enable-static is not supported by kmod/s:as_fn_error:echo:' \ - configure || die -} - -src_configure() { - local myeconfargs=( - --bindir="${EPREFIX}/bin" - --with-rootlibdir="${EPREFIX}/$(get_libdir)" - --enable-shared - $(use_enable static-libs static) - $(use_enable tools) - $(use_enable debug) - $(use_enable doc gtk-doc) - $(use_with lzma xz) - $(use_with zlib) - --with-bashcompletiondir="$(get_bashcompdir)" - ) - - local ECONF_SOURCE="${S}" - - kmod_configure() { - mkdir -p "${BUILD_DIR}" || die - run_in_build_dir econf "${myeconfargs[@]}" "$@" - } - - BUILD_DIR="${WORKDIR}/build" - kmod_configure --disable-python - - if use python; then - python_parallel_foreach_impl kmod_configure --enable-python - fi -} - -src_compile() { - if [[ ${PV} != 9999* ]]; then - # Force -j1 because of -15-dynamic-kmod.patch, likely caused by lack of eautoreconf - # wrt #494806 - local MAKEOPTS="${MAKEOPTS} -j1" - fi - - emake -C "${BUILD_DIR}" - - if use python; then - local native_builddir=${BUILD_DIR} - - python_compile() { - emake -C "${BUILD_DIR}" -f Makefile -f - python \ - VPATH="${native_builddir}:${S}" \ - native_builddir="${native_builddir}" \ - libkmod_python_kmod_{kmod,list,module,_util}_la_LIBADD='$(PYTHON_LIBS) $(native_builddir)/libkmod/libkmod.la' \ - <<< 'python: $(pkgpyexec_LTLIBRARIES)' - } - - python_foreach_impl python_compile - fi -} - -src_install() { - emake -C "${BUILD_DIR}" DESTDIR="${D}" install - einstalldocs - - if use python; then - local native_builddir=${BUILD_DIR} - - python_install() { - emake -C "${BUILD_DIR}" DESTDIR="${D}" \ - VPATH="${native_builddir}:${S}" \ - install-pkgpyexecLTLIBRARIES \ - install-dist_pkgpyexecPYTHON - } - - python_foreach_impl python_install - fi - - prune_libtool_files --modules - - if use tools; then - local bincmd sbincmd - for sbincmd in depmod insmod lsmod modinfo modprobe rmmod; do - dosym /bin/kmod /sbin/${sbincmd} - done - - # These are also usable as normal user - for bincmd in lsmod modinfo; do - dosym kmod /bin/${bincmd} - done - fi - - cat <<-EOF > "${T}"/usb-load-ehci-first.conf - softdep uhci_hcd pre: ehci_hcd - softdep ohci_hcd pre: ehci_hcd - EOF - - insinto /lib/modprobe.d - doins "${T}"/usb-load-ehci-first.conf #260139 - - newinitd "${FILESDIR}"/kmod-static-nodes-r1 kmod-static-nodes -} - -pkg_postinst() { - if [[ -L ${EROOT%/}/etc/runlevels/boot/static-nodes ]]; then - ewarn "Removing old conflicting static-nodes init script from the boot runlevel" - rm -f "${EROOT%/}"/etc/runlevels/boot/static-nodes - fi - - # Add kmod to the runlevel automatically if this is the first install of this package. - if [[ -z ${REPLACING_VERSIONS} ]]; then - if [[ ! -d ${EROOT%/}/etc/runlevels/sysinit ]]; then - mkdir -p "${EROOT%/}"/etc/runlevels/sysinit - fi - if [[ -x ${EROOT%/}/etc/init.d/kmod-static-nodes ]]; then - ln -s /etc/init.d/kmod-static-nodes "${EROOT%/}"/etc/runlevels/sysinit/kmod-static-nodes - fi - fi - - if [[ -e ${EROOT%/}/etc/runlevels/sysinit ]]; then - if [[ ! -e ${EROOT%/}/etc/runlevels/sysinit/kmod-static-nodes ]]; then - ewarn - ewarn "You need to add kmod-static-nodes to the sysinit runlevel for" - ewarn "kernel modules to have required static nodes!" - ewarn "Run this command:" - ewarn "\trc-update add kmod-static-nodes sysinit" - fi - fi -} diff --git a/sys-apps/kmod/kmod-19.ebuild b/sys-apps/kmod/kmod-19.ebuild deleted file mode 100644 index 623aa71ce477..000000000000 --- a/sys-apps/kmod/kmod-19.ebuild +++ /dev/null @@ -1,190 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-19.ebuild,v 1.11 2015/05/13 06:36:35 jmorgan Exp $ - -EAPI=5 - -PYTHON_COMPAT=( python{2_7,3_3,3_4} ) - -inherit bash-completion-r1 eutils multilib python-r1 - -if [[ ${PV} == 9999* ]]; then - EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git" - inherit autotools git-2 -else - SRC_URI="mirror://kernel/linux/utils/kernel/kmod/${P}.tar.xz" - KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86" - inherit libtool -fi - -DESCRIPTION="library and tools for managing linux kernel modules" -HOMEPAGE="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git" - -LICENSE="LGPL-2" -SLOT="0" -IUSE="debug doc lzma python static-libs +tools zlib" - -# Upstream does not support running the test suite with custom configure flags. -# I was also told that the test suite is intended for kmod developers. -# So we have to restrict it. -# See bug #408915. -RESTRICT="test" - -# Block systemd below 217 for -static-nodes-indicate-that-creation-of-static-nodes-.patch -RDEPEND="!sys-apps/module-init-tools - !sys-apps/modutils - !<sys-apps/openrc-0.13.8 - !<sys-apps/systemd-216-r3 - lzma? ( >=app-arch/xz-utils-5.0.4-r1 ) - python? ( ${PYTHON_DEPS} ) - zlib? ( >=sys-libs/zlib-1.2.6 )" #427130 -DEPEND="${RDEPEND} - doc? ( dev-util/gtk-doc ) - lzma? ( virtual/pkgconfig ) - python? ( - dev-python/cython[${PYTHON_USEDEP}] - virtual/pkgconfig - ) - zlib? ( virtual/pkgconfig )" -if [[ ${PV} == 9999* ]]; then - DEPEND="${DEPEND} - dev-libs/libxslt" -fi - -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -DOCS="NEWS README TODO" - -src_prepare() { - if [ ! -e configure ]; then - if use doc; then - gtkdocize --copy --docdir libkmod/docs || die - else - touch libkmod/docs/gtk-doc.make - fi - eautoreconf - else - elibtoolize - fi - - # Restore possibility of running --enable-static wrt #472608 - sed -i \ - -e '/--enable-static is not supported by kmod/s:as_fn_error:echo:' \ - configure || die -} - -src_configure() { - local myeconfargs=( - --bindir="${EPREFIX}/bin" - --with-rootlibdir="${EPREFIX}/$(get_libdir)" - --enable-shared - $(use_enable static-libs static) - $(use_enable tools) - $(use_enable debug) - $(use_enable doc gtk-doc) - $(use_with lzma xz) - $(use_with zlib) - --with-bashcompletiondir="$(get_bashcompdir)" - ) - - local ECONF_SOURCE="${S}" - - kmod_configure() { - mkdir -p "${BUILD_DIR}" || die - run_in_build_dir econf "${myeconfargs[@]}" "$@" - } - - BUILD_DIR="${WORKDIR}/build" - kmod_configure --disable-python - - if use python; then - python_parallel_foreach_impl kmod_configure --enable-python - fi -} - -src_compile() { - emake -C "${BUILD_DIR}" - - if use python; then - local native_builddir=${BUILD_DIR} - - python_compile() { - emake -C "${BUILD_DIR}" -f Makefile -f - python \ - VPATH="${native_builddir}:${S}" \ - native_builddir="${native_builddir}" \ - libkmod_python_kmod_{kmod,list,module,_util}_la_LIBADD='$(PYTHON_LIBS) $(native_builddir)/libkmod/libkmod.la' \ - <<< 'python: $(pkgpyexec_LTLIBRARIES)' - } - - python_foreach_impl python_compile - fi -} - -src_install() { - emake -C "${BUILD_DIR}" DESTDIR="${D}" install - einstalldocs - - if use python; then - local native_builddir=${BUILD_DIR} - - python_install() { - emake -C "${BUILD_DIR}" DESTDIR="${D}" \ - VPATH="${native_builddir}:${S}" \ - install-pkgpyexecLTLIBRARIES \ - install-dist_pkgpyexecPYTHON - } - - python_foreach_impl python_install - fi - - prune_libtool_files --modules - - if use tools; then - local bincmd sbincmd - for sbincmd in depmod insmod lsmod modinfo modprobe rmmod; do - dosym /bin/kmod /sbin/${sbincmd} - done - - # These are also usable as normal user - for bincmd in lsmod modinfo; do - dosym kmod /bin/${bincmd} - done - fi - - cat <<-EOF > "${T}"/usb-load-ehci-first.conf - softdep uhci_hcd pre: ehci_hcd - softdep ohci_hcd pre: ehci_hcd - EOF - - insinto /lib/modprobe.d - doins "${T}"/usb-load-ehci-first.conf #260139 - - newinitd "${FILESDIR}"/kmod-static-nodes-r1 kmod-static-nodes -} - -pkg_postinst() { - if [[ -L ${EROOT%/}/etc/runlevels/boot/static-nodes ]]; then - ewarn "Removing old conflicting static-nodes init script from the boot runlevel" - rm -f "${EROOT%/}"/etc/runlevels/boot/static-nodes - fi - - # Add kmod to the runlevel automatically if this is the first install of this package. - if [[ -z ${REPLACING_VERSIONS} ]]; then - if [[ ! -d ${EROOT%/}/etc/runlevels/sysinit ]]; then - mkdir -p "${EROOT%/}"/etc/runlevels/sysinit - fi - if [[ -x ${EROOT%/}/etc/init.d/kmod-static-nodes ]]; then - ln -s /etc/init.d/kmod-static-nodes "${EROOT%/}"/etc/runlevels/sysinit/kmod-static-nodes - fi - fi - - if [[ -e ${EROOT%/}/etc/runlevels/sysinit ]]; then - if [[ ! -e ${EROOT%/}/etc/runlevels/sysinit/kmod-static-nodes ]]; then - ewarn - ewarn "You need to add kmod-static-nodes to the sysinit runlevel for" - ewarn "kernel modules to have required static nodes!" - ewarn "Run this command:" - ewarn "\trc-update add kmod-static-nodes sysinit" - fi - fi -} |