sys-fs/mtpfs-1.1 fails to emerge when dev-libs/libusb:0 is not installed the package-config file from dev-libs/libusb:1 is versionized so sys-fs/mtpfs-1.1 fails. Reproducible: Always Steps to Reproduce: 1. emerge sys-fs/mtpfs-1.1 with only dev-libs/libusb:1 installed Actual Results: checking for MTP... no configure: error: Package requirements (libmtp >= 1.1.0) were not met: Package libusb was not found in the pkg-config search path. Perhaps you should add the directory containing `libusb.pc' to the PKG_CONFIG_PATH environment variable Package 'libusb', required by 'libmtp', not found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables MTP_CFLAGS and MTP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. Expected Results: sys-fs/mtpfs-1.1 should find /usr/lib/pkgconfig/libusb.pc ln -s /usr/lib/pkgconfig/libusb-1.0.pc /usr/lib/pkgconfig/libusb.pc is an easy workaround
Created attachment 311249 [details] config.log
Created attachment 311251 [details] emerge --info =sys-fs/mtpfs-1.1
It's libmtp that depends on libusb, do you have it installed? If so which version
media-libs/libmtp-1.1.2 is installed. which depends on virtual/libusb:1
I've checked mtpfs-1.1 and it doesn't have any direct usage of libusb. However, the ebuild is missing dependency on virtual/pkgconfig PKG_CHECK_MODULES is widely used in configure.ac
The original reporter might have broken pkg-config installation, to recover: # emerge -C virtual/pkgconfig dev-util/pkgconfig (Yes, both.) # emerge -1 virtual/pkgconfig # emerge -v mtpfs With that said, I've added the missing depend in the ebuild now