Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 323081 - sys-fs/udev-149 configure: error: Package requirements (usbutils >= 0.82) were not met:
Summary: sys-fs/udev-149 configure: error: Package requirements (usbutils >= 0.82) wer...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-07 14:04 UTC by MT
Modified: 2010-08-14 00:42 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,8.25 KB, text/plain)
2010-06-07 14:11 UTC, MT
Details
package.info (package.info,6.24 KB, text/plain)
2010-06-07 14:11 UTC, MT
Details
system.info (system.info,5.55 KB, text/plain)
2010-06-07 14:11 UTC, MT
Details
config.log (config.log,30.66 KB, text/plain)
2010-06-09 16:54 UTC, MT
Details
usbutils-0.87-r1.ebuild.patch (usbutils-0.87-r1.ebuild.patch_,674 bytes, patch)
2010-06-17 11:50 UTC, MT
Details | Diff
usbutils-0.87-r1.ebuild.patch (alternative solution without sed) (usbutils-0.87-r1.ebuild.patch,970 bytes, patch)
2010-06-17 12:00 UTC, MT
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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