[hplip/f16] Support IEEE 1284.4 protocol over USB (bug #858861).

Jiří Popelka jpopelka at fedoraproject.org
Thu Sep 20 08:24:52 UTC 2012


commit ffcb74df1cd2f8374e6c9f4aa73bef69e031f82f
Author: Jiri Popelka <jpopelka at redhat.com>
Date:   Thu Sep 20 10:14:35 2012 +0200

    Support IEEE 1284.4 protocol over USB (bug #858861).

 hplip-IEEE-1284-4.patch |   23 +++++++++++++++++++++++
 hplip.spec              |    8 +++++++-
 2 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/hplip-IEEE-1284-4.patch b/hplip-IEEE-1284-4.patch
new file mode 100644
index 0000000..022f9f8
--- /dev/null
+++ b/hplip-IEEE-1284-4.patch
@@ -0,0 +1,23 @@
+diff -up hplip-3.12.9/io/hpmud/musb.c.hplip-IEEE-1284-4 hplip-3.12.9/io/hpmud/musb.c
+--- hplip-3.12.9/io/hpmud/musb.c.hplip-IEEE-1284-4	2012-09-04 14:33:58.000000000 +0200
++++ hplip-3.12.9/io/hpmud/musb.c	2012-09-20 10:11:53.759116729 +0200
+@@ -708,7 +708,8 @@ static libusb_device *get_libusb_device(
+             {
+                 if ((altptr->bInterfaceClass == LIBUSB_CLASS_PRINTER ) && /* Printer */
+                       (altptr->bInterfaceSubClass == 1) && 
+-                      (altptr->bInterfaceProtocol == 1 || altptr->bInterfaceProtocol == 2)) /* Unidirectional or Bidirectional*/
++                      (altptr->bInterfaceProtocol == 1 || altptr->bInterfaceProtocol == 2
++		       || altptr->bInterfaceProtocol == 3)) /* Unidirectional, Bidirectional or 1284.4 */
+                     {
+                        if (is_uri(dev, uri))
+                        {
+@@ -2061,7 +2062,8 @@ int __attribute__ ((visibility ("hidden"
+             {
+                 if ((altptr->bInterfaceClass == LIBUSB_CLASS_PRINTER ) && /* Printer */
+                       (altptr->bInterfaceSubClass == 1) && 
+-                      (altptr->bInterfaceProtocol == 1 || altptr->bInterfaceProtocol == 2)) /* Unidirectional or Bidirectional*/
++                      (altptr->bInterfaceProtocol == 1 || altptr->bInterfaceProtocol == 2
++		       || altptr->bInterfaceProtocol == 3)) /* Unidirectional, Bidirectional or 1284.4 */
+                     {
+                         libusb_open(dev, &hd);
+                         if (hd == NULL)
diff --git a/hplip.spec b/hplip.spec
index 050d11a..947bf89 100644
--- a/hplip.spec
+++ b/hplip.spec
@@ -1,7 +1,7 @@
 Summary: HP Linux Imaging and Printing Project
 Name: hplip
 Version: 3.12.9
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv2+ and MIT
 Group: System Environment/Daemons
 Conflicts: system-config-printer < 0.6.132
@@ -43,6 +43,7 @@ Patch27: hplip-CVE-2010-4267.patch
 Patch28: hplip-wifisetup.patch
 Patch29: hplip-makefile-chgrp.patch
 Patch30: hplip-hpaio-localonly.patch
+Patch31: hplip-IEEE-1284-4.patch
 
 Requires(pre): /sbin/service
 Requires(post): /sbin/chkconfig
@@ -292,6 +293,8 @@ done
 # Pay attention to the SANE localOnly flag in hpaio (bug #743593).
 %patch30 -p1 -b .hpaio-localonly
 
+# Support IEEE 1284.4 protocol over USB (bug #858861).
+%patch31 -p1 -b .hplip-IEEE-1284-4
 
 sed -i.duplex-constraints \
     -e 's,\(UIConstraints.* \*Duplex\),//\1,' \
@@ -529,6 +532,9 @@ fi
 %postun libs -p /sbin/ldconfig
 
 %changelog
+* Thu Sep 20 2012 Jiri Popelka <jpopelka at redhat.com> 3.12.9-2
+- Support IEEE 1284.4 protocol over USB (bug #858861).
+
 * Fri Sep 07 2012 Jiri Popelka <jpopelka at redhat.com> 3.12.9-1
 - 3.12.9
 -- no longer needed: fax-ppd.patch


More information about the scm-commits mailing list