Created attachment 355710 [details, diff] The patch which declares IUSES for ups drivers in nut The sys-power/nut ebuilds depends on NUT_DRIVERS environment variable but doesn't declare the set of IUSE's (making it impossibly to automatically rebuild the package when the variable changes). This also makes users unaware of its existence because it is not shown in eix and emerge -pv outputs. The NUT_DRIVERS variable serves the same purpose for sys-power/nut as VIDEO_DRIVERS for x11-base/xorg-drivers. I suggest: 1. rename NUT_DRIVERS to UPS_DRIVERS, the latter reads more generic system-wide. 2. include UPS_DRIVERS to USE_EXPAND. This would require discussion on gentoo-dev@gentoo.org. 3. declare these IUSES in the ebuild. The latter (without renaming NUT_DRIVERS to UPS_DRIVERS) is done in the patch I am attaching to this bug.
Sorry about many typos. Of course I meant VIDEO_CARDS, not VIDEO_DRIVERS.
Created attachment 355928 [details, diff] Similar patch for nut-2.6.5-r1.ebuild
InCVS, with UPS_DRIVERS, but locally defined.
Just wondering why this was done locally and not as a USE_EXPAND? It makes it a little bit unwieldy when you want to, for example, disable all usb drivers. Instead of make.conf: UPS_DRIVERS="-usbhid-ups -bcmxcp_usb -tripplite_usb -blazer_usb -richcomm_usb -riello_usb -nutdrv_qx" You end up with package.use: sys-power/nut -ups_drivers_usbhid-ups -ups_drivers_bcmxcp_usb -ups_drivers_tripplite_usb -ups_drivers_blazer_usb -ups_drivers_richcomm_usb -ups_drivers_riello_usb -ups_drivers_nutdrv_qx
saintdev: because I wanted it to be working and tested before making it global via USE_EXPAND, because that means asking all of the -dev list for USE_EXPAND permission ;-). I did name it ups_drivers_* on purpose, for when USE_EXPAND is ready.
Awesome! I was hoping that was the plan. Thanks for the quick response.
Please add USE_EXPAND support. Disabling, say, serial drivers is quite troublesome via USEs (as already was mentioned by Nathan).