diff options
author | William Hubbs <williamh@gentoo.org> | 2012-03-23 16:55:46 +0000 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2012-03-23 16:55:46 +0000 |
commit | 4539f0185c17ff0fbc59aa545ae5abe6df9611dd (patch) | |
tree | ee1171e14779cafa12de1c145275dc134edc0d04 /sys-fs | |
parent | Stable for HPPA (bug #405067). (diff) | |
download | gentoo-2-4539f0185c17ff0fbc59aa545ae5abe6df9611dd.tar.gz gentoo-2-4539f0185c17ff0fbc59aa545ae5abe6df9611dd.tar.bz2 gentoo-2-4539f0185c17ff0fbc59aa545ae5abe6df9611dd.zip |
Remove some cruft from the live ebuild:
The fix_old_persistent_net_rules function has been there since 2008 and
is not documented. This code fixed an issue with very old persistent net
rules which should be taken care of by now since we have had several
stable udev versions with this fix.
The ebuild should not touch things in ${ROOT}/lib/udev/devices; remove
the code that does this.
Remove the code that removes ${ROOT}/etc/dev.d.
(Portage version: 2.2.0_alpha93/cvs/Linux i686)
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/udev/ChangeLog | 10 | ||||
-rw-r--r-- | sys-fs/udev/udev-9999.ebuild | 40 |
2 files changed, 11 insertions, 39 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog index 29fafd550878..e45cd0a8ae18 100644 --- a/sys-fs/udev/ChangeLog +++ b/sys-fs/udev/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sys-fs/udev # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.669 2012/03/22 17:11:41 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.670 2012/03/23 16:55:46 williamh Exp $ + + 23 Mar 2012; William Hubbs <williamh@gentoo.org> udev-9999.ebuild: + Remove some cruft from the live ebuild: The fix_old_persistent_net_rules + function has been there since 2008 and is not documented. This code fixed an + issue with very old persistent net rules which should be taken care of by now + since we have had several stable udev versions with this fix. The ebuild + should not touch things in ${ROOT}/lib/udev/devices; remove the code that does + this. Remove the code that removes ${ROOT}/etc/dev.d. 22 Mar 2012; William Hubbs <williamh@gentoo.org> udev-9999.ebuild: re-order the econf options to match udev help. diff --git a/sys-fs/udev/udev-9999.ebuild b/sys-fs/udev/udev-9999.ebuild index f19c49293963..3cefc759d313 100644 --- a/sys-fs/udev/udev-9999.ebuild +++ b/sys-fs/udev/udev-9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-9999.ebuild,v 1.91 2012/03/22 17:11:41 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-9999.ebuild,v 1.92 2012/03/23 16:55:46 williamh Exp $ EAPI=4 @@ -60,7 +60,7 @@ fi RDEPEND="${COMMON_DEPEND} hwdb? ( >=sys-apps/usbutils-0.82 - || ( >=sys-apps/pciutils-3.1.9-r1[-compress-db] <sys-apps/pciutils-3.1.9-r1[-zlib] ) + || ( >=sys-apps/pciutils-3.1.9-r1[-compress-db] <sys-apps/pciutils-3.1.9-r1[-zlib] ) ) openrc? ( >=sys-fs/udev-init-scripts-10 !<sys-apps/openrc-0.9.9 ) @@ -193,24 +193,6 @@ src_install() doins "${FILESDIR}"/40-gentoo.rules } -# 19 Nov 2008 -fix_old_persistent_net_rules() -{ - local rules="${ROOT}"/etc/udev/rules.d/70-persistent-net.rules - [[ -f ${rules} ]] || return - - elog - elog "Updating persistent-net rules file" - - # Change ATTRS to ATTR matches, Bug #246927 - sed -i -e 's/ATTRS{/ATTR{/g' "${rules}" - - # Add KERNEL matches if missing, Bug #246849 - sed -ri \ - -e '/KERNEL/ ! { s/NAME="(eth|wlan|ath)([0-9]+)"/KERNEL=="\1*", NAME="\1\2"/}' \ - "${rules}" -} - # See Bug #129204 for a discussion about restarting udevd restart_udevd() { @@ -264,7 +246,6 @@ ismounted() pkg_postinst() { mkdir -p "${ROOT}"/run - fix_old_persistent_net_rules # "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766 # So try to remove it here (will only work if empty). @@ -280,23 +261,6 @@ pkg_postinst() # people want reminders, I'll give them reminders. Odds are they will # just ignore them anyway... - # Removing some device-nodes we thought we need some time ago, 25 Jan 2007 - if [[ -d ${ROOT}/lib/udev/devices ]] - then - rm -f "${ROOT}"/lib/udev/devices/{null,zero,console,urandom} - fi - - # Try to remove /etc/dev.d as that is obsolete, 23 Apr 2007 - 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, 27 Jun 2007 if [[ -f ${ROOT}/etc/udev/rules.d/64-device-mapper.rules ]] && |