Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Mar 2016 01:38:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 207939] print/cups:  Removal of LIBUSB option breaks some printer types
Message-ID:  <bug-207939-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207939

            Bug ID: 207939
           Summary: print/cups:  Removal of LIBUSB option breaks some
                    printer types
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: tijl@FreeBSD.org
          Reporter: russo@bogodyn.org
          Assignee: tijl@FreeBSD.org
             Flags: maintainer-feedback?(tijl@FreeBSD.org)

With the most recent update of print/cups, the old LIBUSB option was remove=
d,
and LIBUSB is always turned on (and the file
%%DATADIR%%/usb/org.cups.usb-quirks
 unconditionally installed per pkg-plist).

This is a major problem for a small class of USB printers such as the HP LJ
1020, which will not work if cups is built with LIBUSB.  The problem is that
the usb driver attempts to detach the kernel driver using
libusb_detach_kernel_driver, which fails.  The result is an endless "Waiting
for printer to become available" error.

I was able to force cups to be built without LIBUSB by hacking the
print/cups/Makefile to add the "--diable-libusb" option to CONFIGURE_ARGS a=
nd
removing the %%DATADIR%%/usb/org.cups.usb-quirks line from pkg-plist.

This is obviously NOT the solution for the port, but it WAS the solution to=
 the
problem of getting my printer working again after the upgrade to cups 2.1.3
this afternoon.  I only got the solution by googling like crazy, watching
ktraces of the usb: process that was screwing up, and finally finding an
article saying "Just build the port with LIBUSB off."  It was then that I
realized that there was no longer such an option, and that it had been remo=
ved
yesterday.  I must have had it selected for all previous builds of cups.

Would the port maintainer please re-insert the LIBUSB option so that oddball
uses of cups with printers that have this problem can actually print?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207939-13>