From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Apr 3 22:50:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 68624C62 for ; Wed, 3 Apr 2013 22:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 4B0ED647 for ; Wed, 3 Apr 2013 22:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r33Mo1Kw078405 for ; Wed, 3 Apr 2013 22:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r33Mo1C8078404; Wed, 3 Apr 2013 22:50:01 GMT (envelope-from gnats) Resent-Date: Wed, 3 Apr 2013 22:50:01 GMT Resent-Message-Id: <201304032250.r33Mo1C8078404@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eric Krausser Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CA44EC5A for ; Wed, 3 Apr 2013 22:49:39 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id BA6EA642 for ; Wed, 3 Apr 2013 22:49:39 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r33MncMq010217 for ; Wed, 3 Apr 2013 22:49:38 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r33MncTs010216; Wed, 3 Apr 2013 22:49:38 GMT (envelope-from nobody) Message-Id: <201304032249.r33MncTs010216@red.freebsd.org> Date: Wed, 3 Apr 2013 22:49:38 GMT From: Eric Krausser To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/177621: [PATCH] sane-backends-1.0.23_1 USB scanners fail if USB option selected X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Apr 2013 22:50:01 -0000 >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 -.if ${PORT_OPTIONS:MUSB} +.if !${PORT_OPTIONS:MUSB} CONFIGURE_ARGS+= --disable-libusb .endif >Release-Note: >Audit-Trail: >Unformatted: