Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85296 - www-apps/nut version 2.0.1 version bump required
Summary: www-apps/nut version 2.0.1 version bump required
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Robin Johnson
URL: http://eu1.networkupstools.org/source...
Whiteboard:
Keywords:
: 97423 101093 131492 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-14 19:36 UTC by Julien Biezemans
Modified: 2006-05-17 23:10 UTC (History)
15 users (show)

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


Attachments
Patch for version bump (nut-2.0.1.patch,450 bytes, patch)
2005-03-20 17:21 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
2.0.2 bump (nut-2.0.2.ebuild.diff,3.58 KB, patch)
2005-07-04 17:19 UTC, Julien Biezemans
Details | Diff
new 2.0.2 version bump (nut-2.0.2.patch,3.86 KB, patch)
2005-08-20 05:11 UTC, Niels Laukens
Details | Diff
new version dump 2.0.3-pre1 (nut-2.0.3_pre1.ebuild,3.10 KB, text/plain)
2005-08-29 04:57 UTC, SandMan
Details
new version dump 2.0.3-pre1 (nut-2.0.3_pre1.ebuild,3.10 KB, text/plain)
2005-08-29 04:57 UTC, SandMan
Details
Patch to disable extraneous syslog'ing in hidups (nut-usb-events.1.patch,883 bytes, patch)
2005-12-25 09:38 UTC, Jonathan Sailor
Details | Diff
2.0.3 ebuild (nut-2.0.3.ebuild,3.91 KB, text/plain)
2006-02-18 02:55 UTC, Andrew Kay
Details
nut 2.0.3 ebuild, with fixed driver path (nut-2.0.3.ebuild,3.11 KB, text/plain)
2006-02-26 07:47 UTC, Niels Laukens
Details
nut-2.0.3.ebuild (nut-2.0.3.ebuild,3.45 KB, text/plain)
2006-05-16 05:19 UTC, INODE64 Sistemas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Biezemans 2005-03-14 19:36:40 UTC
Nut 2.0.1 final release is out. Can you please add its ebuild to the portage?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Required as some major improvements/bug fixes were added.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-03-20 17:21:19 UTC
Created attachment 54007 [details, diff]
Patch for version bump

The attached patch allow the version bump, fixing src_uri variable.

Just as a side note.. isn't a bit confusing having nut in www-apps? it
shouldn't be in sys-power category, with other ups tools like apcupsd?
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-03-23 11:59:55 UTC
seemant asked me to add ciaranm to cc list
Comment 3 Ciaran McCreesh 2005-03-23 15:17:20 UTC
It'd probably be better in sys-power, yeah.
Comment 4 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-05-09 18:35:37 UTC
Re-assigning to Robin, seems to be the best bet for this.
Comment 5 david somers 2005-05-15 18:47:30 UTC
The ebuild for 2.0.1 (as per comment #1) needs a small addition to:

if use cgi
...
  insinto /etc/nut
  doins ${S}/conf/*.html || die "failed to copy html template files"
...
fi

It might also be worth adding some more einfo into the ebuild when doing the cgi goodies... its not entirely obvious that you need to:

create /etc/nut/hosts.conf 

When building the CGI applications, wouldn't it be an idea to add DEPEND=cgi? media-libs/gd

Also, upsset.cgi and upsimage.cgi aren't working for me at the moment... then send http response headers then drop the connection before the body :(

p.s. moving into sys-power is a very good idea.
Comment 6 Damien Thébault 2005-06-01 10:43:31 UTC
It would be great if nut should be moved to sys-power and upgraded to 2.0.1...

What is needed to do this?
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-06-29 15:08:22 UTC
*** Bug 97423 has been marked as a duplicate of this bug. ***
Comment 8 Julien Biezemans 2005-07-04 17:16:01 UTC
2.0.2 is out.

Additionnaly, another bug which is still NEW and should be easy to fix:
http://bugs.gentoo.org/show_bug.cgi?id=73074 . In short, libusb is required when
using the newhidups driver. Even if the workaround is easy, it would be nice to
fix it.
Comment 9 Julien Biezemans 2005-07-04 17:19:33 UTC
Created attachment 62634 [details, diff]
2.0.2 bump

The patch found in the duplicate bug report.
Comment 10 Carsten Lohrke (RETIRED) gentoo-dev 2005-08-02 07:15:18 UTC
*** Bug 101093 has been marked as a duplicate of this bug. ***
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-17 05:44:31 UTC
The way it uses webapp is broken, it doesn't install anything for webapp 
config to work with... 
Comment 12 Niels Laukens 2005-08-19 13:48:43 UTC
I get the following error when using the 2.0.2 patch:
emerge: there are no ebuilds to satisfy "virtual/snmp".

when I leave the snmp to the previous line (net-snmp) it compiles
Comment 13 Niels Laukens 2005-08-20 05:11:59 UTC
Created attachment 66391 [details, diff]
new 2.0.2 version bump

same as previous patch, with these changes:
* changed virtual/snmp back to net-analyzer/net-snmp  virtual/snmp doesn't
exist here
* changed the driver-path to /lib to solve bug #88832
Comment 14 SandMan 2005-08-29 04:57:34 UTC
Created attachment 67163 [details]
new version dump  2.0.3-pre1
Comment 15 SandMan 2005-08-29 04:57:54 UTC
Created attachment 67164 [details]
new version dump  2.0.3-pre1
Comment 16 Guillaume Castagnino 2005-09-24 05:59:45 UTC
Should add a pkg_preinst function to the ebuild with this :

pkg_preinst() {
    enewgroup nut 84
    enewuser nut 84 -1 /var/state/nut nut,tty
}

as asked in bug #99601

Notice, I also add nut user to tty group to avoid permission issues on serial
device (wich is owned by root:tty / 0660)
Comment 17 Jonathan Sailor 2005-12-25 09:36:32 UTC
To try and understand exactly what's going with NUT, I made an issue of all the current issues in bugzilla, most of which are in this bug. Perhaps it'll be useful as a summary to other people:

 - Version bump to 2.0.1 or 2.0.2 or 2.0.3-pre1
 - Move nut package from www-apps/ to sys-power/. See bug #111701
 - Fix some CGI stuff (I don't use NUT's CGI stuff, so I'll let somebody who does deal with that)
 - libusb dependency. See bug #73074
 - virtual/snmp dependency. 
 - Does NUT live in /lib and/sbin or in /usr? Where does libusb live? See bug #88832
 - NUT user should be enewuser'd

I'm not sure what the status of all of those is in the portage tree, in the proposed ebuilds/patches to this bug, or in other bugs for NUT.

I'd also like to throw in something else. On recent kernels, NUT's hidups gets a lot of USB events which it doesn't like to handle. It normally syslog's for those events, which can result in lots of clutter in the logs (i.e. 7 messages every 5 seconds), a la <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=160700>. I'm attaching a patch which changes upslogx() calls to upsdebugx() calls in the appropriate places.
Comment 18 Jonathan Sailor 2005-12-25 09:38:51 UTC
Created attachment 75508 [details, diff]
Patch to disable extraneous syslog'ing in hidups
Comment 19 Andreas Vinsander 2006-02-08 01:11:38 UTC
Bump, 2.0.3 is released upstream
Comment 20 Andrew Kay 2006-02-18 02:55:19 UTC
Created attachment 80074 [details]
2.0.3 ebuild
Comment 21 Andrew Kay 2006-02-18 02:59:02 UTC
Comment on attachment 80074 [details]
2.0.3 ebuild

bump to version 2.0.3. Added libusb via USE flag.
Comment 22 Niels Laukens 2006-02-26 07:47:02 UTC
new ebuild to fix bug #88832 : drivers should be on /lib, since they're needed to power off the UPS after all filesystems (incl /usr) are umounted

(also replaced leading spaces by tabs, because vim complained by marking those lines red)
Comment 23 Niels Laukens 2006-02-26 07:47:51 UTC
Created attachment 80768 [details]
nut 2.0.3 ebuild, with fixed driver path
Comment 24 Frederik Kunz 2006-04-12 04:31:45 UTC
Please bump the version in portage. It's been out two months now.
Comment 25 Jakub Moc (RETIRED) gentoo-dev 2006-04-27 12:16:51 UTC
*** Bug 131492 has been marked as a duplicate of this bug. ***
Comment 26 david somers 2006-05-16 04:31:24 UTC
I see that 2.0.0/2.0.1 has now made it into portage, and in sys-power too :-)... however, could you PLEASE get 2.0.3 in there too (since 2.0.1 is something like a year out-of-date).
Comment 27 INODE64 Sistemas 2006-05-16 05:19:34 UTC
Created attachment 86852 [details]
nut-2.0.3.ebuild

other ebuild
add support for ssl and fix uri
Comment 28 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-05-16 11:12:17 UTC
I'm working on it, chill.
I sent out a message to that fact yesterday - there's just too many bugs open against it to have caught everybody.

I've got to merge all of the ebuild bug items at the same time.
Comment 29 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-05-17 23:10:40 UTC
2.0.3 is in the tree now.

While working on this, it would have been useful if those submitting ebuilds had consolidated their work together, instead of having 3 different takes on the similar problem.