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-9999.ebuild kmod-16.ebuild ChangeLog
Date: Fri, 27 Dec 2013 21:34:29
Message-Id: 20131227213425.4F28C2004C@flycatcher.gentoo.org
1 ssuominen 13/12/27 21:34:25
2
3 Modified: kmod-9999.ebuild ChangeLog
4 Added: kmod-16.ebuild
5 Log:
6 Version bump (and synchronize with -9999)
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
9
10 Revision Changes Path
11 1.66 sys-apps/kmod/kmod-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-9999.ebuild?rev=1.66&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-9999.ebuild?rev=1.66&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-9999.ebuild?r1=1.65&r2=1.66
16
17 Index: kmod-9999.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-9999.ebuild,v
20 retrieving revision 1.65
21 retrieving revision 1.66
22 diff -u -r1.65 -r1.66
23 --- kmod-9999.ebuild 19 Sep 2013 13:57:58 -0000 1.65
24 +++ kmod-9999.ebuild 27 Dec 2013 21:34:25 -0000 1.66
25 @@ -1,16 +1,17 @@
26 # Copyright 1999-2013 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-9999.ebuild,v 1.65 2013/09/19 13:57:58 ssuominen Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-9999.ebuild,v 1.66 2013/12/27 21:34:25 ssuominen Exp $
30
31 EAPI=5
32 -inherit autotools eutils libtool multilib toolchain-funcs versionator
33 +inherit eutils multilib
34
35 -if [[ ${PV} == 9999 ]]; then
36 +if [[ ${PV} == 9999* ]]; then
37 EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git"
38 - inherit git-2
39 + inherit autotools git-2
40 else
41 SRC_URI="mirror://kernel/linux/utils/kernel/kmod/${P}.tar.xz"
42 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
43 + inherit libtool
44 fi
45
46 DESCRIPTION="library and tools for managing linux kernel modules"
47 @@ -37,11 +38,6 @@
48 lzma? ( virtual/pkgconfig )
49 zlib? ( virtual/pkgconfig )"
50
51 -pkg_setup() {
52 - [[ $(tc-getCPP) == *cpp ]] && ! version_is_at_least 4.6 $(gcc-version) && \
53 - die "You need at least GNU GCC 4.6.x to build this package." #481020
54 -}
55 -
56 src_prepare() {
57 if [ ! -e configure ]; then
58 if use doc; then
59 @@ -51,6 +47,7 @@
60 fi
61 eautoreconf
62 else
63 + epatch "${FILESDIR}"/${PN}-15-dynamic-kmod.patch #493630
64 elibtoolize
65 fi
66
67 @@ -63,7 +60,7 @@
68 src_configure() {
69 econf \
70 --bindir=/bin \
71 - --with-rootlibdir=/$(get_libdir) \
72 + --with-rootlibdir="/$(get_libdir)" \
73 --enable-shared \
74 $(use_enable static-libs static) \
75 $(use_enable tools) \
76
77
78
79 1.120 sys-apps/kmod/ChangeLog
80
81 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/ChangeLog?rev=1.120&view=markup
82 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/ChangeLog?rev=1.120&content-type=text/plain
83 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/ChangeLog?r1=1.119&r2=1.120
84
85 Index: ChangeLog
86 ===================================================================
87 RCS file: /var/cvsroot/gentoo-x86/sys-apps/kmod/ChangeLog,v
88 retrieving revision 1.119
89 retrieving revision 1.120
90 diff -u -r1.119 -r1.120
91 --- ChangeLog 9 Dec 2013 01:55:28 -0000 1.119
92 +++ ChangeLog 27 Dec 2013 21:34:25 -0000 1.120
93 @@ -1,6 +1,12 @@
94 # ChangeLog for sys-apps/kmod
95 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL
96 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/ChangeLog,v 1.119 2013/12/09 01:55:28 vapier Exp $
97 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/ChangeLog,v 1.120 2013/12/27 21:34:25 ssuominen Exp $
98 +
99 +*kmod-16 (27 Dec 2013)
100 +
101 + 27 Dec 2013; Samuli Suominen <ssuominen@g.o> +kmod-16.ebuild,
102 + kmod-9999.ebuild:
103 + Version bump (and synchronize with -9999)
104
105 *kmod-15-r1 (09 Dec 2013)
106
107
108
109
110 1.1 sys-apps/kmod/kmod-16.ebuild
111
112 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-16.ebuild?rev=1.1&view=markup
113 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-16.ebuild?rev=1.1&content-type=text/plain
114
115 Index: kmod-16.ebuild
116 ===================================================================
117 # Copyright 1999-2013 Gentoo Foundation
118 # Distributed under the terms of the GNU General Public License v2
119 # $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/kmod-16.ebuild,v 1.1 2013/12/27 21:34:25 ssuominen Exp $
120
121 EAPI=5
122 inherit eutils multilib
123
124 if [[ ${PV} == 9999* ]]; then
125 EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/${PN}/${PN}.git"
126 inherit autotools git-2
127 else
128 SRC_URI="mirror://kernel/linux/utils/kernel/kmod/${P}.tar.xz"
129 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
130 inherit libtool
131 fi
132
133 DESCRIPTION="library and tools for managing linux kernel modules"
134 HOMEPAGE="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git"
135
136 LICENSE="LGPL-2"
137 SLOT="0"
138 IUSE="debug doc lzma +openrc static-libs +tools zlib"
139
140 # Upstream does not support running the test suite with custom configure flags.
141 # I was also told that the test suite is intended for kmod developers.
142 # So we have to restrict it.
143 # See bug #408915.
144 RESTRICT="test"
145
146 RDEPEND="!sys-apps/module-init-tools
147 !sys-apps/modutils
148 lzma? ( >=app-arch/xz-utils-5.0.4-r1 )
149 openrc? ( !<sys-apps/openrc-0.12 )
150 zlib? ( >=sys-libs/zlib-1.2.6 )" #427130
151 DEPEND="${RDEPEND}
152 dev-libs/libxslt
153 doc? ( dev-util/gtk-doc )
154 lzma? ( virtual/pkgconfig )
155 zlib? ( virtual/pkgconfig )"
156
157 src_prepare() {
158 if [ ! -e configure ]; then
159 if use doc; then
160 gtkdocize --copy --docdir libkmod/docs || die
161 else
162 touch libkmod/docs/gtk-doc.make
163 fi
164 eautoreconf
165 else
166 epatch "${FILESDIR}"/${PN}-15-dynamic-kmod.patch #493630
167 elibtoolize
168 fi
169
170 # Restore possibility of running --enable-static wrt #472608
171 sed -i \
172 -e '/--enable-static is not supported by kmod/s:as_fn_error:echo:' \
173 configure || die
174 }
175
176 src_configure() {
177 econf \
178 --bindir=/bin \
179 --with-rootlibdir="/$(get_libdir)" \
180 --enable-shared \
181 $(use_enable static-libs static) \
182 $(use_enable tools) \
183 $(use_enable debug) \
184 $(use_enable doc gtk-doc) \
185 $(use_with lzma xz) \
186 $(use_with zlib)
187 }
188
189 src_install() {
190 default
191 prune_libtool_files
192
193 if use tools; then
194 local bincmd sbincmd
195 for sbincmd in depmod insmod lsmod modinfo modprobe rmmod; do
196 dosym /bin/kmod /sbin/${sbincmd}
197 done
198
199 # These are also usable as normal user
200 for bincmd in lsmod modinfo; do
201 dosym kmod /bin/${bincmd}
202 done
203 fi
204
205 cat <<-EOF > "${T}"/usb-load-ehci-first.conf
206 softdep uhci_hcd pre: ehci_hcd
207 softdep ohci_hcd pre: ehci_hcd
208 EOF
209
210 insinto /lib/modprobe.d
211 doins "${T}"/usb-load-ehci-first.conf #260139
212
213 use openrc && doinitd "${FILESDIR}"/kmod-static-nodes
214 }
215
216 pkg_postinst() {
217 if use openrc; then
218 if [[ -L ${ROOT}etc/runlevels/boot/static-nodes ]]; then
219 ewarn "Removing old conflicting static-nodes init script from the boot runlevel"
220 rm -f "${ROOT}"etc/runlevels/boot/static-nodes
221 fi
222
223 # Add kmod to the runlevel automatically if this is the first install of this package.
224 if [[ -z ${REPLACING_VERSIONS} ]]; then
225 if [[ -x ${ROOT}etc/init.d/kmod-static-nodes && -d ${ROOT}etc/runlevels/sysinit ]]; then
226 ln -s /etc/init.d/kmod-static-nodes "${ROOT}"/etc/runlevels/sysinit/kmod-static-nodes
227 fi
228 fi
229
230 if [[ -e ${ROOT}etc/runlevels/sysinit ]]; then
231 if [[ ! -e ${ROOT}etc/runlevels/sysinit/kmod-static-nodes ]]; then
232 ewarn
233 ewarn "You need to add kmod-static-nodes to the sysinit runlevel for"
234 ewarn "kernel modules to have required static nodes!"
235 ewarn "Run this command:"
236 ewarn "\trc-update add kmod-static-nodes sysinit"
237 fi
238 fi
239 fi
240 }