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.
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
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.
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.
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.
*** Bug 173889 has been marked as a duplicate of this bug. ***
@robbat2 - can you do it? It also breaks media-video/linux-uvc and probably other stuff.
fixed in cvs. sorry that liquidx dropped this.