-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On non Darwin OS configure script ignores --disable-libusb flag #4439
Comments
CUPS.org User: mike That isn't the correct fix, but instead we should be checking that the value is not "no" (i.e. nothing specified or --enable-libusb) and we are not running on Darwin/OS X (which uses IOKit instead). |
CUPS.org User: mike And FWIW there are problems having both the legacy usblp kernel driver and scanner software use an MFP - sounds like your Linux distribution of choice needs to provide a common group for printing and scanning... |
CUPS.org User: raycic IMHO behavior of libusb flag should be following: no libusb flag: libusb auto-detection (like now) --disable-libusb: libusb support should be disabled --enable-libusb: libusb support should be enabled and presence of libusb should be checked. If there is no libusb on system or libusb exists but wrong version then configure script should fail Unfortunately I do not have knowledge about auto-tools and m4 to make such changes. |
CUPS.org User: jsmeix.suse FWIW regarding "provide a common group for printing and scanning": At openSUSE I use the "lp" group as common group for printing Reasoning: https://build.opensuse.org/package/view_file/graphics/sane-backends/sane-backends.spec?expand=1 Regarding udev:Modify the generated tools/udev/libsane.rules file as follows:All GROUP="scanner" are replaced by GROUP="lp".There is no group "scanner" in /etc/group for openSUSE.For all-in-one devices (i.e. printer + scanner, e.g. "EPSON Stylus" devices)the group must be "lp" so that the CUPS usb backend which runsas user "lp" (who is member of the group "lp") can send printing datato the printer unit (i.e. the printer interface of the USB device).It is sufficiently secure and reasonable easy to use by defaultthe same group "lp" for printers and scanners because both kind of devicesusually require physical user access (to get the printed paper orto place a paper on the scanner) so that both kind of devicesshould usually require the same kind of security.sed -i -e 's/GROUP="scanner"/GROUP="lp"/' tools/udev/libsane.rules |
CUPS.org User: mike Fixed in Subversion repository. |
"cups-1.7.1-fix-libusb-detection.patch": diff -ur cups-1.7.1.old/config-scripts/cups-common.m4 cups-1.7.1/config-scripts/cups-common.m4 if test "x$PKGCONFIG" != x; then
|
"str4439.patch": Index: config-scripts/cups-common.m4--- config-scripts/cups-common.m4 (revision 11949) if test "x$PKGCONFIG" != x; then
|
Version: 1.7.1
CUPS.org User: raycic
On any OS except Darwin configure script ignores --disable-libusb flag and does libusb autodetection.
At least on Linux this cause problems with printing on usb multifunctional devices.
If cups uses libusb then it tries access printer through /dev/bus/usb/... device. But offen this device is ocuppied by scanner software and device is assigned to scanner group but not lp group which is default for cups, so cups in this configuration do not have access to printer.
In this situation cups should be compiled with --disable-libusb flag, and cups should acces printer only through /dev/usblp devices
IMHO this problem affects not only 1.7.1 version of cups but all recent versions
I attached patch which fixes problem for me, but I am not 100% sure it is correct.
The text was updated successfully, but these errors were encountered: