Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/kmod: kmod-18-r1.ebuild kmod-18-r2.ebuild ChangeLog
Date: Thu, 30 Oct 2014 05:39:33
Message-Id: 20141030053920.5B79290D1@oystercatcher.gentoo.org
1 ssuominen 14/10/30 05:39:20
2
3 Modified: kmod-18-r1.ebuild ChangeLog
4 Added: kmod-18-r2.ebuild
5 Log:
6 Include upstream patch for udev-217 compability and adjust blockers accordingly.
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
9
10 Revision Changes Path
11 1.13 sys-apps/kmod/kmod-18-r1.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-18-r1.ebuild?rev=1.13&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-18-r1.ebuild?rev=1.13&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-18-r1.ebuild?r1=1.12&r2=1.13
16
17 Index: kmod-18-r1.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-18-r1.ebuild,v
20 retrieving revision 1.12
21 retrieving revision 1.13
22 diff -u -r1.12 -r1.13
23 --- kmod-18-r1.ebuild 3 Oct 2014 06:32:51 -0000 1.12
24 +++ kmod-18-r1.ebuild 30 Oct 2014 05:39:20 -0000 1.13
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2014 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-18-r1.ebuild,v 1.12 2014/10/03 06:32:51 armin76 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-18-r1.ebuild,v 1.13 2014/10/30 05:39:20 ssuominen Exp $
30
31 EAPI=5
32
33 @@ -30,9 +30,13 @@
34 # See bug #408915.
35 RESTRICT="test"
36
37 +# Block everything above and including 217 for -static-nodes-indicate-that-creation-of-static-nodes-.patch
38 RDEPEND="!sys-apps/module-init-tools
39 !sys-apps/modutils
40 !<sys-apps/openrc-0.12
41 + !>=sys-fs/udev-217
42 + !>=sys-fs/eudev-2.1
43 + !>=sys-apps/systemd-217
44 lzma? ( >=app-arch/xz-utils-5.0.4-r1 )
45 python? ( ${PYTHON_DEPS} )
46 zlib? ( >=sys-libs/zlib-1.2.6 )" #427130
47
48
49
50 1.172 sys-apps/kmod/ChangeLog
51
52 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/ChangeLog?rev=1.172&view=markup
53 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/ChangeLog?rev=1.172&content-type=text/plain
54 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/ChangeLog?r1=1.171&r2=1.172
55
56 Index: ChangeLog
57 ===================================================================
58 RCS file: /var/cvsroot/gentoo-x86/sys-apps/kmod/ChangeLog,v
59 retrieving revision 1.171
60 retrieving revision 1.172
61 diff -u -r1.171 -r1.172
62 --- ChangeLog 3 Oct 2014 06:32:51 -0000 1.171
63 +++ ChangeLog 30 Oct 2014 05:39:20 -0000 1.172
64 @@ -1,6 +1,14 @@
65 # ChangeLog for sys-apps/kmod
66 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL
67 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/ChangeLog,v 1.171 2014/10/03 06:32:51 armin76 Exp $
68 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/ChangeLog,v 1.172 2014/10/30 05:39:20 ssuominen Exp $
69 +
70 +*kmod-18-r2 (30 Oct 2014)
71 +
72 + 30 Oct 2014; Samuli Suominen <ssuominen@g.o>
73 + +files/kmod-18-static-nodes-indicate-that-creation-of-static-nodes-.patch,
74 + +kmod-18-r2.ebuild, kmod-18-r1.ebuild:
75 + Include upstream patch for udev-217 compability and adjust blockers
76 + accordingly.
77
78 03 Oct 2014; Raúl Porcel <armin76@g.o> kmod-18-r1.ebuild:
79 m68k/s390/sh stable
80
81
82
83 1.1 sys-apps/kmod/kmod-18-r2.ebuild
84
85 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-18-r2.ebuild?rev=1.1&view=markup
86 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-18-r2.ebuild?rev=1.1&content-type=text/plain
87
88 Index: kmod-18-r2.ebuild
89 ===================================================================
90 # Copyright 1999-2014 Gentoo Foundation
91 # Distributed under the terms of the GNU General Public License v2
92 # $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-18-r2.ebuild,v 1.1 2014/10/30 05:39:20 ssuominen Exp $
93
94 EAPI=5
95
96 PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} )
97
98 inherit bash-completion-r1 eutils multilib python-r1
99
100 if [[ ${PV} == 9999* ]]; then
101 EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git"
102 inherit autotools git-2
103 else
104 SRC_URI="mirror://kernel/linux/utils/kernel/kmod/${P}.tar.xz"
105 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
106 inherit libtool
107 fi
108
109 DESCRIPTION="library and tools for managing linux kernel modules"
110 HOMEPAGE="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git"
111
112 LICENSE="LGPL-2"
113 SLOT="0"
114 IUSE="debug doc lzma python static-libs +tools zlib"
115
116 # Upstream does not support running the test suite with custom configure flags.
117 # I was also told that the test suite is intended for kmod developers.
118 # So we have to restrict it.
119 # See bug #408915.
120 RESTRICT="test"
121
122 # Block everything below 217 for -static-nodes-indicate-that-creation-of-static-nodes-.patch
123 RDEPEND="!sys-apps/module-init-tools
124 !sys-apps/modutils
125 !<sys-apps/openrc-0.12
126 !<sys-fs/udev-217
127 !<sys-fs/eudev-2.1
128 !<sys-apps/systemd-217
129 lzma? ( >=app-arch/xz-utils-5.0.4-r1 )
130 python? ( ${PYTHON_DEPS} )
131 zlib? ( >=sys-libs/zlib-1.2.6 )" #427130
132 DEPEND="${RDEPEND}
133 doc? ( dev-util/gtk-doc )
134 lzma? ( virtual/pkgconfig )
135 python? (
136 dev-python/cython[${PYTHON_USEDEP}]
137 virtual/pkgconfig
138 )
139 zlib? ( virtual/pkgconfig )"
140 if [[ ${PV} == 9999* ]]; then
141 DEPEND="${DEPEND}
142 dev-libs/libxslt"
143 fi
144
145 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
146
147 DOCS="NEWS README TODO"
148
149 src_prepare() {
150 if [ ! -e configure ]; then
151 if use doc; then
152 gtkdocize --copy --docdir libkmod/docs || die
153 else
154 touch libkmod/docs/gtk-doc.make
155 fi
156 eautoreconf
157 else
158 epatch "${FILESDIR}"/${PN}-15-dynamic-kmod.patch #493630
159 elibtoolize
160 fi
161
162 epatch "${FILESDIR}"/${P}-static-nodes-indicate-that-creation-of-static-nodes-.patch
163
164 # Restore possibility of running --enable-static wrt #472608
165 sed -i \
166 -e '/--enable-static is not supported by kmod/s:as_fn_error:echo:' \
167 configure || die
168 }
169
170 src_configure() {
171 local myeconfargs=(
172 --bindir="${EPREFIX}/bin"
173 --with-rootlibdir="${EPREFIX}/$(get_libdir)"
174 --enable-shared
175 $(use_enable static-libs static)
176 $(use_enable tools)
177 $(use_enable debug)
178 $(use_enable doc gtk-doc)
179 $(use_with lzma xz)
180 $(use_with zlib)
181 --with-bashcompletiondir="$(get_bashcompdir)"
182 )
183
184 local ECONF_SOURCE="${S}"
185
186 kmod_configure() {
187 mkdir -p "${BUILD_DIR}" || die
188 run_in_build_dir econf "${myeconfargs[@]}" "$@"
189 }
190
191 BUILD_DIR="${WORKDIR}/build"
192 kmod_configure --disable-python
193
194 if use python; then
195 python_parallel_foreach_impl kmod_configure --enable-python
196 fi
197 }
198
199 src_compile() {
200 if [[ ${PV} != 9999* ]]; then
201 # Force -j1 because of -15-dynamic-kmod.patch, likely caused by lack of eautoreconf
202 # wrt #494806
203 local MAKEOPTS="${MAKEOPTS} -j1"
204 fi
205
206 emake -C "${BUILD_DIR}"
207
208 if use python; then
209 local native_builddir=${BUILD_DIR}
210
211 python_compile() {
212 emake -C "${BUILD_DIR}" -f Makefile -f - python \
213 VPATH="${native_builddir}:${S}" \
214 native_builddir="${native_builddir}" \
215 libkmod_python_kmod_{kmod,list,module,_util}_la_LIBADD='$(PYTHON_LIBS) $(native_builddir)/libkmod/libkmod.la' \
216 <<< 'python: $(pkgpyexec_LTLIBRARIES)'
217 }
218
219 python_foreach_impl python_compile
220 fi
221 }
222
223 src_install() {
224 emake -C "${BUILD_DIR}" DESTDIR="${D}" install
225 einstalldocs
226
227 if use python; then
228 local native_builddir=${BUILD_DIR}
229
230 python_install() {
231 emake -C "${BUILD_DIR}" DESTDIR="${D}" \
232 VPATH="${native_builddir}:${S}" \
233 install-pkgpyexecLTLIBRARIES \
234 install-dist_pkgpyexecPYTHON
235 }
236
237 python_foreach_impl python_install
238 fi
239
240 prune_libtool_files --modules
241
242 if use tools; then
243 local bincmd sbincmd
244 for sbincmd in depmod insmod lsmod modinfo modprobe rmmod; do
245 dosym /bin/kmod /sbin/${sbincmd}
246 done
247
248 # These are also usable as normal user
249 for bincmd in lsmod modinfo; do
250 dosym kmod /bin/${bincmd}
251 done
252 fi
253
254 cat <<-EOF > "${T}"/usb-load-ehci-first.conf
255 softdep uhci_hcd pre: ehci_hcd
256 softdep ohci_hcd pre: ehci_hcd
257 EOF
258
259 insinto /lib/modprobe.d
260 doins "${T}"/usb-load-ehci-first.conf #260139
261
262 newinitd "${FILESDIR}"/kmod-static-nodes-r1 kmod-static-nodes
263 }
264
265 pkg_postinst() {
266 if [[ -L ${EROOT%/}/etc/runlevels/boot/static-nodes ]]; then
267 ewarn "Removing old conflicting static-nodes init script from the boot runlevel"
268 rm -f "${EROOT%/}"/etc/runlevels/boot/static-nodes
269 fi
270
271 # Add kmod to the runlevel automatically if this is the first install of this package.
272 if [[ -z ${REPLACING_VERSIONS} ]]; then
273 if [[ ! -d ${EROOT%/}/etc/runlevels/sysinit ]]; then
274 mkdir -p "${EROOT%/}"/etc/runlevels/sysinit
275 fi
276 if [[ -x ${EROOT%/}/etc/init.d/kmod-static-nodes ]]; then
277 ln -s /etc/init.d/kmod-static-nodes "${EROOT%/}"/etc/runlevels/sysinit/kmod-static-nodes
278 fi
279 fi
280
281 if [[ -e ${EROOT%/}/etc/runlevels/sysinit ]]; then
282 if [[ ! -e ${EROOT%/}/etc/runlevels/sysinit/kmod-static-nodes ]]; then
283 ewarn
284 ewarn "You need to add kmod-static-nodes to the sysinit runlevel for"
285 ewarn "kernel modules to have required static nodes!"
286 ewarn "Run this command:"
287 ewarn "\trc-update add kmod-static-nodes sysinit"
288 fi
289 fi
290 }