Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138389 - please stabilize sys-power/nut-2.0.3-r1
Summary: please stabilize sys-power/nut-2.0.3-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-28 12:41 UTC by Robin Johnson
Modified: 2006-09-28 13:22 UTC (History)
3 users (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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-06-28 12:41:01 UTC
As per subject line. Would arches in CC please stabilize sys-power/nut-2.0.3-r1.
I've personally tested the APC driver and the USB HIDUPS driver, on both powerpc and x86.

It's not really a package that can be src_test()d, so just check that it compiles 100% for you.

Feel free to try to set it up for your UPS if you have one.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-06-28 12:42:32 UTC
Arches: please stabilize this package (I don't know if bugzie sent out an email on this before).
Comment 2 Brent Baude (RETIRED) gentoo-dev 2006-06-28 15:01:05 UTC
ppc64 done, thanks
Comment 3 Jason Wever (RETIRED) gentoo-dev 2006-06-28 16:13:45 UTC
stable on SPARC
Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2006-06-30 03:26:33 UTC
As said on the bug, in x86 compiles and calling the executable file does not report Segmentation fault.
Comment 5 Lars Weiler (RETIRED) gentoo-dev 2006-07-02 10:09:23 UTC
Compiles on ppc, so stable.
Comment 6 Michael Weyershäuser 2006-07-02 22:07:27 UTC
Compiles fine on amd64, though I can't say anything towards functionality since I don't have an UPS to test it...
Comment 7 Simon Stelling (RETIRED) gentoo-dev 2006-07-03 00:21:39 UTC
stable on amd64
Comment 8 Joshua Jackson (RETIRED) gentoo-dev 2006-07-06 21:36:35 UTC
x86 is done again ^.^
Comment 9 Ng, Wey-Han 2006-07-09 13:50:30 UTC
Seems to have broke on my system. I know I can change the owner and permission or run it as root but the package should have something to help configure. At the very least, an einfo to suggest how to go about it as well as some recomendation.


When I try to start upsdrv I get:

 * Starting UPS drivers ...
Network UPS Tools - UPS driver controller 2.0.3
Network UPS Tools - Generic UPS driver 1.31 (2.0.3)
UPS type: Generic RUPS model

Unable to open /dev/ttyS0: Permission denied

  Current user id: nut (84)
Serial port owner: root (0)
Serial port group: tty (5)
     Mode of port: 0660

Things to try:

 - Use another port (with the right permissions)

 - Fix the port owner/group or permissions on this port

 - Run this driver as another user (upsdrvctl -u or 'user=...' in ups.conf).
   See upsdrvctl(8) and ups.conf(5).

Fatal error: unusable configuration
Driver failed to start (exit status=1)
 * Failed to start UPS drivers!                                           [ !! ]
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-07-09 15:49:34 UTC
weyhan: put your 'nut' user in the tty group.
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-07-09 15:51:11 UTC
weyhan: if you post and expect a response, please remember to add yourself to the CC list.
Comment 12 Ng, Wey-Han 2006-07-09 20:19:07 UTC
(In reply to comment #11)
> weyhan: if you post and expect a response, please remember to add yourself to
> the CC list.

Sorry, it was 5am over here when I post.

Anyway, no. I have not added nut in my tty group when I hit that error. But my point is that the emerge did not even turn up an einfo to advice user to do so. Besides, I feel that adding nut to tty group should be done in the emerge process.  

Sorry that I seem like I am looking for support but I'm really saying that the nut ebuild should have handle this correctly.
Comment 13 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-07-09 21:01:20 UTC
weyhan: No, it depends entirely on what UPS driver you are using as to what the correct groups for nut are, and this is supplemented by the normal Gentoo documentation as well as the upstream NUT documentation.

For a purely remote NUT installation (eg some other machine is monitoring the UPS) nothing is needed.

For a driver that uses a serial port, the tty group (or messing with udev rules) is needed. For some USB drivers, udev rules for /dev/bus/usb are needed. For SNMP drivers, nothing is needed. There are other cases as well.
Comment 14 Ng, Wey-Han 2006-07-09 21:25:44 UTC
Robin,

Okay, I get you're point. But how about a small einfo?

In my case, nut was working fine until I've upgraded the system over the weekend and then nut don't work anymore. It would have save me hours trying to figure how to fix it.
Comment 15 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-07-09 22:12:20 UTC
what version were you using before? was it pre the addition of a NUT user?
Comment 16 Ng, Wey-Han 2006-07-09 23:28:43 UTC
Yes. The exact version was nut-2.0.0
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-07-21 21:49:01 UTC
weyhan: I've added a warning and set things up suitably.

alpha: please compile-test and mark stable.
Comment 18 Ng, Wey-Han 2006-07-21 23:14:15 UTC
Robin,

Great work!
Comment 19 Andrew Kay 2006-09-17 20:49:39 UTC
Please close. nut-2.0.3-r1 stable on all platforms except alpha & x86-fbsd.
Comment 20 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-09-17 21:40:37 UTC
Andrew: no. alpha needs to mark 2.0.3-r1 stable, so that I can remove the old versions without removing the only ones that alpha has marked as stable.

alpha: please compile-test and mark stable.
Comment 21 Fernando J. Pereda (RETIRED) gentoo-dev 2006-09-28 00:34:16 UTC
Ok so I just marked sys-power/nut-2.0.4-r1 stable on Alpha as per bug #148013. Sorry for the delay.

- ferdy
Comment 22 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-09-28 13:22:10 UTC
alpha completed, and this bug is superseeded by stabilization of 2.0.4-r1