Gentoo Archives: gentoo-musl

From: Felix Janda <felix.janda@××××××.de>
To: gentoo-musl@l.g.o
Subject: [gentoo-musl] [PATCH 6/6] sys-apps/kmod: version 20 in tree works fine
Date: Fri, 10 Jul 2015 17:38:49
Message-Id: 20150710173830.GF12968@nyan
1 ---
2 sys-apps/kmod/Manifest | 5 -
3 sys-apps/kmod/files/kmod-19-strndupa.patch | 23 ----
4 sys-apps/kmod/files/kmod-static-nodes-r1 | 19 ---
5 sys-apps/kmod/kmod-19-r99.ebuild | 192 -----------------------------
6 sys-apps/kmod/metadata.xml | 11 --
7 5 files changed, 250 deletions(-)
8 delete mode 100644 sys-apps/kmod/Manifest
9 delete mode 100644 sys-apps/kmod/files/kmod-19-strndupa.patch
10 delete mode 100644 sys-apps/kmod/files/kmod-static-nodes-r1
11 delete mode 100644 sys-apps/kmod/kmod-19-r99.ebuild
12 delete mode 100644 sys-apps/kmod/metadata.xml
13
14 diff --git a/sys-apps/kmod/Manifest b/sys-apps/kmod/Manifest
15 deleted file mode 100644
16 index 6f82412..0000000
17 --- a/sys-apps/kmod/Manifest
18 +++ /dev/null
19 @@ -1,5 +0,0 @@
20 -AUX kmod-19-strndupa.patch 579 SHA256 e090896840b0692bc52ba093f794289580863cc56e9d34191291a2200eac88fa SHA512 2edca256b43503e45cc9878d03619af4d9d02bddc9fb31a18d62e0516e484f49251f376d6545535a5fe83fe56eba45970e972186a18892e040b10035877e4b37 WHIRLPOOL 7fc53b00485312c3e4e42b68459d350f4b7d59e405aeae41a4418daf37b5f1cd8cd398d9186c4c7f0af7f4ee53d16b30d58962e2eebba712c55bf88111c47d20
21 -AUX kmod-static-nodes-r1 601 SHA256 21995879ee2ac6727ca5784a309eff5dd41b93030efc854f123b8a4d8ef3294b SHA512 d95b63174b7e28cc8d72b28a1a436fb108164528d5643ce9f65012f233151604f6b26c20c64fbe2f657fbbd6863c08ae9094c5bdc2dfc68d417448e268a7bc11 WHIRLPOOL f0342f23912535134e5cbc88cd13fdd9a6681ba5502a15cb5b0d5aafe2d6db4a2bba806293be29b9e14f11ad28456cc1104f6d031b88d1142ab313407df73163
22 -DIST kmod-19.tar.xz 1473916 SHA256 3e7fee6eeff5435848b2dcc852bc8959066478d687d232284d67300c071e7b14 SHA512 317aebbfe12e2bd8f610d799642499d411e017cbda6082d0de92b1597753d29f42c4a2faac574879166e8cda8d7fd42ad2f98086b169e85b238cf024887ec0ee WHIRLPOOL a2aec8057cbc7776b71cea5c70fcec90fa20f09d2195f532f03085df2e85ae6dfbba50450a1b33425fd17caa01b997e052ec4676e0ed9c6afd7555b53aa8c589
23 -EBUILD kmod-19-r99.ebuild 5008 SHA256 1c2ab7972062629f53a1535320849c96348bc36538cbbd52d4c797f62c60511f SHA512 08e3db0296c39f0d258879051c0fa579bcd43d6154ee64acd128faa1b0f8170d8dec0b684686896b060d1f26eb9188b3be8ec50bddeecd3bb7b1a1c42ab82b01 WHIRLPOOL 93eb10f54be24c710e91b42d3cca03fe1f3a1602e54cc35c2fed1ee5f3ca172479818883b8c50e03837b94da9bc7fdaf793056fe0dcd45c54894b7fe0d198a3b
24 -MISC metadata.xml 315 SHA256 615f47d63e08942e7a0c3cd3246f70d2f49b276aec75c84a9ec5e1188a91a18e SHA512 0f8bb9e3ba70ec5084d3c8a3fe8fba508dec2a33cb77cc13f3aba35c70b53d9011674a862033de6ba83aefb1b351b4d1fac7112d2e61070444620191f8ed8742 WHIRLPOOL 928f3536c928ba3457a2f94eb6de26e3c13f5a34748d554219edd8aa5841c24ebbc5930fcb147550c0cd9d8f5eae8f4a1cd04f3267ddbe066450178e38d7cb37
25 diff --git a/sys-apps/kmod/files/kmod-19-strndupa.patch b/sys-apps/kmod/files/kmod-19-strndupa.patch
26 deleted file mode 100644
27 index 74b2af6..0000000
28 --- a/sys-apps/kmod/files/kmod-19-strndupa.patch
29 +++ /dev/null
30 @@ -1,23 +0,0 @@
31 -From efb5bfaca938fa5991865c1e9a0c730dc919708c Mon Sep 17 00:00:00 2001
32 -From: Natanael Copa <ncopa@×××××××××××.org>
33 -Date: Mon, 17 Nov 2014 09:36:29 +0100
34 -Subject: util: fix build on systems missing strndupa
35 -
36 -we need include shared/missing.h to be able to compile on sysmtes that
37 -lacks strndupa.
38 -
39 -diff --git a/shared/util.c b/shared/util.c
40 -index 855d4e4..23bbb26 100644
41 ---- a/shared/util.c
42 -+++ b/shared/util.c
43 -@@ -30,6 +30,7 @@
44 - #include <string.h>
45 - #include <unistd.h>
46 -
47 -+#include <shared/missing.h>
48 - #include <shared/util.h>
49 -
50 - #define USEC_PER_SEC 1000000ULL
51 ---
52 -cgit v0.10.1
53 -
54 diff --git a/sys-apps/kmod/files/kmod-static-nodes-r1 b/sys-apps/kmod/files/kmod-static-nodes-r1
55 deleted file mode 100644
56 index dcbf679..0000000
57 --- a/sys-apps/kmod/files/kmod-static-nodes-r1
58 +++ /dev/null
59 @@ -1,19 +0,0 @@
60 -#!/sbin/runscript
61 -# Copyright 1999-2014 Gentoo Foundation
62 -# Distributed under the terms of the GNU General Public License v2
63 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/files/kmod-static-nodes-r1,v 1.1 2014/07/11 12:28:07 ssuominen Exp $
64 -
65 -description="Create list of required static device nodes for the current kernel"
66 -
67 -depend() {
68 - after dev-mount
69 - before tmpfiles.dev dev
70 - keyword -lxc
71 -}
72 -
73 -start() {
74 - ebegin "Creating list of required static device nodes for the current kernel"
75 - checkpath -q -d /run/tmpfiles.d
76 - kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf
77 - eend $?
78 -}
79 diff --git a/sys-apps/kmod/kmod-19-r99.ebuild b/sys-apps/kmod/kmod-19-r99.ebuild
80 deleted file mode 100644
81 index 6da3cd0..0000000
82 --- a/sys-apps/kmod/kmod-19-r99.ebuild
83 +++ /dev/null
84 @@ -1,192 +0,0 @@
85 -# Copyright 1999-2014 Gentoo Foundation
86 -# Distributed under the terms of the GNU General Public License v2
87 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-19.ebuild,v 1.1 2014/11/23 06:51:01 williamh Exp $
88 -
89 -EAPI=5
90 -
91 -PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} )
92 -
93 -inherit bash-completion-r1 eutils multilib python-r1
94 -
95 -if [[ ${PV} == 9999* ]]; then
96 - EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git"
97 - inherit autotools git-2
98 -else
99 - SRC_URI="mirror://kernel/linux/utils/kernel/kmod/${P}.tar.xz"
100 - KEYWORDS="amd64 arm ~mips ppc x86"
101 - inherit libtool
102 -fi
103 -
104 -DESCRIPTION="library and tools for managing linux kernel modules"
105 -HOMEPAGE="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git"
106 -
107 -LICENSE="LGPL-2"
108 -SLOT="0"
109 -IUSE="debug doc lzma python static-libs +tools zlib"
110 -
111 -# Upstream does not support running the test suite with custom configure flags.
112 -# I was also told that the test suite is intended for kmod developers.
113 -# So we have to restrict it.
114 -# See bug #408915.
115 -RESTRICT="test"
116 -
117 -# Block systemd below 217 for -static-nodes-indicate-that-creation-of-static-nodes-.patch
118 -RDEPEND="!sys-apps/module-init-tools
119 - !sys-apps/modutils
120 - !<sys-apps/openrc-0.13
121 - !<sys-apps/systemd-217
122 - lzma? ( >=app-arch/xz-utils-5.0.4-r1 )
123 - python? ( ${PYTHON_DEPS} )
124 - zlib? ( >=sys-libs/zlib-1.2.6 )" #427130
125 -DEPEND="${RDEPEND}
126 - doc? ( dev-util/gtk-doc )
127 - lzma? ( virtual/pkgconfig )
128 - python? (
129 - dev-python/cython[${PYTHON_USEDEP}]
130 - virtual/pkgconfig
131 - )
132 - zlib? ( virtual/pkgconfig )"
133 -if [[ ${PV} == 9999* ]]; then
134 - DEPEND="${DEPEND}
135 - dev-libs/libxslt"
136 -fi
137 -
138 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
139 -
140 -DOCS="NEWS README TODO"
141 -
142 -src_prepare() {
143 - if [ ! -e configure ]; then
144 - if use doc; then
145 - gtkdocize --copy --docdir libkmod/docs || die
146 - else
147 - touch libkmod/docs/gtk-doc.make
148 - fi
149 - eautoreconf
150 - else
151 - elibtoolize
152 - fi
153 -
154 - epatch "${FILESDIR}"/${P}-strndupa.patch
155 -
156 - # Restore possibility of running --enable-static wrt #472608
157 - sed -i \
158 - -e '/--enable-static is not supported by kmod/s:as_fn_error:echo:' \
159 - configure || die
160 -}
161 -
162 -src_configure() {
163 - local myeconfargs=(
164 - --bindir="${EPREFIX}/bin"
165 - --with-rootlibdir="${EPREFIX}/$(get_libdir)"
166 - --enable-shared
167 - $(use_enable static-libs static)
168 - $(use_enable tools)
169 - $(use_enable debug)
170 - $(use_enable doc gtk-doc)
171 - $(use_with lzma xz)
172 - $(use_with zlib)
173 - --with-bashcompletiondir="$(get_bashcompdir)"
174 - )
175 -
176 - local ECONF_SOURCE="${S}"
177 -
178 - kmod_configure() {
179 - mkdir -p "${BUILD_DIR}" || die
180 - run_in_build_dir econf "${myeconfargs[@]}" "$@"
181 - }
182 -
183 - BUILD_DIR="${WORKDIR}/build"
184 - kmod_configure --disable-python
185 -
186 - if use python; then
187 - python_parallel_foreach_impl kmod_configure --enable-python
188 - fi
189 -}
190 -
191 -src_compile() {
192 - emake -C "${BUILD_DIR}"
193 -
194 - if use python; then
195 - local native_builddir=${BUILD_DIR}
196 -
197 - python_compile() {
198 - emake -C "${BUILD_DIR}" -f Makefile -f - python \
199 - VPATH="${native_builddir}:${S}" \
200 - native_builddir="${native_builddir}" \
201 - libkmod_python_kmod_{kmod,list,module,_util}_la_LIBADD='$(PYTHON_LIBS) $(native_builddir)/libkmod/libkmod.la' \
202 - <<< 'python: $(pkgpyexec_LTLIBRARIES)'
203 - }
204 -
205 - python_foreach_impl python_compile
206 - fi
207 -}
208 -
209 -src_install() {
210 - emake -C "${BUILD_DIR}" DESTDIR="${D}" install
211 - einstalldocs
212 -
213 - if use python; then
214 - local native_builddir=${BUILD_DIR}
215 -
216 - python_install() {
217 - emake -C "${BUILD_DIR}" DESTDIR="${D}" \
218 - VPATH="${native_builddir}:${S}" \
219 - install-pkgpyexecLTLIBRARIES \
220 - install-dist_pkgpyexecPYTHON
221 - }
222 -
223 - python_foreach_impl python_install
224 - fi
225 -
226 - prune_libtool_files --modules
227 -
228 - if use tools; then
229 - local bincmd sbincmd
230 - for sbincmd in depmod insmod lsmod modinfo modprobe rmmod; do
231 - dosym /bin/kmod /sbin/${sbincmd}
232 - done
233 -
234 - # These are also usable as normal user
235 - for bincmd in lsmod modinfo; do
236 - dosym kmod /bin/${bincmd}
237 - done
238 - fi
239 -
240 - cat <<-EOF > "${T}"/usb-load-ehci-first.conf
241 - softdep uhci_hcd pre: ehci_hcd
242 - softdep ohci_hcd pre: ehci_hcd
243 - EOF
244 -
245 - insinto /lib/modprobe.d
246 - doins "${T}"/usb-load-ehci-first.conf #260139
247 -
248 - newinitd "${FILESDIR}"/kmod-static-nodes-r1 kmod-static-nodes
249 -}
250 -
251 -pkg_postinst() {
252 - if [[ -L ${EROOT%/}/etc/runlevels/boot/static-nodes ]]; then
253 - ewarn "Removing old conflicting static-nodes init script from the boot runlevel"
254 - rm -f "${EROOT%/}"/etc/runlevels/boot/static-nodes
255 - fi
256 -
257 - # Add kmod to the runlevel automatically if this is the first install of this package.
258 - if [[ -z ${REPLACING_VERSIONS} ]]; then
259 - if [[ ! -d ${EROOT%/}/etc/runlevels/sysinit ]]; then
260 - mkdir -p "${EROOT%/}"/etc/runlevels/sysinit
261 - fi
262 - if [[ -x ${EROOT%/}/etc/init.d/kmod-static-nodes ]]; then
263 - ln -s /etc/init.d/kmod-static-nodes "${EROOT%/}"/etc/runlevels/sysinit/kmod-static-nodes
264 - fi
265 - fi
266 -
267 - if [[ -e ${EROOT%/}/etc/runlevels/sysinit ]]; then
268 - if [[ ! -e ${EROOT%/}/etc/runlevels/sysinit/kmod-static-nodes ]]; then
269 - ewarn
270 - ewarn "You need to add kmod-static-nodes to the sysinit runlevel for"
271 - ewarn "kernel modules to have required static nodes!"
272 - ewarn "Run this command:"
273 - ewarn "\trc-update add kmod-static-nodes sysinit"
274 - fi
275 - fi
276 -}
277 diff --git a/sys-apps/kmod/metadata.xml b/sys-apps/kmod/metadata.xml
278 deleted file mode 100644
279 index 723317e..0000000
280 --- a/sys-apps/kmod/metadata.xml
281 +++ /dev/null
282 @@ -1,11 +0,0 @@
283 -<?xml version="1.0" encoding="UTF-8"?>
284 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
285 -<pkgmetadata>
286 - <herd>base-system</herd>
287 - <maintainer>
288 - <email>udev-bugs@g.o</email>
289 - </maintainer>
290 - <use>
291 - <flag name='tools'>Install module loading/unloading tools.</flag>
292 - </use>
293 -</pkgmetadata>
294 --
295 2.3.6