rpms/sane-backends/F-7 sane-backends-1.0.18-usb_reset.patch, NONE, 1.1 sane-backends.spec, 1.79, 1.80
Nils Philippsen (nphilipp)
fedora-extras-commits at redhat.com
Fri Jun 15 13:25:30 UTC 2007
Author: nphilipp
Update of /cvs/pkgs/rpms/sane-backends/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22248
Modified Files:
sane-backends.spec
Added Files:
sane-backends-1.0.18-usb_reset.patch
Log Message:
call usb_reset() prior to usb_close() to workaround hanging USB hardware (#149027, #186766)
sane-backends-1.0.18-usb_reset.patch:
--- NEW FILE sane-backends-1.0.18-usb_reset.patch ---
--- sane-backends-1.0.18/sanei/sanei_usb.c.usb_reset 2006-05-26 21:38:46.000000000 +0200
+++ sane-backends-1.0.18/sanei/sanei_usb.c 2007-06-15 15:16:50.000000000 +0200
@@ -1255,6 +1255,9 @@ sanei_usb_close (SANE_Int dn)
usb_resetep (devices[dn].libusb_handle, devices[dn].bulk_out_ep);
usb_resetep (devices[dn].libusb_handle, devices[dn].iso_in_ep);
#endif
+ /* Hack to work around hanging USB hardware */
+ usb_reset (devices[dn].libusb_handle);
+
usb_release_interface (devices[dn].libusb_handle,
devices[dn].interface_nr);
usb_close (devices[dn].libusb_handle);
Index: sane-backends.spec
===================================================================
RCS file: /cvs/pkgs/rpms/sane-backends/F-7/sane-backends.spec,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- sane-backends.spec 24 Apr 2007 07:14:48 -0000 1.79
+++ sane-backends.spec 15 Jun 2007 13:24:55 -0000 1.80
@@ -18,7 +18,7 @@
Summary: Scanner access software
Name: sane-backends
Version: 1.0.18
-Release: 6%{?dist}
+Release: 7%{?dist}
License: GPL (programs), relaxed LGPL (libraries), and public domain (docs)
Group: System Environment/Libraries
Source0: ftp://ftp.sane-project.org/pub/sane/%{name}-%{version}/%{name}-%{version}.tar.gz
@@ -28,6 +28,7 @@
Patch3: sane-backends-multilib.patch
Patch4: sane-backends-1.0.17-pkgconfig.patch
Patch5: sane-backends-1.0.18-logical_vs_binary.patch
+Patch6: sane-backends-1.0.18-usb_reset.patch
URL: http://www.sane-project.org
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%__id_u -n)
BuildRequires: tetex-latex libusb-devel libieee1284-devel libjpeg-devel
@@ -108,6 +109,7 @@
%patch3 -p1 -b .multilib
%patch4 -p1 -b .pkgconfig
%patch5 -p1 -b .logical_vs_binary
+%patch6 -p1 -b .usb_reset
# Fix bug #62847.
perl -pi -e 's,/dev/usbscanner0?,/dev/usb/scanner0,' backend/*.conf
@@ -230,6 +232,10 @@
%{_libdir}/pkgconfig/sane-backends.pc
%changelog
+* Fri Jun 15 2007 Nils Philippsen <nphilipp at redhat.com> - 1.0.18-7
+- call usb_reset() prior to usb_close() to workaround hanging USB hardware
+ (#149027, #186766)
+
* Tue Apr 24 2007 Nils Philippsen <nphilipp at redhat.com> - 1.0.18-6
- don't erroneously use logical "&&" instead of binary "&" at some places in
the canon driver
More information about the fedora-extras-commits
mailing list