configure script from libhphoto2 says it needs libusb. Reproducible: Always Steps to Reproduce: 1. emerge -C libusb 2. emerge -1 libgphoto2 Actual Results: hecking for libusb to use... autodetect checking for LIBUSB... checking libusb config program... libusb-config checking for libusb-config... no configure: error: PKG_CONFIG_PATH=/usr/lib64/pkgconfig 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. Expected Results: Emerge the libgphoto2
Sorry for this. It happens if I have no cameras variable defined. Didn't try with some of them defined. Probably some USB cameras need this (logical, isn't it?).
@alonbl: You removed libusb, please re-add it.
Hello, Hmmm.... I removed it since Gentoo uses udev, the libusb is not needed for packages that use udev, the usb use flag was used for the hotplug stuff. People without this USE flag would have gotten this, so it is not my doing anyway... :) And now for the real issue... You should add --without-libusb to econf in order to make it work without libusb. Please notice that if you run the configure in libgphoto2_port, which is the one which produces the error you get: * 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 But maybe adding back the usb? >=dev-libs/libusb-0.1.8 (I don't believe the usbutils is needed). And add $(use_with usb libusb) to econf. Your choice.
hmm, what does udev and libusb have together? libgphoto2 uses no in kernel driver for accessing usb-cams, but userspace-drivers (with libusb). Sure libusb is needed.
OK. So add the dependency, but this time also $(use_with usb libusb).
Readded dependency to the ebuilds.
I guess you decided to include usb support in every configuration... It is fine for my configuration, but I am not sure that anyone will feel the same.
Yes, added it unconditionally. Ok, looking at what port types libgphoto2 supports? # gphoto2 --list-ports Gefundene Geräte: 6 Pfad Beschreibung ------------------------------------------------------------------------ ptpip: PTP/IP Connection serial:/dev/tts/0 Serieller Port 0 serial:/dev/tts/1 Serieller Port 1 serial:/dev/tts/2 Serieller Port 2 serial:/dev/tts/3 Serieller Port 3 usb: Universal Serial Bus And I don't think any is widely used besides USB. Is that related to CAMERAS setting? If yes and someone needs it you can write code for that, but it gonna be ugly, read media-tv/linuxtv-dvb-firmware or apps-misc/lirc if you really want. If no, you can perhaps readd usb? but I dont think it is worth.
Great! As long as you does it on purpose I am happy! Thanks.