[cups-devel] [UNKN] STR #4525: unbreak USB printing on OpenBSD

Antoine Jacoutot noreply at cups.org
Sun Nov 16 02:20:53 PST 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Hi.

On OpenBSD, the libusb_kernel_* functions return LIBUSB_ERROR_NOT_SUPPORTED
because there is no implementation for it (also "usblp" is a Linux thing).

The following patch adds a check to open_device() that catches
LIBUSB_ERROR_NOT_SUPPORTED and continues with a warning assuming that the
kernel hasn't attached the device so that libusb is used.
This allows my USB printers to work on at least OpenBSD.

Link: https://www.cups.org/str.php?L4525
Version: 2.0.1
Attachment: https://www.cups.org/strfiles.php/3413/backend_usb-libusb_c.patch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJUaHqFAAoJENujp6sI12IjcvwP/ikQmSnENAnt9hXqHFTKJ5u5
NLcf3ixB1J0pV4Xu4Qm32grhDL/W2gVlKQgJ5Q9i3ybjvqUOB6XIg9dH/rLrfTKn
B4seEEPr/fKa3465UQhmv3nhWTT2cpeCGcuzfWeNpHAuCHswRvFsWZURhqm4u2Ps
oV8mALE3OX1eTkvv+RLSye/XMgsySoppXWALEwyAcp9hWr1aKGi4bxP/h5mCsxoY
fcemYxXimoTqU1QLUZXVmLEC0TRv3eXWD9Z5fN8hUxv8BL1yKiJXqzGM8yEuxLbn
qkYwg68PmzJyEOV8c3umKSfDJHGUfTXDPv27+GC5eZH5zRWydxjCxq+ZLS+2NsPl
7XnnPd/v9aRWDS5cyHzxO9Ic8kQwNXn76J7Cyqcy1Khg/J+V9mbbLKwsOpMc7PSa
hCxALPtDYlc8vpUKlZznlfohJqVHeT4e/2Yae8uXQv6Qqzwaz6pAdK/cVuFFe897
Fjq5LTyRGGgoHP47mXrH1XrJxqB8s6TJXbkSerD+zS/WcsOIvxaZAn739ooYZ9tn
pEo8c+CnMixwuDXhnYKqS6E4J/AZ8yPKk3a2hRG9NqpM8ReNH1mf+CGw9IHJ0Lgu
52xJsWWOTfSxpD0WcDZ/HviGP36lt9dYMAq81ukErMHuAM1MS6fGZxqs+cUHs7df
HKWvP1CuSFCHqyD8269v
=EjiT
-----END PGP SIGNATURE-----




More information about the cups mailing list