summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2008-05-14 15:36:47 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2008-05-14 15:36:47 +0000
commitc2301f64d393524c03ae02a21a74f46a4c523f00 (patch)
treea02040defbb214d9b1b7c34e04a3a1cb2a0161bd /sys-fs
parentclean up (diff)
downloadhistorical-c2301f64d393524c03ae02a21a74f46a4c523f00.tar.gz
historical-c2301f64d393524c03ae02a21a74f46a4c523f00.tar.bz2
historical-c2301f64d393524c03ae02a21a74f46a4c523f00.zip
Version bumped. Fix a segfault introduced with this version.
Package-Manager: portage-2.1.5_rc10
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/udev/ChangeLog8
-rw-r--r--sys-fs/udev/Manifest15
-rw-r--r--sys-fs/udev/files/udev-121-cdrom_id-segfault.diff13
-rw-r--r--sys-fs/udev/udev-121.ebuild351
4 files changed, 385 insertions, 2 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog
index 97ac42c6e598..c470dafb37eb 100644
--- a/sys-fs/udev/ChangeLog
+++ b/sys-fs/udev/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-fs/udev
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.383 2008/04/22 16:27:23 klausman Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.384 2008/05/14 15:36:46 zzam Exp $
+
+*udev-121 (14 May 2008)
+
+ 14 May 2008; Matthias Schwarzott <zzam@gentoo.org>
+ +files/udev-121-cdrom_id-segfault.diff, +udev-121.ebuild:
+ Version bumped. Fix a segfault introduced with this version.
22 Apr 2008; Tobias Klausmann <klausman@gentoo.org> udev-119.ebuild:
Stable on alpha, bug #218407
diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest
index c6ed135b27af..83c22f3aba9d 100644
--- a/sys-fs/udev/Manifest
+++ b/sys-fs/udev/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX 05-udev-early.rules-104-r5 567 RMD160 8c7e021cc1f733d59c21f7f09ff74471b15f3ade SHA1 842021003645319d163202ab00aae39f219261ea SHA256 ecbcbbdb32c7530f2cadba10590826cc1abd176cc52cece7c53a5bd821a65bc8
AUX 05-udev-early.rules-106-r5 592 RMD160 08e26e2216843f006493e897a6158f5d36bb9b8e SHA1 edee4a2f430d3d72077cb7d2443813dec6ea75e9 SHA256 bc3a2fbd6ee617c8a4255447858181b7eb29e8138fefd7f35371cb2c9a53b66e
AUX 95-net.rules 550 RMD160 8e10d27a37f15bbcd8367266693b58d7a9101370 SHA1 53cf6e38d817f1d885cd54f8c2d1674c83878609 SHA256 19c6783fdd8bfb4f66376fb4929cd9a1a554c8949a40364e2a5b36b2e31f7574
@@ -34,6 +37,7 @@ AUX udev-115-rules-update.diff 4460 RMD160 cfbfaf9f8d640d023cbc82995ff7c31e326ad
AUX udev-115-update-gentoo-rules-2.diff 488 RMD160 4b2c7f44f413564559506adbe6510baed0615075 SHA1 dbaa015cbc65202874dfb50b3e2e8f0e8ac18e60 SHA256 a33e874108f809b408b3475af0ff448e680a796a36e1d78f440cffb4e1781fc0
AUX udev-116-gentoo-rules-update.diff 1217 RMD160 fe85a911c7c775a36ee4a851ac607490154f7b1a SHA1 0be0cf5ede1115187b6bc7868dacbd4c2558517a SHA256 fd9fb2a920f09890af003e57dce27aab3e68159b859f92b4654c9f972f103ac4
AUX udev-116-path-to-logger.diff 421 RMD160 4613bbd35e780a509380ca1b386c59b0ac45f01d SHA1 8fe9c7fc11972fbeb20b9626cc00871d521d181c SHA256 f6b675716765df8e792027107bb51e10d07806244cea628a089c2579fad929eb
+AUX udev-121-cdrom_id-segfault.diff 415 RMD160 5a8d7b50268d4a23859563c10a965df69e073bc9 SHA1 6f11371c833a56c08a83a32ef579fa9f4b89ba76 SHA256 305819e5bd61154c376d0b88fec5f35e544c1f7643d58f7ab6ff16a70ec5597f
AUX udev-postmount-initd-111-r2 508 RMD160 e1f42197fe3003ec4691b768a921029ce085becb SHA1 7ceb08150d429bd6b5cef88d76847575c6e89f22 SHA256 607deb133ab4be0d2fcb16346e86b3d8ae00bd62d2cbc1329458f278a1b1ff5c
AUX udev-start-104-r12.sh 4251 RMD160 576db5d8b2e7c2b8753e0544e3c8506525b54fc3 SHA1 947b877218438f99aeb2227927578847006be2a7 SHA256 45ebbd670f439ae92da9f311488ba6382ca174c429a32cdb163f07083b091be5
AUX udev-start-104-r13.sh 4414 RMD160 ab908683db17233d40ee1d5a0333a787a1779058 SHA1 4cffd9d09a58fb7a0e6d65fde1ea3bf4cdfa97ed SHA256 781e1303ea55505a5c42ed9ed1b1d706fcae8465954143cc3b9eb5811a84dcb4
@@ -69,6 +73,7 @@ DIST udev-117.tar.bz2 199961 RMD160 bce663cb6c2bdd449b67122e01c8da106feb7a1f SHA
DIST udev-118.tar.bz2 199852 RMD160 1adcd06bbf8ecae59890981b38415eb4b72109c1 SHA1 3fad0dd51b7fd44108b68fd6b51d4d54011b16b9 SHA256 6a6af86778d7ee9d798d2822a2663c826478c89a7dae169ff9d6c453314788c4
DIST udev-119.tar.bz2 201836 RMD160 b827a1a5697fa32e43dec0a08081e92e2eddda52 SHA1 ae0d35a99e9f1983c1069378fd9d561de26cee7e SHA256 3bbab9b7f5e733a4c0a1da164e58511608014a3c5f0a4e8487c90d10c2a57349
DIST udev-120.tar.bz2 203285 RMD160 a03e36e55953b296eaefaac242b1e5f1adda5254 SHA1 cef4c26390d158abcca135023cd88686271e8bc7 SHA256 6e2d07bf09f0c5d494b9139b2aa194ed7534bf7fb6f4dd732ed0cb725cde7b23
+DIST udev-121.tar.bz2 206790 RMD160 8b22e419eb926fa28c4c694bc8db895cb3506c06 SHA1 d194517d9466e302519a301d6c1e2579247692e1 SHA256 8ed32bf37539904e8b8eec7dafe9e5705734d574960d123f916eecbc44712b43
EBUILD udev-114-r1.ebuild 8816 RMD160 d2a452752aa4a4cfe553d9182b9b624c6df861dd SHA1 dc781d45759efbfb695bc613c535bc5ab5d02c7c SHA256 77595d8e14f232b1d941d37e9e064fc19eaaf61859ab8da0018de3cef9c557aa
EBUILD udev-114-r2.ebuild 9303 RMD160 755b62df4a003f60b90e774d634639618086ab71 SHA1 62ba06fd2430813a706a1fb8cd429455e71c5d7b SHA256 d19dd1c12b032a4107c4e9f4c03aa90071198563e3fe602baffd86341fb5a688
EBUILD udev-114.ebuild 8733 RMD160 53c0f674b1c6ad2377b11a4b26c85648f90ff23c SHA1 00f7da1a1f3c93149437d987ca8f0d8359279175 SHA256 843cccf1aded2f888c99c0a87065700e55b97b4c817304b88bc27132978c83bc
@@ -86,5 +91,13 @@ EBUILD udev-118.ebuild 9544 RMD160 72c7e3ea74d0e3681a7a76310f1f233454b247d1 SHA1
EBUILD udev-119-r1.ebuild 9866 RMD160 976da2e1e5ae267df2ebd106fcb7648bfb791e83 SHA1 2469a7825e30dff61f064e315c51005700e7505e SHA256 ba381263d3494072198e17c93473ec1b2edc4516abadc22b3c745284314f43ee
EBUILD udev-119.ebuild 9859 RMD160 e80177ac372c87f91fcf9a0f65ff6194d5f4a07f SHA1 3f8f8f4858babb8f1f2abf87a8fa246d45a36b45 SHA256 f74a6e4e43d286aed9cc0c7712fd74c155b5864aecbaf2fb5ae25f34761abd81
EBUILD udev-120.ebuild 9863 RMD160 a64b7c4e56a24220f35217cebe2809af2bcacd44 SHA1 36005b13221ba23c04cfecd03a67b46930fff704 SHA256 6c7a4a5319aed7bc307fabe5edeae9293b752f9999b5dcfefa8cd5f4272b64ff
-MISC ChangeLog 76671 RMD160 2dabdc1e834bc48550e0af166f9bb0c56360ccbc SHA1 a4fe35afbaff1bab159630b90f004676a820424c SHA256 7ec50364942f07344c06334e4bb6e135f0236b86529fa1151bad834c99eca72a
+EBUILD udev-121.ebuild 9913 RMD160 56c886bdaa0e3daac0b3238b8f89b534c5b447eb SHA1 551de0443de1186e78520ce3b385b0bf907f27c0 SHA256 91cb26651a7f21a199cd7f50190a5a29b1afa7fc13e48cdb43ca3aa1a6191253
+MISC ChangeLog 76869 RMD160 4a1944405280067d30a8b3b0aafae55a881f0fec SHA1 2e301b3317777c74615722a9f2df2734a21fbd5b SHA256 8bde52ee397e3b37fcdf5f878d62a83459d6d7402f67bb180ae1dbb11b3180c1
MISC metadata.xml 447 RMD160 d1ba09bd6a434b25c718673de9258cc544e090be SHA1 70c43d2863c09958849bfce8c5bb97d406a0662b SHA256 a9881de1424ac71191111bd30c7c1253589673b0cdce13c352204f1499e9d884
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkgrByQACgkQt2vP6XvVdOf+zQCgpYury+tXZouLN8/TAIV0oztI
+mg4AnjwRiMZPZrpJrUCFYizKxzeEhwxW
+=56OY
+-----END PGP SIGNATURE-----
diff --git a/sys-fs/udev/files/udev-121-cdrom_id-segfault.diff b/sys-fs/udev/files/udev-121-cdrom_id-segfault.diff
new file mode 100644
index 000000000000..55aa31b818ec
--- /dev/null
+++ b/sys-fs/udev/files/udev-121-cdrom_id-segfault.diff
@@ -0,0 +1,13 @@
+diff --git a/extras/cdrom_id/cdrom_id.c b/extras/cdrom_id/cdrom_id.c
+index 0e0a463..e0cbe9e 100644
+--- a/extras/cdrom_id/cdrom_id.c
++++ b/extras/cdrom_id/cdrom_id.c
+@@ -469,6 +469,8 @@ static int cd_media_toc(int fd)
+ info("READ TOC: len: %d\n", len);
+ if (len > sizeof(toc))
+ return -1;
++ if (len < 8)
++ return -1;
+
+ /* check if we have a data track */
+ info("ctl %02x (0x04 is data/audio)\n", header[5]);
diff --git a/sys-fs/udev/udev-121.ebuild b/sys-fs/udev/udev-121.ebuild
new file mode 100644
index 000000000000..20e5bb9f0d83
--- /dev/null
+++ b/sys-fs/udev/udev-121.ebuild
@@ -0,0 +1,351 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-121.ebuild,v 1.1 2008/05/14 15:36:46 zzam Exp $
+
+inherit eutils flag-o-matic multilib toolchain-funcs versionator
+
+DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
+HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
+SRC_URI="mirror://kernel/linux/utils/kernel/hotplug/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="selinux"
+
+DEPEND="selinux? ( sys-libs/libselinux )"
+RDEPEND="!sys-apps/coldplug
+ !<sys-fs/device-mapper-1.02.19-r1"
+RDEPEND="${DEPEND} ${RDEPEND}
+ >=sys-apps/baselayout-1.12.5"
+# We need the lib/rcscripts/addon support
+PROVIDE="virtual/dev-manager"
+
+pkg_setup() {
+ udev_helper_dir="/$(get_libdir)/udev"
+
+ myconf=
+ extras="extras/ata_id \
+ extras/cdrom_id \
+ extras/edd_id \
+ extras/firmware \
+ extras/floppy \
+ extras/path_id \
+ extras/scsi_id \
+ extras/usb_id \
+ extras/volume_id \
+ extras/collect \
+ extras/rule_generator"
+
+ use selinux && myconf="${myconf} USE_SELINUX=true"
+
+ # comparing kernel version without linux-info.eclass to not pull
+ # virtual/linux-sources
+
+ local KV=$(uname -r)
+ local KV_MAJOR=$(get_major_version ${KV})
+ local KV_MINOR=$(get_version_component_range 2 ${KV})
+ local KV_MICRO=$(get_version_component_range 3 ${KV})
+
+ local ok=0
+ if [[ ${KV_MAJOR} == 2 && ${KV_MINOR} == 6 && ${KV_MICRO} -ge 18 ]]
+ then
+ ok=1
+ fi
+
+ if [[ ${ok} == 0 ]]
+ then
+ ewarn
+ ewarn "${P} does not support Linux kernel before version 2.6.15!"
+ ewarn "If you want to use udev reliable you should update"
+ ewarn "to at least kernel version 2.6.18!"
+ ewarn
+ ebeep
+ fi
+}
+
+sed_helper_dir() {
+ sed -e "s#/lib/udev#${udev_helper_dir}#" -i "$@"
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+
+ # patches go here...
+ epatch "${FILESDIR}/${P}-cdrom_id-segfault.diff"
+
+ # No need to clutter the logs ...
+ sed -ie '/^DEBUG/ c\DEBUG = false' Makefile
+ # Do not use optimization flags from the package
+ sed -ie 's|$(OPTIMIZATION)||g' Makefile
+ # Do not require xmlto to refresh manpages
+ sed -ie 's|$(MAN_PAGES)||g' Makefile
+
+ # Make sure there is no sudden changes to upstream rules file
+ # (more for my own needs than anything else ...)
+ MD5=$(md5sum < "${S}/etc/udev/rules.d/50-udev-default.rules")
+ MD5=${MD5/ -/}
+ if [[ ${MD5} != db44f7e02100f57a555d48e2192c3f8d ]]
+ then
+ echo
+ eerror "50-udev-default.rules has been updated, please validate!"
+ die "50-udev-default.rules has been updated, please validate!"
+ fi
+
+ sed_helper_dir \
+ etc/udev/rules.d/50-udev-default.rules \
+ extras/rule_generator/write_*_rules \
+ udev_rules_parse.c \
+ udev_rules.c
+
+ # Use correct multilib dir
+ sed -i extras/volume_id/lib/Makefile \
+ -e "/ =/s-/lib-/$(get_libdir)-"
+}
+
+src_compile() {
+ filter-flags -fprefetch-loop-arrays
+
+ if [[ -z ${extras} ]]; then
+ eerror "Variable extras is unset!"
+ eerror "It seems you suffer from Bug #190994"
+ die "Variable extras is unset!"
+ fi
+
+ # Not everyone has full $CHOST-{ld,ar,etc...} yet
+ local mycross=""
+ type -p ${CHOST}-ar && mycross=${CHOST}-
+
+ emake \
+ EXTRAS="${extras}" \
+ libudevdir=${udev_helper_dir} \
+ CROSS_COMPILE=${mycross} \
+ OPTFLAGS="" \
+ ${myconf} || die "compiling udev failed"
+}
+
+src_install() {
+ into /
+ emake \
+ DESTDIR="${D}" \
+ libudevdir=${udev_helper_dir} \
+ EXTRAS="${extras}" \
+ ${myconf} \
+ install || die "make install failed"
+
+ exeinto "${udev_helper_dir}"
+ newexe "${FILESDIR}"/net-118-r1.sh net.sh || die "net.sh not installed properly"
+ newexe "${FILESDIR}"/move_tmp_persistent_rules-112-r1.sh move_tmp_persistent_rules.sh \
+ || die "move_tmp_persistent_rules.sh not installed properly"
+ doexe "${FILESDIR}"/write_root_link_rule \
+ || die "write_root_link_rule not installed properly"
+ newexe "${FILESDIR}"/shell-compat-118-r3.sh shell-compat.sh \
+ || die "shell-compat.sh not installed properly"
+
+ keepdir "${udev_helper_dir}"/state
+ keepdir "${udev_helper_dir}"/devices
+
+ # create symlinks for these utilities to /sbin
+ # where multipath-tools expect them to be (Bug #168588)
+ dosym "..${udev_helper_dir}/vol_id" /sbin/vol_id
+ dosym "..${udev_helper_dir}/scsi_id" /sbin/scsi_id
+
+ # vol_id library (needed by mount and HAL)
+ into /
+ rm "${D}/$(get_libdir)"/libvolume_id.so* 2>/dev/null
+ dolib extras/volume_id/lib/*.so* || die "Failed installing libvolume_id.so"
+ into /usr
+ dolib extras/volume_id/lib/*.a || die "Failed installing libvolume_id.a"
+
+ # handle static linking bug #4411
+ rm -f "${D}/usr/$(get_libdir)/libvolume_id.so"
+ gen_usr_ldscript libvolume_id.so
+
+ # Add gentoo stuff to udev.conf
+ echo "# If you need to change mount-options, do it in /etc/fstab" \
+ >> "${D}"/etc/udev/udev.conf
+
+ # Now installing rules
+ cd etc/udev
+ insinto /etc/udev/rules.d/
+
+ # Our rules files
+ doins gentoo/??-*.rules
+ doins packages/40-alsa.rules
+
+ # Adding arch specific rules
+ if [[ -f packages/40-${ARCH}.rules ]]
+ then
+ doins "packages/40-${ARCH}.rules"
+ fi
+ cd "${S}"
+
+ # our udev hooks into the rc system
+ insinto /$(get_libdir)/rcscripts/addons
+ newins "${FILESDIR}"/udev-start-119-r1.sh udev-start.sh
+ newins "${FILESDIR}"/udev-stop-118-r2.sh udev-stop.sh
+
+ # The udev-post init-script
+ newinitd "${FILESDIR}"/udev-postmount-initd-111-r2 udev-postmount
+
+ insinto /etc/modprobe.d
+ newins "${FILESDIR}"/blacklist-110 blacklist
+ doins "${FILESDIR}"/pnp-aliases
+
+ # convert /lib/udev to real used dir
+ sed_helper_dir \
+ "${D}/$(get_libdir)"/rcscripts/addons/*.sh \
+ "${D}"/etc/init.d/udev* \
+ "${D}"/etc/modprobe.d/*
+
+ # documentation
+ dodoc ChangeLog FAQ README TODO RELEASE-NOTES
+ dodoc docs/{overview,udev_vs_devfs}
+
+ cd docs/writing_udev_rules
+ mv index.html writing_udev_rules.html
+ dohtml *.html
+
+ cd "${S}"
+
+ newdoc extras/volume_id/README README_volume_id
+
+ echo "CONFIG_PROTECT_MASK=\"/etc/udev/rules.d\"" > 20udev
+ doenvd 20udev
+}
+
+pkg_preinst() {
+ if [[ -d ${ROOT}/lib/udev-state ]]
+ then
+ mv -f "${ROOT}"/lib/udev-state/* "${D}"/lib/udev/state/
+ rm -r "${ROOT}"/lib/udev-state
+ fi
+
+ if [[ -f ${ROOT}/etc/udev/udev.config &&
+ ! -f ${ROOT}/etc/udev/udev.rules ]]
+ then
+ mv -f "${ROOT}"/etc/udev/udev.config "${ROOT}"/etc/udev/udev.rules
+ fi
+
+ # delete the old udev.hotplug symlink if it is present
+ if [[ -h ${ROOT}/etc/hotplug.d/default/udev.hotplug ]]
+ then
+ rm -f "${ROOT}"/etc/hotplug.d/default/udev.hotplug
+ fi
+
+ # delete the old wait_for_sysfs.hotplug symlink if it is present
+ if [[ -h ${ROOT}/etc/hotplug.d/default/05-wait_for_sysfs.hotplug ]]
+ then
+ rm -f "${ROOT}"/etc/hotplug.d/default/05-wait_for_sysfs.hotplug
+ fi
+
+ # delete the old wait_for_sysfs.hotplug symlink if it is present
+ if [[ -h ${ROOT}/etc/hotplug.d/default/10-udev.hotplug ]]
+ then
+ rm -f "${ROOT}"/etc/hotplug.d/default/10-udev.hotplug
+ fi
+
+ # is there a stale coldplug initscript? (CONFIG_PROTECT leaves it behind)
+ coldplug_stale=""
+ if [[ -f ${ROOT}/etc/init.d/coldplug ]]
+ then
+ coldplug_stale="1"
+ fi
+}
+
+pkg_postinst() {
+ # people want reminders, I'll give them reminders. Odds are they will
+ # just ignore them anyway...
+
+ if [[ ${coldplug_stale} == 1 ]]
+ then
+ ewarn "A stale coldplug init script found. You should run:"
+ ewarn
+ ewarn " rc-update del coldplug"
+ ewarn " rm -f /etc/init.d/coldplug"
+ ewarn
+ ewarn "udev now provides its own coldplug functionality."
+ fi
+
+ # delete 40-scsi-hotplug.rules - all integrated in 50-udev.rules
+ if has_version "=sys-fs/udev-103-r3" &&
+ [[ -e ${ROOT}/etc/udev/rules.d/40-scsi-hotplug.rules ]]
+ then
+ ewarn "Deleting stray 40-scsi-hotplug.rules"
+ ewarn "installed by sys-fs/udev-103-r3"
+ rm -f "${ROOT}"/etc/udev/rules.d/40-scsi-hotplug.rules
+ fi
+
+ # Removing some device-nodes we thought we need some time ago
+ if [[ -d ${ROOT}/lib/udev/devices ]]
+ then
+ rm -f "${ROOT}"/lib/udev/devices/{null,zero,console,urandom}
+ fi
+
+ # Removing some old file
+ if has_version "<sys-fs/udev-104-r5"
+ then
+ rm -f "${ROOT}"/etc/dev.d/net/hotplug.dev
+ rmdir --ignore-fail-on-non-empty "${ROOT}"/etc/dev.d/net 2>/dev/null
+ fi
+
+ if has_version "<sys-fs/udev-106-r5" &&
+ [[ -e ${ROOT}/etc/udev/rules.d/95-net.rules ]]
+ then
+ rm -f "${ROOT}"/etc/udev/rules.d/95-net.rules
+ fi
+
+ # Try to remove /etc/dev.d as that is obsolete
+ if [[ -d ${ROOT}/etc/dev.d ]]
+ then
+ rmdir --ignore-fail-on-non-empty "${ROOT}"/etc/dev.d/default "${ROOT}"/etc/dev.d 2>/dev/null
+ if [[ -d ${ROOT}/etc/dev.d ]]
+ then
+ ewarn "You still have the directory /etc/dev.d on your system."
+ ewarn "This is no longer used by udev and can be removed."
+ fi
+ fi
+
+ # 64-device-mapper.rules now gets installed by sys-fs/device-mapper
+ # remove it if user don't has sys-fs/device-mapper installed
+ if has_version "<sys-fs/udev-113" &&
+ [[ -f ${ROOT}/etc/udev/rules.d/64-device-mapper.rules ]] &&
+ ! has_version sys-fs/device-mapper
+ then
+ rm -f "${ROOT}"/etc/udev/rules.d/64-device-mapper.rules
+ einfo "Removed unneeded file 64-device-mapper.rules"
+ fi
+
+ if [[ ${ROOT} == / ]]
+ then
+ # check if root of init-process is identical to ours
+ if [[ -r /proc/1/root && /proc/1/root/ -ef /proc/self/root/ ]]
+ then
+ einfo "restarting udevd now."
+ if [[ -n $(pidof udevd) ]]
+ then
+ killall -15 udevd &>/dev/null
+ sleep 1
+ killall -9 udevd &>/dev/null
+ fi
+ /sbin/udevd --daemon
+ fi
+ fi
+
+ ewarn "If you build an initramfs including udev, then please"
+ ewarn "make sure that the /sbin/udevadm binary gets included,"
+ ewarn "as the helper apps udevinfo, udevtrigger, ... are now"
+ ewarn "only symlinks to udevadm."
+
+ ewarn
+ ewarn "mount options for directory /dev are no longer"
+ ewarn "set in /etc/udev/udev.conf, but in /etc/fstab"
+ ewarn "as for other directories."
+
+ elog
+ elog "For more information on udev on Gentoo, writing udev rules, and"
+ elog " fixing known issues visit:"
+ elog " http://www.gentoo.org/doc/en/udev-guide.xml"
+}