Your message dated Thu, 13 Mar 2008 21:02:28 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#469855: fixed in nut 2.2.1-2.1
has caused the Debian Bug report #469855,
regarding postinst fails if udev is not running
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
469855: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469855
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: nut
Version: 2.2.1-2
Severity: serious
Tags: patch

Hello,

It seems that the nut postinst script errors out if udev is not running
at the time the script is run.  This creates problems in buildds or
chroots since udev is normally not started in those environments.  See,
for example, the i386 build log for collectd 4.3.0-2 at:
http://buildd.debian.org/fetch.cgi?pkg=collectd;ver=4.3.0-2;arch=i386;stamp=1204846772

The following patch below should fix this:

--- postinst    2008-02-08 10:13:24.000000000 -0500
+++ postinst.fixed      2008-03-07 09:38:46.000000000 -0500
@@ -19,8 +19,10 @@ case "$1" in
     chmod 770 /var/run/nut /var/lib/nut
 
     # restart udev to apply the USB rules to the already plugged devices
-    [ -x /etc/init.d/udev ] && pidof udevd > /dev/null \
-               && /usr/sbin/invoke-rc.d udev restart
+    # only if it's already running
+    if [ -x /etc/init.d/udev ] && pidof udevd > /dev/null; then
+        /usr/sbin/invoke-rc.d udev restart
+    fi
     ;;
 
   abort-upgrade)

Thanks,
--Joe

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



--- End Message ---
--- Begin Message ---
Source: nut
Source-Version: 2.2.1-2.1

We believe that the bug you reported is fixed in the latest version of
nut, which is due to be installed in the Debian FTP archive:

nut-cgi_2.2.1-2.1_i386.deb
  to pool/main/n/nut/nut-cgi_2.2.1-2.1_i386.deb
nut-dev_2.2.1-2.1_i386.deb
  to pool/main/n/nut/nut-dev_2.2.1-2.1_i386.deb
nut-hal-drivers_2.2.1-2.1_i386.deb
  to pool/main/n/nut/nut-hal-drivers_2.2.1-2.1_i386.deb
nut-snmp_2.2.1-2.1_i386.deb
  to pool/main/n/nut/nut-snmp_2.2.1-2.1_i386.deb
nut_2.2.1-2.1.diff.gz
  to pool/main/n/nut/nut_2.2.1-2.1.diff.gz
nut_2.2.1-2.1.dsc
  to pool/main/n/nut/nut_2.2.1-2.1.dsc
nut_2.2.1-2.1_i386.deb
  to pool/main/n/nut/nut_2.2.1-2.1_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joe Nahmias <[EMAIL PROTECTED]> (supplier of updated nut package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 09 Mar 2008 13:12:12 -0400
Source: nut
Binary: nut nut-cgi nut-snmp nut-dev nut-hal-drivers
Architecture: source i386
Version: 2.2.1-2.1
Distribution: unstable
Urgency: low
Maintainer: Arnaud Quette <[EMAIL PROTECTED]>
Changed-By: Joe Nahmias <[EMAIL PROTECTED]>
Description: 
 nut        - The core system of the nut - Network UPS Tools
 nut-cgi    - A web interface sub system for the nut - Network UPS Tools
 nut-dev    - Development files for NUT - Network UPS Tools
 nut-hal-drivers - HAL interface for NUT - Network UPS Tools
 nut-snmp   - A meta SNMP Driver subsystem for the nut - Network UPS Tools
Closes: 469855
Changes: 
 nut (2.2.1-2.1) unstable; urgency=low
 .
   * Non-maintainer upload.
   * Skip udev restart logic within chroots, closes: #469855.
Files: 
 a3a76821cbe2c9ccda1d01b08cecb7c4 911 admin optional nut_2.2.1-2.1.dsc
 c3f898a75c04dc01ae1af997c94ea301 37775 admin optional nut_2.2.1-2.1.diff.gz
 e1c58acbe5471fd4281d702c940848bf 1166946 admin optional nut_2.2.1-2.1_i386.deb
 05823d1587db6f1ea002793ae15995e4 144422 admin optional 
nut-cgi_2.2.1-2.1_i386.deb
 9edaef68cd1bcb05395572e218b42166 111876 admin optional 
nut-snmp_2.2.1-2.1_i386.deb
 763c47347e419bd10015360a0a95d72a 124166 admin optional 
nut-dev_2.2.1-2.1_i386.deb
 6817e144fdf6d108276463dd1aaf07fa 176298 admin optional 
nut-hal-drivers_2.2.1-2.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH1COnULacnzmLNx0RAlRxAJ4hTKxjU3dm1wEdKeMJdo8Ke+5NBACgrkeu
aHaE62kO8xuEetW2FbSNpWE=
=cGm0
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to