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