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-fs/udev: udev-196.ebuild ChangeLog udev-9999.ebuild
Date: Sun, 02 Dec 2012 02:03:33
Message-Id: 20121202020322.3CC5E2171D@flycatcher.gentoo.org
1 ssuominen 12/12/02 02:03:22
2
3 Modified: ChangeLog udev-9999.ebuild
4 Added: udev-196.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
9
10 Revision Changes Path
11 1.747 sys-fs/udev/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/ChangeLog?rev=1.747&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/ChangeLog?rev=1.747&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/ChangeLog?r1=1.746&r2=1.747
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v
20 retrieving revision 1.746
21 retrieving revision 1.747
22 diff -u -r1.746 -r1.747
23 --- ChangeLog 1 Dec 2012 15:59:53 -0000 1.746
24 +++ ChangeLog 2 Dec 2012 02:03:22 -0000 1.747
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-fs/udev
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.746 2012/12/01 15:59:53 williamh Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.747 2012/12/02 02:03:22 ssuominen Exp $
30 +
31 +*udev-196 (02 Dec 2012)
32 +
33 + 02 Dec 2012; Samuli Suominen <ssuominen@g.o> +udev-196.ebuild,
34 + udev-9999.ebuild:
35 + Version bump.
36
37 01 Dec 2012; William Hubbs <williamh@g.o> -udev-189.ebuild,
38 -udev-190.ebuild, -udev-191.ebuild, -udev-192.ebuild, -udev-193.ebuild,
39
40
41
42 1.120 sys-fs/udev/udev-9999.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-9999.ebuild?rev=1.120&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-9999.ebuild?rev=1.120&content-type=text/plain
46 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-9999.ebuild?r1=1.119&r2=1.120
47
48 Index: udev-9999.ebuild
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-9999.ebuild,v
51 retrieving revision 1.119
52 retrieving revision 1.120
53 diff -u -r1.119 -r1.120
54 --- udev-9999.ebuild 29 Nov 2012 23:16:08 -0000 1.119
55 +++ udev-9999.ebuild 2 Dec 2012 02:03:22 -0000 1.120
56 @@ -1,6 +1,6 @@
57 # Copyright 1999-2012 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-9999.ebuild,v 1.119 2012/11/29 23:16:08 williamh Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-9999.ebuild,v 1.120 2012/12/02 02:03:22 ssuominen Exp $
61
62 EAPI=4
63
64 @@ -28,23 +28,23 @@
65
66 LICENSE="LGPL-2.1 MIT GPL-2"
67 SLOT="0"
68 -IUSE="acl doc gudev hwdb introspection keymap +openrc selinux static-libs"
69 +IUSE="acl doc gudev introspection keymap +openrc selinux static-libs"
70
71 RESTRICT="test"
72
73 -COMMON_DEPEND="acl? ( sys-apps/acl )
74 - gudev? ( dev-libs/glib:2 )
75 +COMMON_DEPEND=">=sys-apps/kmod-11-r3
76 + >=sys-apps/util-linux-2.20
77 + acl? ( sys-apps/acl )
78 + gudev? ( >=dev-libs/glib-2 )
79 introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
80 selinux? ( sys-libs/libselinux )
81 - >=sys-apps/kmod-5
82 - >=sys-apps/util-linux-2.20
83 !<sys-libs/glibc-2.11"
84
85 DEPEND="${COMMON_DEPEND}
86 dev-util/gperf
87 - >=dev-util/intltool-0.40.0
88 - virtual/pkgconfig
89 + >=dev-util/intltool-0.50
90 virtual/os-headers
91 + virtual/pkgconfig
92 !<sys-kernel/linux-headers-${KV_min}
93 doc? ( dev-util/gtk-doc )"
94
95 @@ -56,11 +56,9 @@
96 fi
97
98 RDEPEND="${COMMON_DEPEND}
99 - hwdb? ( sys-apps/hwids )
100 openrc? ( >=sys-fs/udev-init-scripts-16
101 !<sys-apps/openrc-0.9.9 )
102 !sys-apps/coldplug
103 - !=sys-apps/systemd-188
104 !<sys-fs/lvm2-2.02.45
105 !sys-fs/device-mapper
106 !<sys-fs/udev-init-scripts-16
107 @@ -69,7 +67,7 @@
108
109 PDEPEND=">=virtual/udev-180"
110
111 -S="${WORKDIR}/systemd-${PV}"
112 +S=${WORKDIR}/systemd-${PV}
113
114 QA_MULTILIB_PATHS="usr/lib/systemd/systemd-udevd"
115
116 @@ -86,8 +84,8 @@
117 {
118 # Make sure there are no sudden changes to upstream rules file
119 # (more for my own needs than anything else ...)
120 - local udev_rules_md5=f742230cf0c2075adfba9e6b517c7095
121 - MD5=$(md5sum < "${S}/rules/50-udev-default.rules")
122 + local udev_rules_md5=66bb698deeae64ab444b710baf54a412
123 + MD5=$(md5sum < "${S}"/rules/50-udev-default.rules)
124 MD5=${MD5/ -/}
125 if [[ ${MD5} != ${udev_rules_md5} ]]
126 then
127 @@ -164,10 +162,8 @@
128 --with-distro=gentoo
129 --with-firmware-path=/usr/lib/firmware/updates:/usr/lib/firmware:/lib/firmware/updates:/lib/firmware
130 --with-html-dir=/usr/share/doc/${PF}/html
131 - --with-pci-ids-path=/usr/share/misc/pci.ids
132 --with-rootlibdir=/usr/$(get_libdir)
133 --with-rootprefix=/usr
134 - --with-usb-ids-path=/usr/share/misc/usb.ids
135 --disable-audit
136 --disable-coredump
137 --disable-hostnamed
138 @@ -347,38 +343,8 @@
139 einfo "Removed unneeded file 64-device-mapper.rules"
140 fi
141
142 - # http://bugs.gentoo.org/440462
143 - if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 141 ]]; then
144 - ewarn
145 - ewarn "If you build an initramfs including udev, please make sure the"
146 - ewarn "/usr/bin/udevadm binary gets included, Also, change your scripts to"
147 - ewarn "use it, as it replaces the old udevinfo and udevtrigger helpers."
148 -
149 - ewarn
150 - ewarn "mount options for /dev are no longer set in /etc/udev/udev.conf."
151 - ewarn "Instead, /etc/fstab should be used. This matches other mount points."
152 - fi
153 -
154 - if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 151 ]]; then
155 - ewarn
156 - ewarn "Rules for /dev/hd* devices have been removed."
157 - ewarn "Please migrate to libata."
158 - fi
159 -
160 if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 189 ]]; then
161 ewarn
162 - ewarn "action_modeswitch has been removed by upstream."
163 - ewarn "Please use sys-apps/usb_modeswitch."
164 -
165 - if use acl; then
166 - ewarn
167 - ewarn "The udev-acl functionality has been moved."
168 - ewarn "If you are not using systemd, this is handled by ConsoleKit."
169 - ewarn "Otherwise, you need to make sure that systemd is emerged with"
170 - ewarn "the acl use flag active."
171 - fi
172 -
173 - ewarn
174 ewarn "Upstream has removed the persistent-net and persistent-cd rules"
175 ewarn "generator. If you need persistent names for these devices,"
176 ewarn "place udev rules for them in ${ROOT}etc/udev/rules.d."
177
178
179
180 1.1 sys-fs/udev/udev-196.ebuild
181
182 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-196.ebuild?rev=1.1&view=markup
183 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udev/udev-196.ebuild?rev=1.1&content-type=text/plain
184
185 Index: udev-196.ebuild
186 ===================================================================
187 # Copyright 1999-2012 Gentoo Foundation
188 # Distributed under the terms of the GNU General Public License v2
189 # $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-196.ebuild,v 1.1 2012/12/02 02:03:22 ssuominen Exp $
190
191 EAPI=4
192
193 KV_min=2.6.39
194
195 inherit autotools eutils linux-info
196
197 if [[ ${PV} = 9999* ]]
198 then
199 EGIT_REPO_URI="git://anongit.freedesktop.org/systemd/systemd"
200 inherit git-2
201 else
202 patchset=1
203 SRC_URI="http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz"
204 if [[ -n "${patchset}" ]]
205 then
206 SRC_URI="${SRC_URI}
207 mirror://gentoo/${PN}-195-patches-${patchset}.tar.bz2"
208 fi
209 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
210 fi
211
212 DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
213 HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
214
215 LICENSE="LGPL-2.1 MIT GPL-2"
216 SLOT="0"
217 IUSE="acl doc gudev introspection keymap +openrc selinux static-libs"
218
219 RESTRICT="test"
220
221 COMMON_DEPEND=">=sys-apps/kmod-11-r3
222 >=sys-apps/util-linux-2.20
223 acl? ( sys-apps/acl )
224 gudev? ( >=dev-libs/glib-2 )
225 introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
226 selinux? ( sys-libs/libselinux )
227 !<sys-libs/glibc-2.11"
228
229 DEPEND="${COMMON_DEPEND}
230 dev-util/gperf
231 >=dev-util/intltool-0.50
232 virtual/os-headers
233 virtual/pkgconfig
234 !<sys-kernel/linux-headers-${KV_min}
235 doc? ( dev-util/gtk-doc )"
236
237 if [[ ${PV} = 9999* ]]
238 then
239 DEPEND="${DEPEND}
240 app-text/docbook-xsl-stylesheets
241 dev-libs/libxslt"
242 fi
243
244 RDEPEND="${COMMON_DEPEND}
245 openrc? ( >=sys-fs/udev-init-scripts-16
246 !<sys-apps/openrc-0.9.9 )
247 !sys-apps/coldplug
248 !<sys-fs/lvm2-2.02.45
249 !sys-fs/device-mapper
250 !<sys-fs/udev-init-scripts-16
251 !<sys-kernel/dracut-017-r1
252 !<sys-kernel/genkernel-3.4.25"
253
254 PDEPEND=">=virtual/udev-180"
255
256 S=${WORKDIR}/systemd-${PV}
257
258 QA_MULTILIB_PATHS="usr/lib/systemd/systemd-udevd"
259
260 udev_check_KV()
261 {
262 if kernel_is lt ${KV_min//./ }
263 then
264 return 1
265 fi
266 return 0
267 }
268
269 check_default_rules()
270 {
271 # Make sure there are no sudden changes to upstream rules file
272 # (more for my own needs than anything else ...)
273 local udev_rules_md5=66bb698deeae64ab444b710baf54a412
274 MD5=$(md5sum < "${S}"/rules/50-udev-default.rules)
275 MD5=${MD5/ -/}
276 if [[ ${MD5} != ${udev_rules_md5} ]]
277 then
278 eerror "50-udev-default.rules has been updated, please validate!"
279 eerror "md5sum: ${MD5}"
280 die "50-udev-default.rules has been updated, please validate!"
281 fi
282 }
283
284 pkg_setup()
285 {
286 # required kernel options
287 CONFIG_CHECK="~DEVTMPFS"
288 ERROR_DEVTMPFS="DEVTMPFS is not set in this kernel. Udev will not run."
289
290 linux-info_pkg_setup
291
292 if ! udev_check_KV
293 then
294 eerror "Your kernel version (${KV_FULL}) is too old to run ${P}"
295 eerror "It must be at least ${KV_min}!"
296 fi
297
298 KV_FULL_SRC=${KV_FULL}
299 get_running_version
300 if ! udev_check_KV
301 then
302 eerror
303 eerror "Your running kernel version (${KV_FULL}) is too old"
304 eerror "for this version of udev."
305 eerror "You must upgrade your kernel or downgrade udev."
306 fi
307 }
308
309 src_prepare()
310 {
311 # backport some patches
312 if [[ -n "${patchset}" ]]
313 then
314 EPATCH_SUFFIX=patch EPATCH_FORCE=yes epatch
315 fi
316
317 # change rules back to group uucp instead of dialout for now
318 sed -e 's/GROUP="dialout"/GROUP="uucp"/' \
319 -i rules/*.rules \
320 || die "failed to change group dialout to uucp"
321
322 if [[ ! -e configure ]]
323 then
324 if use doc
325 then
326 gtkdocize --docdir docs || die "gtkdocize failed"
327 else
328 echo 'EXTRA_DIST =' > docs/gtk-doc.make
329 fi
330 eautoreconf
331 else
332 check_default_rules
333 elibtoolize
334 fi
335 }
336
337 src_configure()
338 {
339 local econf_args
340
341 econf_args=(
342 ac_cv_search_cap_init=
343 ac_cv_header_sys_capability_h=yes
344 DBUS_CFLAGS=' '
345 DBUS_LIBS=' '
346 --docdir=/usr/share/doc/${PF}
347 --libdir=/usr/$(get_libdir)
348 --with-distro=gentoo
349 --with-firmware-path=/usr/lib/firmware/updates:/usr/lib/firmware:/lib/firmware/updates:/lib/firmware
350 --with-html-dir=/usr/share/doc/${PF}/html
351 --with-rootlibdir=/usr/$(get_libdir)
352 --with-rootprefix=/usr
353 --disable-audit
354 --disable-coredump
355 --disable-hostnamed
356 --disable-ima
357 --disable-libcryptsetup
358 --disable-localed
359 --disable-logind
360 --disable-nls
361 --disable-pam
362 --disable-quotacheck
363 --disable-readahead
364 --enable-split-usr
365 --disable-tcpwrap
366 --disable-timedated
367 --disable-xz
368 $(use_enable acl)
369 $(use_enable doc gtk-doc)
370 $(use_enable gudev)
371 $(use_enable introspection)
372 $(use_enable keymap)
373 $(use_enable selinux)
374 $(use_enable static-libs static)
375 )
376 econf "${econf_args[@]}"
377 }
378
379 src_compile()
380 {
381 echo 'BUILT_SOURCES: $(BUILT_SOURCES)' > "${T}"/Makefile.extra
382 emake -f Makefile -f "${T}"/Makefile.extra BUILT_SOURCES
383 local targets=(
384 systemd-udevd
385 udevadm
386 libudev.la
387 ata_id
388 cdrom_id
389 collect
390 scsi_id
391 v4l_id
392 accelerometer
393 mtd_probe
394 man/udev.7
395 man/udevadm.8
396 man/systemd-udevd.8
397 man/systemd-udevd.service.8
398 )
399 use keymap && targets+=( keymap )
400 use gudev && targets+=( libgudev-1.0.la )
401
402 emake "${targets[@]}"
403 if use doc
404 then
405 emake -C docs/libudev
406 use gudev && emake -C docs/gudev
407 fi
408 }
409
410 src_install()
411 {
412 local lib_LTLIBRARIES=libudev.la \
413 pkgconfiglib_DATA=src/libudev/libudev.pc
414
415 local targets=(
416 install-libLTLIBRARIES
417 install-includeHEADERS
418 install-libgudev_includeHEADERS
419 install-binPROGRAMS
420 install-rootlibexecPROGRAMS
421 install-udevlibexecPROGRAMS
422 install-dist_systemunitDATA
423 install-dist_udevconfDATA
424 install-dist_udevhomeSCRIPTS
425 install-dist_udevkeymapDATA
426 install-dist_udevkeymapforcerelDATA
427 install-dist_udevrulesDATA
428 install-girDATA
429 install-man7
430 install-man8
431 install-nodist_systemunitDATA
432 install-pkgconfiglibDATA
433 install-sharepkgconfigDATA
434 install-typelibsDATA
435 install-dist_docDATA
436 udev-confdirs
437 systemd-install-hook
438 )
439
440 if use gudev
441 then
442 lib_LTLIBRARIES+=" libgudev-1.0.la"
443 pkgconfiglib_DATA+=" src/gudev/gudev-1.0.pc"
444 fi
445
446 # add final values of variables:
447 targets+=(
448 rootlibexec_PROGRAMS=systemd-udevd
449 bin_PROGRAMS=udevadm
450 lib_LTLIBRARIES="${lib_LTLIBRARIES}"
451 MANPAGES="man/udev.7 man/udevadm.8 man/systemd-udevd.service.8"
452 MANPAGES_ALIAS="man/systemd-udevd.8"
453 dist_systemunit_DATA="units/systemd-udevd-control.socket \
454 units/systemd-udevd-kernel.socket"
455 nodist_systemunit_DATA="units/systemd-udevd.service \
456 units/systemd-udev-trigger.service \
457 units/systemd-udev-settle.service"
458 pkgconfiglib_DATA="${pkgconfiglib_DATA}"
459 )
460 emake DESTDIR="${D}" "${targets[@]}"
461 if use doc
462 then
463 emake -C docs/libudev DESTDIR="${D}" install
464 use gudev && emake -C docs/gudev DESTDIR="${D}" install
465 fi
466 dodoc TODO
467
468 prune_libtool_files --all
469 rm -f "${D}"/usr/lib/udev/rules.d/99-systemd.rules
470 rm -rf "${D}"/usr/share/doc/${PF}/LICENSE.*
471
472 # install gentoo-specific rules
473 insinto /usr/lib/udev/rules.d
474 doins "${FILESDIR}"/40-gentoo.rules
475
476 # install udevadm symlink
477 dosym ../usr/bin/udevadm /sbin/udevadm
478 }
479
480 pkg_preinst()
481 {
482 local htmldir
483 for htmldir in gudev libudev; do
484 if [[ -d ${ROOT}usr/share/gtk-doc/html/${htmldir} ]]
485 then
486 rm -rf "${ROOT}"usr/share/gtk-doc/html/${htmldir}
487 fi
488 if [[ -d ${D}/usr/share/doc/${PF}/html/${htmldir} ]]
489 then
490 dosym ../../doc/${PF}/html/${htmldir} \
491 /usr/share/gtk-doc/html/${htmldir}
492 fi
493 done
494 preserve_old_lib /$(get_libdir)/libudev.so.0
495 }
496
497 # This function determines if a directory is a mount point.
498 # It was lifted from dracut.
499 ismounted()
500 {
501 while read a m a; do
502 [[ $m = $1 ]] && return 0
503 done < "${ROOT}"/proc/mounts
504 return 1
505 }
506
507 pkg_postinst()
508 {
509 mkdir -p "${ROOT}"/run
510
511 # "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766
512 # So try to remove it here (will only work if empty).
513 rmdir "${ROOT}"/dev/loop 2>/dev/null
514 if [[ -d ${ROOT}/dev/loop ]]
515 then
516 ewarn "Please make sure your remove /dev/loop,"
517 ewarn "else losetup may be confused when looking for unused devices."
518 fi
519
520 # people want reminders, I'll give them reminders. Odds are they will
521 # just ignore them anyway...
522
523 # 64-device-mapper.rules now gets installed by sys-fs/device-mapper
524 # remove it if user don't has sys-fs/device-mapper installed, 27 Jun 2007
525 if [[ -f ${ROOT}/etc/udev/rules.d/64-device-mapper.rules ]] &&
526 ! has_version sys-fs/device-mapper
527 then
528 rm -f "${ROOT}"/etc/udev/rules.d/64-device-mapper.rules
529 einfo "Removed unneeded file 64-device-mapper.rules"
530 fi
531
532 if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 189 ]]; then
533 ewarn
534 ewarn "Upstream has removed the persistent-net and persistent-cd rules"
535 ewarn "generator. If you need persistent names for these devices,"
536 ewarn "place udev rules for them in ${ROOT}etc/udev/rules.d."
537 ewarn "Be aware that you cannot directly swap device names, so persistent"
538 ewarn "rules for network devices should be like the ones at the following"
539 ewarn "URL:"
540 ewarn "http://bugs.gentoo.org/show_bug.cgi?id=433746#c1"
541 fi
542
543 if ismounted /usr
544 then
545 ewarn
546 ewarn "Your system has /usr on a separate partition. This means"
547 ewarn "you will need to use an initramfs to pre-mount /usr before"
548 ewarn "udev runs."
549 ewarn "This must be set up before your next reboot, or you may"
550 ewarn "experience failures which are very difficult to troubleshoot."
551 ewarn "For a more detailed explanation, see the following URL:"
552 ewarn "http://www.freedesktop.org/wiki/Software/systemd/separate-usr-is-broken"
553 ewarn
554 ewarn "For more information on setting up an initramfs, see the"
555 ewarn "following URL:"
556 ewarn "http://www.gentoo.org/doc/en/initramfs-guide.xml"
557 fi
558
559 if [[ -d ${ROOT}lib/udev ]]
560 then
561 ewarn
562 ewarn "This version of udev moves the files which were installed in"
563 ewarn "/lib/udev to /usr/lib/udev. We include a backward compatibility"
564 ewarn "patch for gentoo to allow the rules in /lib/udev/rules.d to be"
565 ewarn "read; however, bugs should be filed against packages which are"
566 ewarn "installing things in /lib/udev so they can be fixed."
567 fi
568
569 ewarn
570 ewarn "You need to restart udev as soon as possible to make the upgrade go"
571 ewarn "into effect."
572 ewarn "The method you use to do this depends on your init system."
573
574 preserve_old_lib_notify /$(get_libdir)/libudev.so.0
575
576 elog
577 elog "For more information on udev on Gentoo, writing udev rules, and"
578 elog " fixing known issues visit:"
579 elog " http://www.gentoo.org/doc/en/udev-guide.xml"
580 }