From 9528bec1c3478d6eab6a5461b8409bb082f5281886c5bcf01480223a1b7ad987 Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Fri, 18 Feb 2011 11:32:19 +0000 Subject: [PATCH 1/6] Updating link to change in openSUSE:Factory/sane-backends revision 54.0 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=5a80e7b15467b7cb867b37517e67efd5 --- sane-backends.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sane-backends.spec b/sane-backends.spec index 2481e10..706d336 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -1,7 +1,7 @@ # -# spec file for package sane-backends (Version 1.0.21) +# spec file for package sane-backends # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,7 +30,7 @@ Group: Hardware/Scanner AutoReqProv: on Summary: SANE (Scanner Access Now Easy) Scanner Drivers Version: 1.0.22 -Release: 8 +Release: 1 Url: http://www.sane-project.org/ # URL for Source0: https://alioth.debian.org/frs/download.php/3258/sane-backends-1.0.21.tar.gz # MD5 sum for upstream sane-backends-1.0.21.tar.gz (not our .bz2): be586a23633949cf2ecf0c9c6d769130 From 88b9c87429fb753d19ee4bac07ff953527dc5332c6d1e3adbc3980f8b1d10c57 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sun, 20 Feb 2011 10:44:39 +0000 Subject: [PATCH 2/6] Accepting request 62183 from home:coolo:branches:openSUSE:Factory self accept to get this into 11.4 early OBS-URL: https://build.opensuse.org/request/show/62183 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=37 --- sane-backends.changes | 5 +++++ sane-backends.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/sane-backends.changes b/sane-backends.changes index ebfa13a..40b54e9 100644 --- a/sane-backends.changes +++ b/sane-backends.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Feb 20 10:43:15 UTC 2011 - coolo@novell.com + +- fix dependencies of devel package + ------------------------------------------------------------------- Wed Feb 16 15:31:21 CET 2011 - jsmeix@suse.de diff --git a/sane-backends.spec b/sane-backends.spec index 706d336..8db3335 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -293,6 +293,7 @@ Summary: Development files for sane-backends License: GPLv2 ; GPLv2+ ; LGPLv2.1+ ; Public Domain, Freeware Group: Development/Libraries/C and C++ Requires: %{name} = %{version} +Requires: net-snmp-devel %description devel This package contains the development files for sane-backends. From 80133694069de666e8d87924baa3e10dee0769646719ab6b3b43095b35cc464c Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Sun, 20 Feb 2011 18:51:18 +0000 Subject: [PATCH 3/6] Updating link to change in openSUSE:Factory/sane-backends revision 55.0 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=954b3b34748247491b15bf0698190a76 --- sane-backends.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sane-backends.spec b/sane-backends.spec index 8db3335..b170a15 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -30,7 +30,7 @@ Group: Hardware/Scanner AutoReqProv: on Summary: SANE (Scanner Access Now Easy) Scanner Drivers Version: 1.0.22 -Release: 1 +Release: 2 Url: http://www.sane-project.org/ # URL for Source0: https://alioth.debian.org/frs/download.php/3258/sane-backends-1.0.21.tar.gz # MD5 sum for upstream sane-backends-1.0.21.tar.gz (not our .bz2): be586a23633949cf2ecf0c9c6d769130 From 340cf56a2f98a123fa1bbc5865738960775e60ef9288b9468690b6520b5fd448 Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Fri, 25 Mar 2011 10:35:32 +0000 Subject: [PATCH 4/6] 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 From 2ef77a8b7c63c75746295ad6786d68b1733fa67d9de2085bb56fcbb8fa8d1652 Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Tue, 29 Mar 2011 13:19:37 +0000 Subject: [PATCH 5/6] Accepting request 65396 from home:jsmeix:branches:graphics Fixed udev rules for SCSI scanners using ATTRS for all sysfs attributes (bnc#681146) OBS-URL: https://build.opensuse.org/request/show/65396 OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=39 --- sane-backends.changes | 9 +++++++++ sane-backends.spec | 19 +++++++------------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/sane-backends.changes b/sane-backends.changes index 311f186..465095c 100644 --- a/sane-backends.changes +++ b/sane-backends.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Mar 29 13:07:20 CEST 2011 - jsmeix@suse.de + +- Fixed udev rules for SCSI scanners: + For SCSI scanners "ATTRS" is mandatory for every sysfs attribute + (in particular ATTRS{type}, ATTRS{vendor}, and ATTRS{model}) + so that "ATTRS" is replaced by "ATTR" only for USB scanners + (see openSUSE/Novell Bugzilla bnc#681146). + ------------------------------------------------------------------- Fri Mar 25 10:27:36 CET 2011 - jsmeix@suse.de diff --git a/sane-backends.spec b/sane-backends.spec index 6db3a22..d8878ce 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -522,10 +522,7 @@ install -m644 autoconfig.rules %{buildroot}%{_sysconfdir}/udev/rules.d/56-sane-b # Also the evil-hack init-script "sane-dev" is no longer provided. # Regarding udev: # Modify the generated tools/udev/libsane.rules file as follows: -# All GROUP="scanner" are replaced by GROUP="lp" and -# SUBSYSTEM=="usb" is added before the SUBSYSTEM=="usb_device" test -# but the latter is kept for backward compatibility. -# The reasons are: +# All GROUP="scanner" are replaced by GROUP="lp". # There is no group "scanner" in /etc/group for openSUSE. # For all-in-one devices (i.e. printer + scanner, e.g. "EPSON Stylus" devices) # the group must be "lp" so that the CUPS usb backend which runs @@ -536,19 +533,17 @@ install -m644 autoconfig.rules %{buildroot}%{_sysconfdir}/udev/rules.d/56-sane-b # usually require physical user access (to get the printed paper or # to place a paper on the scanner) so that both kind of devices # should usually require the same kind of security. +sed -i -e 's/GROUP="scanner"/GROUP="lp"/' tools/udev/libsane.rules # Regarding SUBSYSTEM=="usb" see the Novell/Suse Bugzilla bug # https://bugzilla.novell.com/show_bug.cgi?id=294161#c11 +sed -i -e '/^SUBSYSTEM/s/"usb_device"/"usb"/' tools/udev/libsane.rules # 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}" +# but for SCSI scanners "ATTRS" is mandatory see the Novell/Suse Bugzilla bug +# https://bugzilla.novell.com/show_bug.cgi?id=681146#c20 +# so that "ATTRS" is replaced by "ATTR" only for USB scanners. +sed -i -e '/^LABEL="libsane_usb_rules_begin"/,/^LABEL="libsane_usb_rules_end"/s/ATTRS/ATTR/g' tools/udev/libsane.rules # 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 From ad879d3813ceb8570c78089ccc3a92ed379ee66db8fdc5c81a01de16556e8316 Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Tue, 5 Apr 2011 10:23:13 +0000 Subject: [PATCH 6/6] OBS-URL: https://build.opensuse.org/package/show/graphics/sane-backends?expand=0&rev=40 --- sane-backends.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sane-backends.spec b/sane-backends.spec index d8878ce..d83c714 100644 --- a/sane-backends.spec +++ b/sane-backends.spec @@ -537,7 +537,7 @@ sed -i -e 's/GROUP="scanner"/GROUP="lp"/' tools/udev/libsane.rules # Regarding SUBSYSTEM=="usb" see the Novell/Suse Bugzilla bug # https://bugzilla.novell.com/show_bug.cgi?id=294161#c11 sed -i -e '/^SUBSYSTEM/s/"usb_device"/"usb"/' tools/udev/libsane.rules -# Regarding SYSFS{} or ATTRS{} versus ATTR{} see the Novell/Suse Bugzilla bug +# Regarding ATTRS{} (formerly SYSFS{}) versus ATTR{} see the Novell/Suse Bugzilla bug # https://bugzilla.novell.com/show_bug.cgi?id=436085#c0 # but for SCSI scanners "ATTRS" is mandatory see the Novell/Suse Bugzilla bug # https://bugzilla.novell.com/show_bug.cgi?id=681146#c20