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