Subject: pkg/36619: devel/libgphoto2 fails to build on Solaris 10
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <raymond.meyer@rambler.ru>
List: pkgsrc-bugs
Date: 07/09/2007 10:25:00
>Number:         36619
>Category:       pkg
>Synopsis:       devel/libgphoto2 fails to build on Solaris 10
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 09 10:25:00 +0000 2007
>Originator:     raymond
>Release:        
>Organization:
>Environment:
SunOS e450 5.10 Generic_118833-33 sun4u sparc SUNW,Ultra-4
>Description:
During configure stage I get the following error:

checking for libusb-config... no
configure: error:
PKG_CONFIG_PATH=
LIBUSB_LIBS=
LIBUSB_CFLAGS=

* Fatal: libgphoto2 port access library by default requires libusb >= 0.1.5 to build.
*        You must explicitly disable libusb to build libgphoto2_port without it.
*
* Possible solutions:
*   - call configure with --with-libusb=no or --without-libusb
*   - set PKG_CONFIG_PATH to adequate value
*   - call configure with LIBUSB_LIBS=.. and LIBUSB_CFLAGS=..
*   - call configure with one of the --with-libusb parameters
*   - get libusb and install it

configure: error: ./configure failed for libgphoto2_port
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/devel/libgphoto2

>How-To-Repeat:

>Fix:
Modify Makefile to pass --without-libusb to configure script

[root@e450] diff -u Makefile.orig Makefile
--- Makefile.orig       Mon Jul  9 11:10:11 2007
+++ Makefile    Mon Jul  9 11:10:34 2007
@@ -23,6 +23,7 @@
 # Keep this in sync with buildlink3.mk!
 .if ${OPSYS} == "SunOS"
 PLIST_SUBST+=          HAVE_LIBUSB="@comment "
+CONFIGURE_ARGS+=        --without-libusb
 .else
 .include "../../devel/libusb/buildlink3.mk"
 PLIST_SUBST+=          HAVE_LIBUSB=""