Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/eudev/
Date: Wed, 24 Feb 2016 18:20:41
Message-Id: 1456338619.0c83db12828bad1039b7dd996193cbdf50c1b8c5.blueness@gentoo
1 commit: 0c83db12828bad1039b7dd996193cbdf50c1b8c5
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 24 18:29:40 2016 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 24 18:30:19 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c83db12
7
8 sys-fs/eudev: remove older unstable versions
9
10 Package-Manager: portage-2.2.26
11
12 sys-fs/eudev/eudev-3.1.2-r1.ebuild | 290 ------------------------------------
13 sys-fs/eudev/eudev-3.1.2-r10.ebuild | 270 ---------------------------------
14 2 files changed, 560 deletions(-)
15
16 diff --git a/sys-fs/eudev/eudev-3.1.2-r1.ebuild b/sys-fs/eudev/eudev-3.1.2-r1.ebuild
17 deleted file mode 100644
18 index f999da1..0000000
19 --- a/sys-fs/eudev/eudev-3.1.2-r1.ebuild
20 +++ /dev/null
21 @@ -1,290 +0,0 @@
22 -# Copyright 1999-2015 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -# $Id$
25 -
26 -EAPI="5"
27 -
28 -KV_min=2.6.39
29 -WANT_AUTOMAKE=1.13
30 -
31 -inherit autotools eutils linux-info multilib multilib-minimal user
32 -
33 -if [[ ${PV} = 9999* ]]; then
34 - EGIT_REPO_URI="git://github.com/gentoo/eudev.git"
35 - inherit git-2
36 -else
37 - SRC_URI="https://dev.gentoo.org/~blueness/${PN}/${P}.tar.gz"
38 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
39 -fi
40 -
41 -DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
42 -HOMEPAGE="https://github.com/gentoo/eudev"
43 -
44 -LICENSE="LGPL-2.1 MIT GPL-2"
45 -SLOT="0"
46 -IUSE="doc gudev +hwdb +kmod introspection rule-generator selinux static-libs test"
47 -
48 -COMMON_DEPEND=">=sys-apps/util-linux-2.20
49 - gudev? ( >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] )
50 - introspection? ( >=dev-libs/gobject-introspection-1.38 )
51 - kmod? ( >=sys-apps/kmod-16 )
52 - selinux? ( >=sys-libs/libselinux-2.1.9 )
53 - !<sys-libs/glibc-2.11
54 - !sys-apps/gentoo-systemd-integration
55 - !sys-apps/systemd
56 - abi_x86_32? (
57 - !<=app-emulation/emul-linux-x86-baselibs-20130224-r7
58 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
59 - )"
60 -DEPEND="${COMMON_DEPEND}
61 - dev-util/gperf
62 - virtual/os-headers
63 - virtual/pkgconfig
64 - >=sys-devel/make-3.82-r4
65 - >=sys-kernel/linux-headers-${KV_min}
66 - doc? ( >=dev-util/gtk-doc-1.18
67 - app-text/docbook-xml-dtd:4.2
68 - app-text/docbook-xml-dtd:4.5
69 - app-text/docbook-xsl-stylesheets
70 - dev-libs/libxslt
71 - )
72 - >=dev-util/intltool-0.50
73 - test? ( app-text/tree dev-lang/perl )"
74 -
75 -RDEPEND="${COMMON_DEPEND}
76 - !<sys-fs/lvm2-2.02.103
77 - !<sec-policy/selinux-base-2.20120725-r10
78 - !sys-fs/udev
79 - !sys-apps/systemd
80 - gudev? ( !dev-libs/libgudev )"
81 -
82 -PDEPEND=">=sys-fs/udev-init-scripts-26
83 - hwdb? ( >=sys-apps/hwids-20140304[udev] )"
84 -
85 -# The multilib-build.eclass doesn't handle situation where the installed headers
86 -# are different in ABIs. In this case, we install libgudev headers in native
87 -# ABI but not for non-native ABI.
88 -multilib_check_headers() { :; }
89 -
90 -pkg_pretend() {
91 - ewarn
92 - ewarn "As of 2013-01-29, ${P} provides the new interface renaming functionality,"
93 - ewarn "as described in the URL below:"
94 - ewarn "http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames"
95 - ewarn
96 - ewarn "This functionality is enabled BY DEFAULT because eudev has no means of synchronizing"
97 - ewarn "between the default or user-modified choice of sys-fs/udev. If you wish to disable"
98 - ewarn "this new iface naming, please be sure that /etc/udev/rules.d/80-net-name-slot.rules"
99 - ewarn "exists: touch /etc/udev/rules.d/80-net-name-slot.rules"
100 - ewarn
101 -}
102 -
103 -pkg_setup() {
104 - CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET"
105 - linux-info_pkg_setup
106 - get_running_version
107 -
108 - # These are required kernel options, but we don't error out on them
109 - # because you can build under one kernel and run under another.
110 - if kernel_is lt ${KV_min//./ }; then
111 - ewarn
112 - ewarn "Your current running kernel version ${KV_FULL} is too old to run ${P}."
113 - ewarn "Make sure to run udev under kernel version ${KV_min} or above."
114 - ewarn
115 - fi
116 -}
117 -
118 -src_prepare() {
119 - epatch "${FILESDIR}"/${P}-pre-rule-generator.patch
120 - epatch "${FILESDIR}"/${PN}-3-rule-generator.patch
121 -
122 - # change rules back to group uucp instead of dialout for now
123 - sed -e 's/GROUP="dialout"/GROUP="uucp"/' -i rules/*.rules \
124 - || die "failed to change group dialout to uucp"
125 -
126 - epatch_user
127 -
128 - if use doc; then
129 - gtkdocize --docdir docs || die "gtkdocize failed"
130 - else
131 - echo 'EXTRA_DIST =' > docs/gtk-doc.make
132 - fi
133 - eautoreconf
134 -}
135 -
136 -multilib_src_configure() {
137 - tc-export CC #463846
138 - export cc_cv_CFLAGS__flto=no #502950
139 -
140 - # Keep sorted by ./configure --help and only pass --disable flags
141 - # when *required* to avoid external deps or unnecessary compile
142 - local econf_args
143 - econf_args=(
144 - ac_cv_search_cap_init=
145 - ac_cv_header_sys_capability_h=yes
146 - DBUS_CFLAGS=' '
147 - DBUS_LIBS=' '
148 - --with-rootprefix=
149 - --with-rootrundir=/run
150 - --docdir=/usr/share/doc/${PF}
151 - --libdir=/usr/$(get_libdir)
152 - --with-rootlibexecdir=/lib/udev
153 - --with-html-dir="/usr/share/doc/${PF}/html"
154 - --enable-split-usr
155 - --enable-manpages
156 - --disable-hwdb
157 - --exec-prefix=/
158 -
159 - $(use_enable gudev)
160 - )
161 -
162 - # Only build libudev for non-native_abi, and only install it to libdir,
163 - # that means all options only apply to native_abi
164 - if multilib_is_native_abi; then
165 - econf_args+=(
166 - --with-rootlibdir=/$(get_libdir)
167 - $(use_enable doc gtk-doc)
168 - $(use_enable introspection)
169 - $(use_enable kmod)
170 - $(use_enable static-libs static)
171 - $(use_enable selinux)
172 - $(use_enable rule-generator)
173 - )
174 - else
175 - econf_args+=(
176 - --disable-static
177 - --disable-gtk-doc
178 - --disable-introspection
179 - --disable-kmod
180 - --disable-selinux
181 - --disable-rule-generator
182 - )
183 - fi
184 - ECONF_SOURCE="${S}" econf "${econf_args[@]}"
185 -}
186 -
187 -multilib_src_compile() {
188 - if multilib_is_native_abi; then
189 - emake
190 - else
191 - emake -C src/shared
192 - emake -C src/libudev
193 - use gudev && emake -C src/gudev
194 - fi
195 -}
196 -
197 -multilib_src_install() {
198 - if multilib_is_native_abi; then
199 - emake DESTDIR="${D}" install
200 - else
201 - emake -C src/libudev DESTDIR="${D}" install
202 - use gudev && emake -C src/gudev DESTDIR="${D}" install
203 - fi
204 -}
205 -
206 -multilib_src_test() {
207 - # make sandbox get out of the way
208 - # these are safe because there is a fake root filesystem put in place,
209 - # but sandbox seems to evaluate the paths of the test i/o instead of the
210 - # paths of the actual i/o that results.
211 - # also only test for native abi
212 - if multilib_is_native_abi; then
213 - addread /sys
214 - addwrite /dev
215 - addwrite /run
216 - default_src_test
217 - fi
218 -}
219 -
220 -multilib_src_install_all() {
221 - prune_libtool_files --all
222 - rm -rf "${ED}"/usr/share/doc/${PF}/LICENSE.*
223 -
224 - insinto /lib/udev/rules.d
225 - doins "${FILESDIR}"/40-gentoo.rules
226 -
227 - use rule-generator && doinitd "${FILESDIR}"/udev-postmount
228 -
229 - if ! [[ ${PV} = 9999* ]]; then
230 - insinto /usr/share/doc/${PF}/html/gudev
231 - doins "${S}"/docs/gudev/html/*
232 -
233 - insinto /usr/share/doc/${PF}/html/libudev
234 - doins "${S}"/docs/libudev/html/*
235 - fi
236 -}
237 -
238 -pkg_preinst() {
239 - local htmldir
240 - for htmldir in gudev libudev; do
241 - if [[ -d ${EROOT}usr/share/gtk-doc/html/${htmldir} ]]; then
242 - rm -rf "${EROOT}"usr/share/gtk-doc/html/${htmldir}
243 - fi
244 - if [[ -d ${ED}/usr/share/doc/${PF}/html/${htmldir} ]]; then
245 - dosym ../../doc/${PF}/html/${htmldir} \
246 - /usr/share/gtk-doc/html/${htmldir}
247 - fi
248 - done
249 -}
250 -
251 -pkg_postinst() {
252 - mkdir -p "${EROOT}"run
253 -
254 - # "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766
255 - # So try to remove it here (will only work if empty).
256 - rmdir "${EROOT}"dev/loop 2>/dev/null
257 - if [[ -d ${EROOT}dev/loop ]]; then
258 - ewarn "Please make sure your remove /dev/loop,"
259 - ewarn "else losetup may be confused when looking for unused devices."
260 - fi
261 -
262 - if use hwdb && has_version 'sys-apps/hwids[udev]'; then
263 - udevadm hwdb --update --root="${ROOT%/}"
264 -
265 - # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
266 - # reload database after it has be rebuilt, but only if we are not upgrading
267 - # also pass if we are -9999 since who knows what hwdb related changes there might be
268 - if [[ ${REPLACING_VERSIONS%-r*} == ${PV} || -z ${REPLACING_VERSIONS} ]] && \
269 - [[ ${ROOT%/} == "" ]] && [[ ${PV} != "9999" ]]; then
270 - udevadm control --reload
271 - fi
272 - fi
273 -
274 - ewarn
275 - ewarn "You need to restart eudev as soon as possible to make the"
276 - ewarn "upgrade go into effect:"
277 - ewarn "\t/etc/init.d/udev --nodeps restart"
278 -
279 - if use rule-generator && \
280 - [[ -x $(type -P rc-update) ]] && rc-update show | grep udev-postmount | grep -qsv 'boot\|default\|sysinit'; then
281 - ewarn
282 - ewarn "Please add the udev-postmount init script to your default runlevel"
283 - ewarn "to ensure the legacy rule-generator functionality works as reliably"
284 - ewarn "as possible."
285 - ewarn "\trc-update add udev-postmount default"
286 - fi
287 -
288 - elog
289 - elog "For more information on eudev on Gentoo, writing udev rules, and"
290 - elog "fixing known issues visit:"
291 - elog " https://www.gentoo.org/doc/en/udev-guide.xml"
292 - elog
293 -
294 - # http://cgit.freedesktop.org/systemd/systemd/commit/rules/50-udev-default.rules?id=3dff3e00e044e2d53c76fa842b9a4759d4a50e69
295 - # https://bugs.gentoo.org/246847
296 - # https://bugs.gentoo.org/514174
297 - enewgroup input
298 -
299 - # Update hwdb database in case the format is changed by udev version.
300 - if has_version 'sys-apps/hwids[udev]'; then
301 - udevadm hwdb --update --root="${ROOT%/}"
302 - # Only reload when we are not upgrading to avoid potential race w/ incompatible hwdb.bin and the running udevd
303 - if [[ -z ${REPLACING_VERSIONS} ]]; then
304 - # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
305 - if [[ ${ROOT} != "" ]] && [[ ${ROOT} != "/" ]]; then
306 - return 0
307 - fi
308 - udevadm control --reload
309 - fi
310 - fi
311 -}
312
313 diff --git a/sys-fs/eudev/eudev-3.1.2-r10.ebuild b/sys-fs/eudev/eudev-3.1.2-r10.ebuild
314 deleted file mode 100644
315 index 88caac9..0000000
316 --- a/sys-fs/eudev/eudev-3.1.2-r10.ebuild
317 +++ /dev/null
318 @@ -1,270 +0,0 @@
319 -# Copyright 1999-2015 Gentoo Foundation
320 -# Distributed under the terms of the GNU General Public License v2
321 -# $Id$
322 -
323 -EAPI="5"
324 -
325 -KV_min=2.6.39
326 -WANT_AUTOMAKE=1.13
327 -
328 -inherit autotools eutils linux-info multilib multilib-minimal user
329 -
330 -if [[ ${PV} = 9999* ]]; then
331 - EGIT_REPO_URI="git://github.com/gentoo/eudev.git"
332 - inherit git-2
333 -else
334 - SRC_URI="https://dev.gentoo.org/~blueness/${PN}/${P}.tar.gz"
335 - KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
336 -fi
337 -
338 -DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
339 -HOMEPAGE="https://github.com/gentoo/eudev"
340 -
341 -LICENSE="LGPL-2.1 MIT GPL-2"
342 -SLOT="0"
343 -IUSE="doc +hwdb +kmod introspection selinux static-libs test"
344 -
345 -COMMON_DEPEND=">=sys-apps/util-linux-2.20
346 - introspection? ( >=dev-libs/gobject-introspection-1.38 )
347 - kmod? ( >=sys-apps/kmod-16 )
348 - selinux? ( >=sys-libs/libselinux-2.1.9 )
349 - !<sys-libs/glibc-2.11
350 - !sys-apps/gentoo-systemd-integration
351 - !sys-apps/systemd
352 - abi_x86_32? (
353 - !<=app-emulation/emul-linux-x86-baselibs-20130224-r7
354 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
355 - )"
356 -DEPEND="${COMMON_DEPEND}
357 - dev-util/gperf
358 - virtual/os-headers
359 - virtual/pkgconfig
360 - >=sys-devel/make-3.82-r4
361 - >=sys-kernel/linux-headers-${KV_min}
362 - doc? ( >=dev-util/gtk-doc-1.18
363 - app-text/docbook-xml-dtd:4.2
364 - app-text/docbook-xml-dtd:4.5
365 - app-text/docbook-xsl-stylesheets
366 - dev-libs/libxslt
367 - )
368 - >=dev-util/intltool-0.50
369 - test? ( app-text/tree dev-lang/perl )"
370 -
371 -RDEPEND="${COMMON_DEPEND}
372 - !<sys-fs/lvm2-2.02.103
373 - !<sec-policy/selinux-base-2.20120725-r10
374 - !sys-fs/udev
375 - !sys-apps/systemd"
376 -
377 -PDEPEND=">=sys-fs/udev-init-scripts-26
378 - hwdb? ( >=sys-apps/hwids-20140304[udev] )"
379 -
380 -# The multilib-build.eclass doesn't handle situation where the installed headers
381 -# are different in ABIs. In this case, we install libgudev headers in native
382 -# ABI but not for non-native ABI.
383 -multilib_check_headers() { :; }
384 -
385 -pkg_pretend() {
386 - ewarn
387 - ewarn "As of 2013-01-29, ${P} provides the new interface renaming functionality,"
388 - ewarn "as described in the URL below:"
389 - ewarn "http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames"
390 - ewarn
391 - ewarn "This functionality is enabled BY DEFAULT because eudev has no means of synchronizing"
392 - ewarn "between the default or user-modified choice of sys-fs/udev. If you wish to disable"
393 - ewarn "this new iface naming, please be sure that /etc/udev/rules.d/80-net-name-slot.rules"
394 - ewarn "exists: touch /etc/udev/rules.d/80-net-name-slot.rules"
395 - ewarn
396 -}
397 -
398 -pkg_setup() {
399 - CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET"
400 - linux-info_pkg_setup
401 - get_running_version
402 -
403 - # These are required kernel options, but we don't error out on them
404 - # because you can build under one kernel and run under another.
405 - if kernel_is lt ${KV_min//./ }; then
406 - ewarn
407 - ewarn "Your current running kernel version ${KV_FULL} is too old to run ${P}."
408 - ewarn "Make sure to run udev under kernel version ${KV_min} or above."
409 - ewarn
410 - fi
411 -}
412 -
413 -src_prepare() {
414 - # change rules back to group uucp instead of dialout for now
415 - sed -e 's/GROUP="dialout"/GROUP="uucp"/' -i rules/*.rules \
416 - || die "failed to change group dialout to uucp"
417 -
418 - epatch_user
419 -
420 - if use doc; then
421 - gtkdocize --docdir docs || die "gtkdocize failed"
422 - else
423 - echo 'EXTRA_DIST =' > docs/gtk-doc.make
424 - fi
425 - eautoreconf
426 -}
427 -
428 -multilib_src_configure() {
429 - tc-export CC #463846
430 - export cc_cv_CFLAGS__flto=no #502950
431 -
432 - # Keep sorted by ./configure --help and only pass --disable flags
433 - # when *required* to avoid external deps or unnecessary compile
434 - local econf_args
435 - econf_args=(
436 - ac_cv_search_cap_init=
437 - ac_cv_header_sys_capability_h=yes
438 - DBUS_CFLAGS=' '
439 - DBUS_LIBS=' '
440 - --with-rootprefix=
441 - --with-rootrundir=/run
442 - --docdir=/usr/share/doc/${PF}
443 - --libdir=/usr/$(get_libdir)
444 - --with-rootlibexecdir=/lib/udev
445 - --with-html-dir="/usr/share/doc/${PF}/html"
446 - --enable-split-usr
447 - --enable-manpages
448 - --disable-hwdb
449 - --exec-prefix=/
450 -
451 - --disable-gudev
452 - )
453 -
454 - # Only build libudev for non-native_abi, and only install it to libdir,
455 - # that means all options only apply to native_abi
456 - if multilib_is_native_abi; then
457 - econf_args+=(
458 - --with-rootlibdir=/$(get_libdir)
459 - $(use_enable doc gtk-doc)
460 - $(use_enable introspection)
461 - $(use_enable kmod)
462 - $(use_enable static-libs static)
463 - $(use_enable selinux)
464 - )
465 - else
466 - econf_args+=(
467 - --disable-static
468 - --disable-gtk-doc
469 - --disable-introspection
470 - --disable-kmod
471 - --disable-selinux
472 - )
473 - fi
474 - ECONF_SOURCE="${S}" econf "${econf_args[@]}"
475 -}
476 -
477 -multilib_src_compile() {
478 - if multilib_is_native_abi; then
479 - emake
480 - else
481 - emake -C src/shared
482 - emake -C src/libudev
483 - fi
484 -}
485 -
486 -multilib_src_install() {
487 - if multilib_is_native_abi; then
488 - emake DESTDIR="${D}" install
489 - else
490 - emake -C src/libudev DESTDIR="${D}" install
491 - fi
492 -}
493 -
494 -multilib_src_test() {
495 - # make sandbox get out of the way
496 - # these are safe because there is a fake root filesystem put in place,
497 - # but sandbox seems to evaluate the paths of the test i/o instead of the
498 - # paths of the actual i/o that results.
499 - # also only test for native abi
500 - if multilib_is_native_abi; then
501 - addread /sys
502 - addwrite /dev
503 - addwrite /run
504 - default_src_test
505 - fi
506 -}
507 -
508 -multilib_src_install_all() {
509 - prune_libtool_files --all
510 - rm -rf "${ED}"/usr/share/doc/${PF}/LICENSE.*
511 -
512 - insinto /lib/udev/rules.d
513 - doins "${FILESDIR}"/40-gentoo.rules
514 -
515 - if ! [[ ${PV} = 9999* ]]; then
516 - insinto /usr/share/doc/${PF}/html/gudev
517 - doins "${S}"/docs/gudev/html/*
518 -
519 - insinto /usr/share/doc/${PF}/html/libudev
520 - doins "${S}"/docs/libudev/html/*
521 - fi
522 -}
523 -
524 -pkg_preinst() {
525 - local htmldir
526 - for htmldir in libudev; do
527 - if [[ -d ${EROOT}usr/share/gtk-doc/html/${htmldir} ]]; then
528 - rm -rf "${EROOT}"usr/share/gtk-doc/html/${htmldir}
529 - fi
530 - if [[ -d ${ED}/usr/share/doc/${PF}/html/${htmldir} ]]; then
531 - dosym ../../doc/${PF}/html/${htmldir} \
532 - /usr/share/gtk-doc/html/${htmldir}
533 - fi
534 - done
535 -}
536 -
537 -pkg_postinst() {
538 - mkdir -p "${EROOT}"run
539 -
540 - # "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766
541 - # So try to remove it here (will only work if empty).
542 - rmdir "${EROOT}"dev/loop 2>/dev/null
543 - if [[ -d ${EROOT}dev/loop ]]; then
544 - ewarn "Please make sure your remove /dev/loop,"
545 - ewarn "else losetup may be confused when looking for unused devices."
546 - fi
547 -
548 - if use hwdb && has_version 'sys-apps/hwids[udev]'; then
549 - udevadm hwdb --update --root="${ROOT%/}"
550 -
551 - # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
552 - # reload database after it has be rebuilt, but only if we are not upgrading
553 - # also pass if we are -9999 since who knows what hwdb related changes there might be
554 - if [[ ${REPLACING_VERSIONS%-r*} == ${PV} || -z ${REPLACING_VERSIONS} ]] && \
555 - [[ ${ROOT%/} == "" ]] && [[ ${PV} != "9999" ]]; then
556 - udevadm control --reload
557 - fi
558 - fi
559 -
560 - ewarn
561 - ewarn "You need to restart eudev as soon as possible to make the"
562 - ewarn "upgrade go into effect:"
563 - ewarn "\t/etc/init.d/udev --nodeps restart"
564 -
565 - elog
566 - elog "For more information on eudev on Gentoo, writing udev rules, and"
567 - elog "fixing known issues visit:"
568 - elog " https://www.gentoo.org/doc/en/udev-guide.xml"
569 - elog
570 -
571 - # http://cgit.freedesktop.org/systemd/systemd/commit/rules/50-udev-default.rules?id=3dff3e00e044e2d53c76fa842b9a4759d4a50e69
572 - # https://bugs.gentoo.org/246847
573 - # https://bugs.gentoo.org/514174
574 - enewgroup input
575 -
576 - # Update hwdb database in case the format is changed by udev version.
577 - if has_version 'sys-apps/hwids[udev]'; then
578 - udevadm hwdb --update --root="${ROOT%/}"
579 - # Only reload when we are not upgrading to avoid potential race w/ incompatible hwdb.bin and the running udevd
580 - if [[ -z ${REPLACING_VERSIONS} ]]; then
581 - # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
582 - if [[ ${ROOT} != "" ]] && [[ ${ROOT} != "/" ]]; then
583 - return 0
584 - fi
585 - udevadm control --reload
586 - fi
587 - fi
588 -}