From 340cf56a2f98a123fa1bbc5865738960775e60ef9288b9468690b6520b5fd448 Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Fri, 25 Mar 2011 10:35:32 +0000 Subject: [PATCH] Accepting request 65218 from home:jsmeix:branches:graphics Fixed udev rules for SCSI scanners (bnc#681146) OBS-URL: https://build.opensuse.org/request/show/65218 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=38 --- sane-backends.changes | 10 ++++++++++ sane-backends.spec | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/sane-backends.changes b/sane-backends.changes index 40b54e9..311f186 100644 --- a/sane-backends.changes +++ b/sane-backends.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Mar 25 10:27:36 CET 2011 - jsmeix@suse.de + +- Fixed udev rules for SCSI scanners: + Because of openSUSE/Novell Bugzilla bnc#436085 + (see the entry below dated "Tue Oct 21 13:12:42 CEST 2008") + "SYSFS" and "ATTRS" were replaced by "ATTR" everywhere in + libsane.rules but for SCSI scanners "ATTRS{type}" is mandatory + (see openSUSE/Novell Bugzilla bnc#681146). + ------------------------------------------------------------------- Sun Feb 20 10:43:15 UTC 2011 - coolo@novell.com diff --git a/sane-backends.spec b/sane-backends.spec index b170a15..6db3a22 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -540,11 +540,15 @@ install -m644 autoconfig.rules %{buildroot}%{_sysconfdir}/udev/rules.d/56-sane-b # https://bugzilla.novell.com/show_bug.cgi?id=294161#c11 # Regarding SYSFS{} or ATTRS{} versus ATTR{} see the Novell/Suse Bugzilla bug # https://bugzilla.novell.com/show_bug.cgi?id=436085#c0 +# but for SCSI scanners "ATTRS{type}" is mandatory see the Novell/Suse Bugzilla bug +# https://bugzilla.novell.com/show_bug.cgi?id=681146#c15 +# so that "ATTRS{type}" which was replaced by "ATTR{type}" is re-replaced by "ATTRS{type}" # Disable all ENV{DEVTYPE} lines because we (Suse/Novell) do not need them. sed -i -e 's/GROUP="scanner"/GROUP="lp"/' tools/udev/libsane.rules sed -i -e '/^SUBSYSTEM/s/"usb_device"/"usb"/' tools/udev/libsane.rules sed -i -e 's/SYSFS/ATTR/g' tools/udev/libsane.rules sed -i -e 's/ATTRS/ATTR/g' tools/udev/libsane.rules +sed -i -e 's/ATTR{type}/ATTRS{type}/g' tools/udev/libsane.rules sed -i -e 's/^ENV{DEVTYPE}/# ENV{DEVTYPE}/' tools/udev/libsane.rules # Disable entries for USB scanners which are "unsupported" # but keep the entries for models for which the support status