Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415253 - sys-fs/mtpfs-1.1 is missing DEPEND for virtual/pkgconfig
Summary: sys-fs/mtpfs-1.1 is missing DEPEND for virtual/pkgconfig
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Kacper Kowalik (Xarthisius) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-09 15:43 UTC by Boris Petersen
Modified: 2012-05-24 02:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log (config.log,12.23 KB, text/plain)
2012-05-09 15:47 UTC, Boris Petersen
Details
emerge --info =sys-fs/mtpfs-1.1 (info,6.16 KB, text/plain)
2012-05-09 15:48 UTC, Boris Petersen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Petersen 2012-05-09 15:43:06 UTC
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
Comment 1 Boris Petersen 2012-05-09 15:47:01 UTC
Created attachment 311249 [details]
config.log
Comment 2 Boris Petersen 2012-05-09 15:48:34 UTC
Created attachment 311251 [details]
emerge --info =sys-fs/mtpfs-1.1
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-05-10 08:39:28 UTC
It's libmtp that depends on libusb, do you have it installed? If so which version
Comment 4 Boris Petersen 2012-05-10 11:08:04 UTC
media-libs/libmtp-1.1.2 is installed. which depends on virtual/libusb:1
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-05-24 02:44:01 UTC
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
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-05-24 02:47:31 UTC
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