Christoph Egger píše v Po 08. 10. 2012 v 15:05 -0700: > Your package failed to build on the kfreebsd-* buildds: > > In file included from ./src/natfeat/nf_objs.cpp:62:0: > ./src/natfeat/usbhost.h:29:31: fatal error: libusb-1.0/libusb.h: No such file > or directory > compilation terminated. > make[1]: *** [obj_x86_64/nf_objs.o] Error 1
The following patch should help but I'd like to see a cleaner solution: --- configure.ac 24 Sep 2012 19:40:49 -0000 1.62 +++ configure.ac 9 Oct 2012 06:35:35 -0000 @@ -1539,18 +1539,19 @@ WITH_USBHOST="no" if test "x$WANT_USBHOST" = "xyes"; then # Search using pkg-config - if test "x$PKG_CONFIG" != "x"; then - PKG_CHECK_MODULES([LIBUSB], [libusb-1.0], [WITH_USBHOST="yes"], [WITH_USBHOST="no"]) - fi + # disabled because it is not safe on Debian/kfreebsd + # if test "x$PKG_CONFIG" != "x"; then + # PKG_CHECK_MODULES([LIBUSB], [libusb-1.0], [WITH_USBHOST="yes"], [WITH_USBHOST="no"]) + # fi # Search the library and headers directly - if test "x$WITH_USBHOST" = "xno"; then + # if test "x$WITH_USBHOST" = "xno"; then AC_CHECK_HEADER(libusb-1.0/libusb.h, [WITH_USBHOST="yes"], [WITH_USBHOST="no"]) if test "x$WITH_USBHOST" = "xyes"; then AC_CHECK_LIB(usb-1.0, libusb_init, [], [WITH_USBHOST="no"]) LIBUSB_LIBS="-lusb-1.0" fi - fi + # fi if test "x$WITH_USBHOST" = "xno"; then AC_MSG_WARN([libusb is missing, USB NF disabled]) Petr -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org