Package: libsane
Version: 1.0.22-2
Severity: grave
Tags: patch
Justification: renders package unusable

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Udev script for libsane (/lib/udev/rules.d/60-libsane.rules) is broken
due to changes in udev constants. Therefore rw permission for 'scanner'
group is not granted, so scanner is not sccessible from non-root user.

Patch:

- --- 60-libsane.rules.old        2011-04-17 16:50:31.000000000 +0400
+++ 60-libsane.rules    2011-04-17 16:50:31.000000000 +0400
@@ -24,10 +24,10 @@
 # the sane-devel mailing list (sane-de...@lists.alioth.debian.org).
 #
 ACTION!="add", GOTO="libsane_rules_end"
- -ENV{DEVTYPE}=="usb_device", GOTO="libsane_create_usb_dev"
+ENV{DEVTYPE}=="usb_interface", GOTO="libsane_create_usb_dev"
 SUBSYSTEMS=="scsi", GOTO="libsane_scsi_rules_begin"
- -SUBSYSTEM=="usb_device", GOTO="libsane_usb_rules_begin"
- -SUBSYSTEM!="usb_device", GOTO="libsane_usb_rules_end"
+SUBSYSTEM=="usb", GOTO="libsane_usb_rules_begin"
+SUBSYSTEM!="usb", GOTO="libsane_usb_rules_end"
 
 # Kernel >= 2.6.22 jumps here
 LABEL="libsane_create_usb_dev"
@@ -1214,6 +1214,6 @@
 KERNEL=="sg[0-9]*", ATTRS{type}=="3", ATTRS{vendor}=="HP", 
ATTRS{model}=="C7670A", ENV{libsane_matched}="yes"
 LABEL="libsane_scsi_rules_end"
 
- -ENV{libsane_matched}=="yes", RUN+="/bin/setfacl -m g:scanner:rw 
$env{DEVNAME}"
+ENV{libsane_matched}=="yes", GROUP = "scanner"
 
 LABEL="libsane_rules_end"


- -- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'oldstable'), (500, 'unstable'), (500, 
'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-2-amd64 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libsane depends on:
ii  acl                          2.2.49-4    Access control list utilities
ii  adduser                      3.112+nmu2  add and remove users and groups
ii  libavahi-client3             0.6.28-4    Avahi client library
ii  libavahi-common3             0.6.28-4    Avahi common library
ii  libc6                        2.11.2-11   Embedded GNU C Library: Shared lib
ii  libexif12                    0.6.19-1    library to parse EXIF files
ii  libgphoto2-2                 2.4.10.1-5  gphoto2 digital camera library
ii  libgphoto2-port0             2.4.10.1-5  gphoto2 digital camera port librar
ii  libieee1284-3                0.2.11-6    cross-platform library for paralle
ii  libjpeg62                    6b1-1       The Independent JPEG Group's JPEG 
ii  libtiff4                     3.9.4-5     Tag Image File Format (TIFF) libra
ii  libusb-0.1-4                 2:0.1.12-17 userspace USB programming library
ii  libv4l-0                     0.8.3-1     Collection of video4linux support 
ii  makedev                      2.3.1-89    creates device files in /dev
ii  udev                         167-1       /dev/ and hotplug management daemo

Versions of packages libsane recommends:
ii  libsane-extras                1.0.22.1   API library for scanners -- extra 
pn  sane-utils                    <none>     (no description available)

Versions of packages libsane suggests:
pn  avahi-daemon                  <none>     (no description available)
pn  hplip                         <none>     (no description available)
pn  hpoj                          <none>     (no description available)

- -- no debconf information

- -- debsums errors found:
debsums: changed file /lib/udev/rules.d/60-libsane.rules (from libsane package)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk2q5kgACgkQp0cjlW3dsl/q5QCgl/m1qswOBx1HKuAp2kfKKS5v
eZkAn1WNiq/Y7wtJkiOLaAKQQe6IuQxQ
=h20K
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to