This patch is still needed for proper USB support.
This commit is contained in:
parent
e551bccc7f
commit
e14c94953d
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.183 2014/08/10 07:49:27 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.184 2014/08/15 14:51:03 ajacoutot Exp $
|
||||
|
||||
COMMENT-main= Common Unix Printing System
|
||||
COMMENT-libs= CUPS libraries and headers
|
||||
@ -10,6 +10,8 @@ EXTRACT_SUFX= .tar.bz2
|
||||
PKGNAME-main= cups-${VERSION}
|
||||
PKGNAME-libs= cups-libs-${VERSION}
|
||||
|
||||
REVISION-main= 0
|
||||
|
||||
CATEGORIES= print sysutils
|
||||
|
||||
# config-scripts/cups-sharedlibs.m4
|
||||
|
21
print/cups/patches/patch-backend_usb-libusb_c
Normal file
21
print/cups/patches/patch-backend_usb-libusb_c
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-backend_usb-libusb_c,v 1.10 2014/08/15 14:51:03 ajacoutot Exp $
|
||||
--- backend/usb-libusb.c.orig Mon Dec 9 20:26:47 2013
|
||||
+++ backend/usb-libusb.c Thu Aug 14 15:18:15 2014
|
||||
@@ -1473,9 +1473,14 @@ open_device(usb_printer_t *printer, /* I - Printer */
|
||||
else
|
||||
{
|
||||
printer->usblp_attached = 0;
|
||||
- fprintf(stderr, "DEBUG: Failed to check whether %04x:%04x has the \"usblp\" kernel module attached\n",
|
||||
- devdesc.idVendor, devdesc.idProduct);
|
||||
- goto error;
|
||||
+
|
||||
+ if (errcode != LIBUSB_ERROR_NOT_SUPPORTED)
|
||||
+ {
|
||||
+ fprintf(stderr,
|
||||
+ "DEBUG: Failed to check whether %04x:%04x has the \"usblp\" "
|
||||
+ "kernel module attached\n", devdesc.idVendor, devdesc.idProduct);
|
||||
+ goto error;
|
||||
+ }
|
||||
}
|
||||
|
||||
/*
|
Loading…
x
Reference in New Issue
Block a user