Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598619 - sys-power/nut: Add USE_EXPAND support for UPS_DRIVERS
Summary: sys-power/nut: Add USE_EXPAND support for UPS_DRIVERS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-10-31 13:04 UTC by Daniel Harding
Modified: 2023-06-17 03:17 UTC (History)
7 users (show)

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


Attachments
Add USE_EXPAND support for USB_DRIVERS (usb_drivers_use_expand.patch,11.70 KB, patch)
2016-10-31 13:04 UTC, Daniel Harding
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Harding 2016-10-31 13:04:13 UTC
Created attachment 451979 [details, diff]
Add USE_EXPAND support for USB_DRIVERS

When bug 480664 was fixed, USE_EXPAND support was not added for the ups_drivers_* USE flags.  This makes it annoying to build with a single driver, as most drivers are built by default, and currently the only way to turn them off is to add -ups_drivers_* for each one to package.use.

I know that touching USE_EXPAND requires permission from the -dev list, but I've gone ahead and attached a patch which implements adding UPS_DRIVERS to USE_EXPAND were that to be approved.
Comment 1 Sven 2017-01-22 21:07:19 UTC
Pretty please, with sugar on top, add UPS_DRIVERS to USE_EXPAND.
Comment 2 Thomas Capricelli 2021-10-29 02:13:05 UTC
Meanwhile, something like this in /etc/portage/package.use is ok:

sys-power/nut -ups_drivers_* ups_drivers_usbhid-ups
Comment 3 Michael Yagliyan 2021-12-12 03:34:27 UTC
Having a proper USE_EXPAND for this would be great.  It would also be great if none of the drivers were enabled by default (or at least would only enable the specified drivers if UPS_DRIVERS was set).
Comment 4 Larry the Git Cow gentoo-dev 2023-06-17 03:15:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aea0f99f970c391e3daf4f98d0b6a2dc58fc039b

commit aea0f99f970c391e3daf4f98d0b6a2dc58fc039b
Author:     Francisco Javier Félix <web@inode64.com>
AuthorDate: 2023-06-16 16:14:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-17 03:13:49 +0000

    sys-power/nut: add 2.8.0, various enhancements
    
    I've recently made a comprehensive update to the ebuild of sys-power/nut:
    The way drivers are activated has been altered - instead of using a driver list, which
    can be hard to maintain when new ones are added, we now activate them based on the
    connection type (serial, USB, XML, IPMI, Modbus, etc).
    
    This simplification not only streamlines the installation process but also resolves
    dependency issues associated with activating a driver and its corresponding unactivated connection.
    
    The updates align with the latest Gentoo specifications and are summarized below:
    
    Improvements:
    *    Removed unused libnsl
    *    Removed outdated hotplug
    *    Utilized EAPI=8
    *    Default use of libusb-1
    *    Added connections for GPIO, i2c, and Modbus
    *    Configuration parameters required per connection type
    *    Fixed the creation of PID in /run/nut
    *    Removed configurations no longer necessary for nut-2.8.0 or newer
    *    Creation of man pages
    *    Added a flag for documentation
    *    Utilized tmpfile for creating temporary directories
    *    Added Q5t5 monitor (nut-9999)
    *    Disabled Python2
    *    Added Python3 library
    *    Message for the optional function of sys-apps/util-linux[logger, tty-helpers]
    *    Added configuration for Avahi
    *    Added a flag for systemd (nut-9999)
    
    TODO: (in next version)
    *    nut-scanner is not working
    *    /etc/init.d/upslog requires parameters of SAI and log file
    
    Please note that I have tested different SAI drivers, but only with USB and SNMP connections.
    
    Any feedback or further testing on these updates would be highly appreciated.
    
    Closes: https://bugs.gentoo.org/836776
    Closes: https://bugs.gentoo.org/736804
    Closes: https://bugs.gentoo.org/598619
    Closes: https://bugs.gentoo.org/636402
    Closes: https://bugs.gentoo.org/862543
    Closes: https://bugs.gentoo.org/852287
    Closes: https://bugs.gentoo.org/676598
    Closes: https://bugs.gentoo.org/808675
    Closes: https://bugs.gentoo.org/771291
    Closes: https://bugs.gentoo.org/714930
    Closes: https://bugs.gentoo.org/695148
    Closes: https://bugs.gentoo.org/641144
    Closes: https://bugs.gentoo.org/670132
    Closes: https://bugs.gentoo.org/642618
    Closes: https://bugs.gentoo.org/544250
    Closes: https://bugs.gentoo.org/526328
    Package-Manager: Portage-3.0.45.3, pkgcheck-0.10.24
    Signed-off-by: Fco Javier Felix <ffelix@inode64.com>
    Closes: https://github.com/gentoo/gentoo/pull/31486
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-power/nut/Manifest                             |   1 +
 sys-power/nut/files/nut-2.6.5-init.d-upsmon        |   2 +-
 .../files/nut-2.8.0-fix-man-page-generation.patch  |  64 +++++
 sys-power/nut/files/nut-2.8.0-init.d-upsd          |  37 +++
 sys-power/nut/files/nut.powerfail.initd            |   1 -
 sys-power/nut/files/systemd_notify.path            |  50 ++++
 sys-power/nut/metadata.xml                         |  14 +-
 sys-power/nut/nut-2.8.0.ebuild                     | 222 +++++++++++++++++
 sys-power/nut/nut-9999.ebuild                      | 266 +++++++++++++++++++++
 9 files changed, 654 insertions(+), 3 deletions(-)