diff options
author | gdt <gdt> | 2007-04-02 12:11:01 +0000 |
---|---|---|
committer | gdt <gdt> | 2007-04-02 12:11:01 +0000 |
commit | ac9cdd48fa5f5748ecf91747e5e6ea08da136724 (patch) | |
tree | 7475b3473595899d5290ffce4f856333799dd2f8 /print/cups/patches | |
parent | 4c1df8611b8cf40ec1c733658c6d96b83544cac9 (diff) | |
download | pkgsrc-ac9cdd48fa5f5748ecf91747e5e6ea08da136724.tar.gz |
Add patch to disable the use of the back channel for USB on NetBSD.
This is based on a suggestion by Yorick Hardy, who reports that it
improved behavior. Without the patch, the cups usb driver tries to
read status from ulpt(4) (for most printers), and this results in no
output.
Diffstat (limited to 'print/cups/patches')
-rw-r--r-- | print/cups/patches/patch-au | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/print/cups/patches/patch-au b/print/cups/patches/patch-au new file mode 100644 index 00000000000..b30aab44f60 --- /dev/null +++ b/print/cups/patches/patch-au @@ -0,0 +1,16 @@ +$NetBSD: patch-au,v 1.6 2007/04/02 12:11:01 gdt Exp $ + +--- backend/usb-unix.c.orig 2007-02-20 08:41:07.000000000 -0500 ++++ backend/usb-unix.c +@@ -90,6 +90,11 @@ print_device(const char *uri, /* I - De + strcasecmp(hostname, "Konica Minolta") && + strcasecmp(hostname, "Minolta"); + ++#ifdef __NetBSD__ ++ /* XXX Use configure test to see if reading from ulpt(4) works. */ ++ use_bc = 0; ++#endif ++ + if ((device_fd = open_device(uri, &use_bc)) == -1) + { + if (getenv("CLASS") != NULL) |