Date: Wed, 3 Apr 2013 22:49:38 GMT From: Eric Krausser <eric@krausser-edv.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/177621: [PATCH] sane-backends-1.0.23_1 USB scanners fail if USB option selected Message-ID: <201304032249.r33MncTs010216@red.freebsd.org> Resent-Message-ID: <201304032250.r33Mo1C8078404@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 177621 >Category: ports >Synopsis: [PATCH] sane-backends-1.0.23_1 USB scanners fail if USB option selected >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 03 22:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Eric Krausser >Release: 9.1-RELEASE amd64 >Organization: private >Environment: FreeBSD hostname 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: This is critical: all USB scanners will fail when build *with* option USB! Please see: http://svnweb.freebsd.org/ports/head/graphics/sane-backends/Makefile?r1=310057&r2=315474 If you build sane-backends with option USB, then USB will be disabled: $ /usr/local/bin/sane-find-scanner # sane-find-scanner will now attempt to detect your scanner. ... # No USB scanners found. If you expected something different, make sure that # you have loaded a kernel driver for your USB host controller and have setup # the USB system correctly. See man sane-usb for details. # SANE has been built without libusb support. This may be a reason # for not detecting USB scanners. Read README for more details. >How-To-Repeat: Build with option USB an run `/usr/local/bin/sane-find-scanner`, it will tell you there is no libusb support build in. >Fix: Apply the attached patch. I guess one should add dependency to libusb, but since the last patch removed this i don't know the right way. Patch attached with submission follows: --- ./Makefile 2013-04-03 23:50:45.601761040 +0200 +++ /tmp/sane-backends/Makefile 2013-04-03 23:50:38.329773071 +0200 @@ -53,7 +53,7 @@ .include "Makefile.man" .include <bsd.port.pre.mk> -.if ${PORT_OPTIONS:MUSB} +.if !${PORT_OPTIONS:MUSB} CONFIGURE_ARGS+= --disable-libusb .endif >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304032249.r33MncTs010216>