Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342529 - sys-apps/usbutils-0.91: /usr/bin/usbmodules relies on /usr/sbin/lsusb
Summary: sys-apps/usbutils-0.91: /usr/bin/usbmodules relies on /usr/sbin/lsusb
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://thread.gmane.org/gmane.linux.u...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-24 20:44 UTC by Samuli Suominen (RETIRED)
Modified: 2010-11-19 09:58 UTC (History)
0 users

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 Samuli Suominen (RETIRED) gentoo-dev 2010-10-24 20:44:13 UTC
Because lsusb is installed to sbin, and usbmodules to bin, it fails as normal user.

[ .. ]

>>> /usr/bin/usb-devices
>>> /usr/bin/usbmodules
>>> /usr/bin/usbhid-dump
--- /usr/sbin/
>>> /usr/sbin/lsusb

[ .. ]

$ usbmodules 
/usr/bin/usbmodules: line 53: lsusb: command not found
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-10-24 20:46:54 UTC
I've once in past requested that lspci should be moved from /usr/sbin to /usr/bin like Debian does it but that never happened.
I'd like to renew that request now because lsusb is usable as normal user too:

$ /usr/sbin/lsusb 
Bus 001 Device 004: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 046d:c050 Logitech, Inc. RX 250 Optical Mouse
Bus 002 Device 003: ID 046d:c315 Logitech, Inc. Classic New Touch Keyboard
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-11-17 14:39:50 UTC
Upstream applied the patch to move into /usr/bin.   I don't think it's worth to backport this to 0.91, we'll get it with next version, closing as UPSTREAM

<quote>

On Mon, Oct 25, 2010 at 03:09:21AM -0400, Mike Frysinger wrote:
> > This program may easily run as non-root, so no need to keep it in sbin.
> > 
> > Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Applied, thanks.
greg k-h

</quote>
Comment 3 SpanKY gentoo-dev 2010-11-19 09:58:20 UTC
i want libusb-1 support in usbutils-0.91, so i might as well merge this patch too since i need to regen autotools anyways.  who knows when 0.92 will be out, and the package is tiny to build/install.