Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103132 - UPS: dev-libs/libusb should be in /lib, not in /usr/lib
Summary: UPS: dev-libs/libusb should be in /lib, not in /usr/lib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 88832
  Show dependency tree
 
Reported: 2005-08-20 04:55 UTC by Niels Laukens
Modified: 2007-04-10 09:46 UTC (History)
3 users (show)

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


Attachments
patch to change the install path (libusb-0.1.10a.ebuild.diff,558 bytes, patch)
2005-08-20 04:57 UTC, Niels Laukens
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Niels Laukens 2005-08-20 04:55:48 UTC
libusb is required by the newhidups driver from Network UPS Tools.

When the power fails and the system is automaticaly shutting down, the last
thing it does is signal the UPS to kill the power. To do this, newhidups needs
the libusb library.

Right now, libusb installs itself in /usr/lib, however, on most systems /usr is
a different partition and is already unmounted.

A working solution is to install libusb in /lib, either always, or depending on
a (new) USE-flag "ups"

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Niels Laukens 2005-08-20 04:57:51 UTC
Created attachment 66389 [details, diff]
patch to change the install path

this works here, but it might be an ugly hack... I'm no ebuild-genious
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2006-02-11 11:04:34 UTC
interesting. debian puts it in /lib and suse puts it in /usr/lib.

i hadn't come across anything as essential that depended on libusb like UPS monitoring utilities.  

Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-05-17 22:45:05 UTC
liquidx: I'm just commiting the new version of nut now, and it has several USB drivers that need libusb in /lib for systems that have a seperate /usr.

The only change you need to make is adding --libdir=/$(get_libdir) to the configure call.

If you have no objections, I can commit it myself as well.
Comment 4 Sean Mahrt 2007-02-25 23:42:23 UTC
Has this been committed?  Waiting for my UPS to work at shutdown properly...

(In reply to comment #3)
> liquidx: I'm just commiting the new version of nut now, and it has several USB
> drivers that need libusb in /lib for systems that have a seperate /usr.
> The only change you need to make is adding --libdir=/$(get_libdir) to the
> configure call.
> If you have no objections, I can commit it myself as well.

Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-04-09 11:32:54 UTC
*** Bug 173889 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-04-09 11:34:01 UTC
@robbat2 - can you do it? It also breaks media-video/linux-uvc and probably other stuff.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-04-10 09:46:58 UTC
fixed in cvs. sorry that liquidx dropped this.