1 |
blueness 15/05/30 13:53:27 |
2 |
|
3 |
Modified: eudev-9999.ebuild ChangeLog |
4 |
Added: eudev-3.1.ebuild |
5 |
Log: |
6 |
Version bump. eudev-3.1 = udev-220. |
7 |
|
8 |
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA) |
9 |
|
10 |
Revision Changes Path |
11 |
1.68 sys-fs/eudev/eudev-9999.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/eudev-9999.ebuild?rev=1.68&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/eudev-9999.ebuild?rev=1.68&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/eudev-9999.ebuild?r1=1.67&r2=1.68 |
16 |
|
17 |
Index: eudev-9999.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/eudev/eudev-9999.ebuild,v |
20 |
retrieving revision 1.67 |
21 |
retrieving revision 1.68 |
22 |
diff -u -r1.67 -r1.68 |
23 |
--- eudev-9999.ebuild 20 May 2015 16:47:04 -0000 1.67 |
24 |
+++ eudev-9999.ebuild 30 May 2015 13:53:27 -0000 1.68 |
25 |
@@ -1,6 +1,6 @@ |
26 |
# Copyright 1999-2015 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/eudev-9999.ebuild,v 1.67 2015/05/20 16:47:04 blueness Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/eudev-9999.ebuild,v 1.68 2015/05/30 13:53:27 blueness Exp $ |
30 |
|
31 |
EAPI="5" |
32 |
|
33 |
@@ -127,6 +127,8 @@ |
34 |
--with-rootlibexecdir=/lib/udev |
35 |
--with-html-dir="/usr/share/doc/${PF}/html" |
36 |
--enable-split-usr |
37 |
+ --enable-manpages |
38 |
+ --disable-hwdb |
39 |
--exec-prefix=/ |
40 |
|
41 |
$(use_enable gudev) |
42 |
@@ -192,9 +194,6 @@ |
43 |
prune_libtool_files --all |
44 |
rm -rf "${ED}"/usr/share/doc/${PF}/LICENSE.* |
45 |
|
46 |
- # drop distributed hwdb files, they override sys-apps/hwids |
47 |
- rm -f "${ED}"/etc/udev/hwdb.d/*.hwdb |
48 |
- |
49 |
insinto /lib/udev/rules.d |
50 |
doins "${FILESDIR}"/40-gentoo.rules |
51 |
|
52 |
|
53 |
|
54 |
|
55 |
1.160 sys-fs/eudev/ChangeLog |
56 |
|
57 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/ChangeLog?rev=1.160&view=markup |
58 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/ChangeLog?rev=1.160&content-type=text/plain |
59 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/ChangeLog?r1=1.159&r2=1.160 |
60 |
|
61 |
Index: ChangeLog |
62 |
=================================================================== |
63 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v |
64 |
retrieving revision 1.159 |
65 |
retrieving revision 1.160 |
66 |
diff -u -r1.159 -r1.160 |
67 |
--- ChangeLog 20 May 2015 16:47:04 -0000 1.159 |
68 |
+++ ChangeLog 30 May 2015 13:53:27 -0000 1.160 |
69 |
@@ -1,6 +1,12 @@ |
70 |
# ChangeLog for sys-fs/eudev |
71 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
72 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v 1.159 2015/05/20 16:47:04 blueness Exp $ |
73 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/ChangeLog,v 1.160 2015/05/30 13:53:27 blueness Exp $ |
74 |
+ |
75 |
+*eudev-3.1 (30 May 2015) |
76 |
+ |
77 |
+ 30 May 2015; Anthony G. Basile <blueness@g.o> +eudev-3.1.ebuild, |
78 |
+ eudev-9999.ebuild: |
79 |
+ Version bump. eudev-3.1 = udev-220. |
80 |
|
81 |
20 May 2015; Anthony G. Basile <blueness@g.o> eudev-1.10-r2.ebuild, |
82 |
eudev-2.1.1.ebuild, eudev-3.0.ebuild, eudev-9999.ebuild: |
83 |
|
84 |
|
85 |
|
86 |
1.1 sys-fs/eudev/eudev-3.1.ebuild |
87 |
|
88 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/eudev-3.1.ebuild?rev=1.1&view=markup |
89 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/eudev/eudev-3.1.ebuild?rev=1.1&content-type=text/plain |
90 |
|
91 |
Index: eudev-3.1.ebuild |
92 |
=================================================================== |
93 |
# Copyright 1999-2015 Gentoo Foundation |
94 |
# Distributed under the terms of the GNU General Public License v2 |
95 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/eudev/eudev-3.1.ebuild,v 1.1 2015/05/30 13:53:27 blueness Exp $ |
96 |
|
97 |
EAPI="5" |
98 |
|
99 |
KV_min=2.6.39 |
100 |
WANT_AUTOMAKE=1.13 |
101 |
|
102 |
inherit autotools eutils linux-info multilib multilib-minimal user |
103 |
|
104 |
if [[ ${PV} = 9999* ]]; then |
105 |
EGIT_REPO_URI="git://github.com/gentoo/eudev.git" |
106 |
inherit git-2 |
107 |
else |
108 |
SRC_URI="http://dev.gentoo.org/~blueness/${PN}/${P}.tar.gz" |
109 |
KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86" |
110 |
fi |
111 |
|
112 |
DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)" |
113 |
HOMEPAGE="https://github.com/gentoo/eudev" |
114 |
|
115 |
LICENSE="LGPL-2.1 MIT GPL-2" |
116 |
SLOT="0" |
117 |
IUSE="doc gudev +hwdb +kmod introspection selinux static-libs test" |
118 |
|
119 |
COMMON_DEPEND=">=sys-apps/util-linux-2.20 |
120 |
gudev? ( >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] ) |
121 |
introspection? ( >=dev-libs/gobject-introspection-1.38 ) |
122 |
kmod? ( >=sys-apps/kmod-16 ) |
123 |
selinux? ( >=sys-libs/libselinux-2.1.9 ) |
124 |
!<sys-libs/glibc-2.11 |
125 |
!sys-apps/gentoo-systemd-integration |
126 |
!sys-apps/systemd |
127 |
abi_x86_32? ( |
128 |
!<=app-emulation/emul-linux-x86-baselibs-20130224-r7 |
129 |
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
130 |
)" |
131 |
DEPEND="${COMMON_DEPEND} |
132 |
dev-util/gperf |
133 |
virtual/os-headers |
134 |
virtual/pkgconfig |
135 |
>=sys-devel/make-3.82-r4 |
136 |
>=sys-kernel/linux-headers-${KV_min} |
137 |
doc? ( >=dev-util/gtk-doc-1.18 |
138 |
app-text/docbook-xml-dtd:4.2 |
139 |
app-text/docbook-xml-dtd:4.5 |
140 |
app-text/docbook-xsl-stylesheets |
141 |
dev-libs/libxslt |
142 |
) |
143 |
>=dev-util/intltool-0.50 |
144 |
test? ( app-text/tree dev-lang/perl )" |
145 |
|
146 |
RDEPEND="${COMMON_DEPEND} |
147 |
!<sys-fs/lvm2-2.02.103 |
148 |
!<sec-policy/selinux-base-2.20120725-r10 |
149 |
!sys-fs/udev |
150 |
!sys-apps/systemd" |
151 |
|
152 |
PDEPEND=">=sys-fs/udev-init-scripts-26 |
153 |
hwdb? ( >=sys-apps/hwids-20140304[udev] )" |
154 |
|
155 |
# The multilib-build.eclass doesn't handle situation where the installed headers |
156 |
# are different in ABIs. In this case, we install libgudev headers in native |
157 |
# ABI but not for non-native ABI. |
158 |
multilib_check_headers() { :; } |
159 |
|
160 |
pkg_pretend() { |
161 |
ewarn |
162 |
ewarn "As of 2013-01-29, ${P} provides the new interface renaming functionality," |
163 |
ewarn "as described in the URL below:" |
164 |
ewarn "http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames" |
165 |
ewarn |
166 |
ewarn "This functionality is enabled BY DEFAULT because eudev has no means of synchronizing" |
167 |
ewarn "between the default or user-modified choice of sys-fs/udev. If you wish to disable" |
168 |
ewarn "this new iface naming, please be sure that /etc/udev/rules.d/80-net-name-slot.rules" |
169 |
ewarn "exists: touch /etc/udev/rules.d/80-net-name-slot.rules" |
170 |
ewarn |
171 |
} |
172 |
|
173 |
pkg_setup() { |
174 |
CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET" |
175 |
linux-info_pkg_setup |
176 |
get_running_version |
177 |
|
178 |
# These are required kernel options, but we don't error out on them |
179 |
# because you can build under one kernel and run under another. |
180 |
if kernel_is lt ${KV_min//./ }; then |
181 |
ewarn |
182 |
ewarn "Your current running kernel version ${KV_FULL} is too old to run ${P}." |
183 |
ewarn "Make sure to run udev under kernel version ${KV_min} or above." |
184 |
ewarn |
185 |
fi |
186 |
} |
187 |
|
188 |
src_prepare() { |
189 |
# change rules back to group uucp instead of dialout for now |
190 |
sed -e 's/GROUP="dialout"/GROUP="uucp"/' -i rules/*.rules \ |
191 |
|| die "failed to change group dialout to uucp" |
192 |
|
193 |
epatch_user |
194 |
|
195 |
if use doc; then |
196 |
gtkdocize --docdir docs || die "gtkdocize failed" |
197 |
else |
198 |
echo 'EXTRA_DIST =' > docs/gtk-doc.make |
199 |
fi |
200 |
eautoreconf |
201 |
} |
202 |
|
203 |
multilib_src_configure() { |
204 |
tc-export CC #463846 |
205 |
export cc_cv_CFLAGS__flto=no #502950 |
206 |
|
207 |
# Keep sorted by ./configure --help and only pass --disable flags |
208 |
# when *required* to avoid external deps or unnecessary compile |
209 |
local econf_args |
210 |
econf_args=( |
211 |
ac_cv_search_cap_init= |
212 |
ac_cv_header_sys_capability_h=yes |
213 |
DBUS_CFLAGS=' ' |
214 |
DBUS_LIBS=' ' |
215 |
--with-rootprefix= |
216 |
--with-rootrundir=/run |
217 |
--docdir=/usr/share/doc/${PF} |
218 |
--libdir=/usr/$(get_libdir) |
219 |
--with-rootlibexecdir=/lib/udev |
220 |
--with-html-dir="/usr/share/doc/${PF}/html" |
221 |
--enable-split-usr |
222 |
--enable-manpages |
223 |
--disable-hwdb |
224 |
--exec-prefix=/ |
225 |
|
226 |
$(use_enable gudev) |
227 |
) |
228 |
|
229 |
# Only build libudev for non-native_abi, and only install it to libdir, |
230 |
# that means all options only apply to native_abi |
231 |
if multilib_is_native_abi; then |
232 |
econf_args+=( |
233 |
--with-rootlibdir=/$(get_libdir) |
234 |
$(use_enable doc gtk-doc) |
235 |
$(use_enable introspection) |
236 |
$(use_enable kmod) |
237 |
$(use_enable static-libs static) |
238 |
$(use_enable selinux) |
239 |
) |
240 |
else |
241 |
econf_args+=( |
242 |
--disable-static |
243 |
--disable-gtk-doc |
244 |
--disable-introspection |
245 |
--disable-kmod |
246 |
--disable-selinux |
247 |
) |
248 |
fi |
249 |
ECONF_SOURCE="${S}" econf "${econf_args[@]}" |
250 |
} |
251 |
|
252 |
multilib_src_compile() { |
253 |
if multilib_is_native_abi; then |
254 |
emake |
255 |
else |
256 |
emake -C src/shared |
257 |
emake -C src/libudev |
258 |
use gudev && emake -C src/gudev |
259 |
fi |
260 |
} |
261 |
|
262 |
multilib_src_install() { |
263 |
if multilib_is_native_abi; then |
264 |
emake DESTDIR="${D}" install |
265 |
else |
266 |
emake -C src/libudev DESTDIR="${D}" install |
267 |
use gudev && emake -C src/gudev DESTDIR="${D}" install |
268 |
fi |
269 |
} |
270 |
|
271 |
multilib_src_test() { |
272 |
# make sandbox get out of the way |
273 |
# these are safe because there is a fake root filesystem put in place, |
274 |
# but sandbox seems to evaluate the paths of the test i/o instead of the |
275 |
# paths of the actual i/o that results. |
276 |
# also only test for native abi |
277 |
if multilib_is_native_abi; then |
278 |
addread /sys |
279 |
addwrite /dev |
280 |
addwrite /run |
281 |
default_src_test |
282 |
fi |
283 |
} |
284 |
|
285 |
multilib_src_install_all() { |
286 |
prune_libtool_files --all |
287 |
rm -rf "${ED}"/usr/share/doc/${PF}/LICENSE.* |
288 |
|
289 |
insinto /lib/udev/rules.d |
290 |
doins "${FILESDIR}"/40-gentoo.rules |
291 |
|
292 |
if ! [[ ${PV} = 9999* ]]; then |
293 |
insinto /usr/share/doc/${PF}/html/gudev |
294 |
doins "${S}"/docs/gudev/html/* |
295 |
|
296 |
insinto /usr/share/doc/${PF}/html/libudev |
297 |
doins "${S}"/docs/libudev/html/* |
298 |
fi |
299 |
} |
300 |
|
301 |
pkg_preinst() { |
302 |
local htmldir |
303 |
for htmldir in gudev libudev; do |
304 |
if [[ -d ${EROOT}usr/share/gtk-doc/html/${htmldir} ]]; then |
305 |
rm -rf "${EROOT}"usr/share/gtk-doc/html/${htmldir} |
306 |
fi |
307 |
if [[ -d ${ED}/usr/share/doc/${PF}/html/${htmldir} ]]; then |
308 |
dosym ../../doc/${PF}/html/${htmldir} \ |
309 |
/usr/share/gtk-doc/html/${htmldir} |
310 |
fi |
311 |
done |
312 |
} |
313 |
|
314 |
pkg_postinst() { |
315 |
mkdir -p "${EROOT}"run |
316 |
|
317 |
# "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766 |
318 |
# So try to remove it here (will only work if empty). |
319 |
rmdir "${EROOT}"dev/loop 2>/dev/null |
320 |
if [[ -d ${EROOT}dev/loop ]]; then |
321 |
ewarn "Please make sure your remove /dev/loop," |
322 |
ewarn "else losetup may be confused when looking for unused devices." |
323 |
fi |
324 |
|
325 |
if use hwdb && has_version 'sys-apps/hwids[udev]'; then |
326 |
udevadm hwdb --update --root="${ROOT%/}" |
327 |
|
328 |
# http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda |
329 |
# reload database after it has be rebuilt, but only if we are not upgrading |
330 |
# also pass if we are -9999 since who knows what hwdb related changes there might be |
331 |
if [[ ${REPLACING_VERSIONS%-r*} == ${PV} || -z ${REPLACING_VERSIONS} ]] && \ |
332 |
[[ ${ROOT%/} == "" ]] && [[ ${PV} != "9999" ]]; then |
333 |
udevadm control --reload |
334 |
fi |
335 |
fi |
336 |
|
337 |
ewarn |
338 |
ewarn "You need to restart eudev as soon as possible to make the" |
339 |
ewarn "upgrade go into effect:" |
340 |
ewarn "\t/etc/init.d/udev --nodeps restart" |
341 |
|
342 |
elog |
343 |
elog "For more information on eudev on Gentoo, writing udev rules, and" |
344 |
elog "fixing known issues visit:" |
345 |
elog " http://www.gentoo.org/doc/en/udev-guide.xml" |
346 |
elog |
347 |
|
348 |
# http://cgit.freedesktop.org/systemd/systemd/commit/rules/50-udev-default.rules?id=3dff3e00e044e2d53c76fa842b9a4759d4a50e69 |
349 |
# http://bugs.gentoo.org/246847 |
350 |
# http://bugs.gentoo.org/514174 |
351 |
enewgroup input |
352 |
|
353 |
# Update hwdb database in case the format is changed by udev version. |
354 |
if has_version 'sys-apps/hwids[udev]'; then |
355 |
udevadm hwdb --update --root="${ROOT%/}" |
356 |
# Only reload when we are not upgrading to avoid potential race w/ incompatible hwdb.bin and the running udevd |
357 |
if [[ -z ${REPLACING_VERSIONS} ]]; then |
358 |
# http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda |
359 |
if [[ ${ROOT} != "" ]] && [[ ${ROOT} != "/" ]]; then |
360 |
return 0 |
361 |
fi |
362 |
udevadm control --reload |
363 |
fi |
364 |
fi |
365 |
} |