Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 676598 - sys-power/nut-2.7.4-r1: Clean up UPS driver build options
Summary: sys-power/nut-2.7.4-r1: Clean up UPS driver build options
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-27 20:42 UTC by Phil Stracchino (Unix Ronin)
Modified: 2019-01-28 15:17 UTC (History)
1 user (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 Phil Stracchino (Unix Ronin) 2019-01-27 20:42:56 UTC
The problem:

At present sys-power/nut supports 51 drivers, all of which are enabled by default.  This means either you build a lot of drivers you don't need, or you have a huge long list of drivers to turn off in /etc/portage/package.use.  It's messy and awkward, and realistically, nobody is ever going to need ALL of those drivers except for testing purposes.  Probably 99% of the time, at most two or three drivers will ever be needed in a given installation.

(Real-world example:  I've just installed it after replacing an APC core UPS with a Cyberpower; I experimented with usb_driver_snmp-ups, ups_driver_powerpanel, and ups_driver_usbhid-ups, and after testing the ONLY one I actually need is ups_driver_usbhis-ups.)


Suggested solution:

Change all of the drivers to default-disable, and add a ups_drivers_all flag to turn them all on just for the vanishingly rare case when yes, somebody REALLY DOES want ALL the drivers.  Then people can turn on just the few drivers they need instead of needing to turn everything else off in order not to build fifty drivers they don't need.