Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=23e4b24b206f17f03f6d5f0ca8ba578ee30fa42d
commit 23e4b24b206f17f03f6d5f0ca8ba578ee30fa42d Author: Miklos Vajna <[EMAIL PROTECTED]> Date: Sat Aug 16 15:47:49 2008 +0200 udev-126-2-i686 - reverted one upstream commit for now - closes #3290 diff --git a/source/base/udev/FrugalBuild b/source/base/udev/FrugalBuild index 1e0af17..508bd1b 100644 --- a/source/base/udev/FrugalBuild +++ b/source/base/udev/FrugalBuild @@ -3,7 +3,7 @@ pkgname=udev pkgver=126 -pkgrel=1 +pkgrel=2 pkgdesc="A userspace implementation of devfs" url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/" backup=(etc/sysconfig/blacklist) @@ -15,8 +15,8 @@ conflicts=('devfsd' 'pcmcia-cs' 'hotplug') replaces=('hotplug') up2date="lynx -dump '$url?C=M;O=D'|grep 'udev-.*tar.bz2 '|sed -n 's/.*-\(.*\)\.t.*/\1/;1 p'" source=($url/$pkgname-$pkgver.tar.gz rc.udev blacklist \ - README.Frugalware) -signatures=("${source[0]}.sign" '' '' '') + README.Frugalware rules-run-vol_id-on-opticals-only-if-media-is-found.patch) +signatures=("${source[0]}.sign" '' '' '' '') # If you update this package, you MUST test it carefully, including the # rules. Run @@ -29,7 +29,6 @@ signatures=("${source[0]}.sign" '' '' '') build() { - unset MAKEFLAGS Fpatchall Fconf --exec-prefix="" make V=1 || return 1 diff --git a/source/base/udev/rules-run-vol_id-on-opticals-only-if-media-is-found.patch b/source/base/udev/rules-run-vol_id-on-opticals-only-if-media-is-found.patch new file mode 100644 index 0000000..a14f40c --- /dev/null +++ b/source/base/udev/rules-run-vol_id-on-opticals-only-if-media-is-found.patch @@ -0,0 +1,27 @@ +commit f755fd5657b619fd27160ad202fc5d773d096e9c +Author: Kay Sievers <[EMAIL PROTECTED]> +Date: Sat Aug 2 10:26:48 2008 +0200 + + rules: run vol_id on opticals only if media is found + + Opening an optical drive device node without O_NONBLOCK autocloses the + tray, we run vol_id on every media change by kernel emitted "change" + events, which can make it hard to change the media when the tray closes + immediatey again.:) We check for cdrom_id to indicate an existing track, + if no media is found, we will not open the device with vol_id. + + Thanks to Christian Krause and DavidZ for debugging and testing. + +diff --git a/rules/rules.d/60-persistent-storage.rules b/rules/rules.d/60-persistent-storage.rules +index 097e864..5ae0c7f 100644 +--- a/rules/rules.d/60-persistent-storage.rules ++++ b/rules/rules.d/60-persistent-storage.rules +@@ -52,8 +52,6 @@ ENV{DEVTYPE}=="partition", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PA + + # skip unpartitioned removable media devices from drivers which do not send "change" events + ENV{DEVTYPE}=="disk", KERNEL!="sd*|sr*", ATTR{removable}=="1", GOTO="persistent_storage_end" +-# skip optical drives without media +-ENV{DEVTYPE}=="disk", KERNEL=="sr*", ENV{ID_CDROM_MEDIA_TRACK_COUNT}!="?*", GOTO="persistent_storage_end" + + # import filesystem metadata + IMPORT{program}="vol_id --export $tempnode" _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
