Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 323081

Summary: sys-fs/udev-149 configure: error: Package requirements (usbutils >= 0.82) were not met:
Product: Gentoo Linux Reporter: MT <toffanin.mauro>
Component: New packagesAssignee: udev maintainers <udev-bugs>
Status: RESOLVED NEEDINFO    
Severity: normal CC: base-system
Priority: High    
Version: 10.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
package.info
system.info
config.log
usbutils-0.87-r1.ebuild.patch
usbutils-0.87-r1.ebuild.patch (alternative solution without sed)

Description MT 2010-06-07 14:04:04 UTC
I get this configure error after enabling the USE 'extras':

checking for LIBUSB... yes
checking for USBUTILS... configure: error: Package requirements (usbutils >= 0.82) were not met:

No package 'usbutils' 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 USBUTILS_CFLAGS
and USBUTILS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

---

Attached there are the complete build log and package/system info.
Comment 1 MT 2010-06-07 14:11:15 UTC
Created attachment 234427 [details]
build.log
Comment 2 MT 2010-06-07 14:11:27 UTC
Created attachment 234429 [details]
package.info
Comment 3 MT 2010-06-07 14:11:40 UTC
Created attachment 234431 [details]
system.info
Comment 4 MT 2010-06-07 14:16:47 UTC
I forgot to mention that I have sys-apps/usbutils correctly installed and
working:

# emerge -pqv sys-apps/usbutils
[ebuild   R   ] sys-apps/usbutils-0.86-r2  USE="zlib -network-cron"

# # qlist usbutils
/usr/bin/usb-devices
/usr/bin/usbmodules
/usr/sbin/lsusb
/usr/sbin/update-usbids
/usr/share/man/man1/usb-devices.1.bz2
/usr/share/man/man8/lsusb.8.bz2
/usr/share/misc/usb.ids
/usr/share/misc/usb.ids.gz
/usr/share/misc/pkgconfig/usbutils.pc
/usr/share/doc/usbutils-0.86-r2/AUTHORS.bz2
/usr/share/doc/usbutils-0.86-r2/ChangeLog.bz2
/usr/share/doc/usbutils-0.86-r2/NEWS.bz2
/usr/share/doc/usbutils-0.86-r2/README.bz2
Comment 5 MT 2010-06-09 16:54:59 UTC
Created attachment 234737 [details]
config.log
Comment 6 MT 2010-06-17 11:47:34 UTC
After some debugging I have found the problem: usbutils.pc was installed into /usr/share/misc/pkgconfig instead of /usr/share/pkgconfig, so it wasn't picked up by pkgconfig (see bug #287206).

This happened because the 'sed' command inside the sys-apps/usbutils ebuild was not applied (and I don't know why) and a missing 'die' statement didn't showed the problem at all.

After updating my box, the issue is gone by itself and the 'sed' command is correctly applied as expected; however attached there is an ebuild patch for the usbutils package that adds the missing 'die' statement, just to prevent the problem ('sed' binary broken? missing 'sed' dependencies?) occurring in the future for other final users.
Comment 7 MT 2010-06-17 11:50:38 UTC
Created attachment 235693 [details, diff]
usbutils-0.87-r1.ebuild.patch
Comment 8 MT 2010-06-17 12:00:47 UTC
Created attachment 235695 [details, diff]
usbutils-0.87-r1.ebuild.patch (alternative solution without sed)

note for Mike Frysinger (vapier@gentoo.org): this is an alternative solution of the bug #287206 without the need of the 'sed' command; it fixes the problem one for all, is shorter and more portable as requires less ebuild maintenance, so if you judge it a valuable alternative feel free to use it.

I hope it will be useful.
Toffanin
Comment 9 SpanKY gentoo-dev 2010-06-19 23:01:42 UTC
th .pc file is installed just fine on my system, and i imagine more people would be complaining than just you if usbutils broke udev in this way

$ qlop -l usbutils | tail -1
Sat Jun 19 18:58:16 2010 >>> sys-apps/usbutils-0.87
$ qlist -e usbutils | grep pc
/usr/share/pkgconfig/usbutils.pc