Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536310 - sys-apps/usbutils-008 should depend on virtual/libudev - ET_EXEC libusb-1.0.so.0,libudev.so.1,libc.so.6 /usr/bin/lsusb
Summary: sys-apps/usbutils-008 should depend on virtual/libudev - ET_EXEC libusb-1.0.s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-11 13:50 UTC by Stuart Shelton
Modified: 2015-02-21 20:25 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2015-01-11 13:50:31 UTC
sys-apps/usbutils-008 has an (undeclared) dependency on 'libudev >= 196'.  This is a blocker for embedded platforms and the like which are using, for example, busybox mdev in place of udev.

sys-apps/usbutils-007 has no libudev dependency.

Ideally, there'd be a patch to allow usbutils to continue to co-exist independently of udev, but at least the ebuild DEPENDS should capture this requirement.
Comment 1 El Goretto 2015-01-16 10:29:45 UTC
Hi,

Same issue here, upgrading from sys-apps/usbutils-007 to sys-apps/usbutils-008 breaks on servers using mdev (sys-apps/busybox).


Emerging (8 of 12) sys-apps/usbutils-008::gentoo
[...]
checking for LIBUSB... yes
checking for UDEV... no
configure: error: Package requirements (libudev >= 196) were not met:

No package 'libudev' found
[...]
Comment 2 Stuart Shelton 2015-02-21 02:07:09 UTC
For anyone it helps, I've worked-around the issue here:

https://github.com/srcshelton/gentoo-ebuilds/tree/master/sys-apps/usbutils

... by converting the ebuild to use git, and then cloning the usbutils repo and reverting the two problematic commits.  So far as I can tell, there are no adverse ramifications to this - udev isn't required.
Comment 3 Nikoli 2015-02-21 19:42:30 UTC
$ objdump -p /usr/bin/lsusb|grep NEEDED|sort
  NEEDED               libc.so.6
  NEEDED               libudev.so.1
  NEEDED               libusb-1.0.so.0

usbutils-008 $ grep libudev configure.ac names.c
configure.ac:PKG_CHECK_MODULES(UDEV, libudev >= 196)
names.c:#include <libudev.h>

So why ebuild does not have virtual/libudev DEPEND and RDEPEND?
Comment 4 Tim Harder gentoo-dev 2015-02-21 20:25:46 UTC
Fixed in 008-r1. Someone should ask upstream to conditionalize their udev support or provide them a patch if you're interested in that.