Your message dated Sat, 25 Apr 2009 13:02:22 +0000
with message-id <[email protected]>
and subject line Bug#522043: fixed in laptop-mode-tools 1.48-1
has caused the Debian Bug report #522043,
regarding recent udevinfo returns version differently -> no awk required
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.)


-- 
522043: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522043
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: laptop-mode-tools
Version: 1.47-1
Severity: important
Tags: patch

Hello, this is what udevinfo is returning for me:

$ udevinfo -V
the program '/bin/bash' called 'udevinfo', it should use 'udevadm info 
<options>', this will stop working in a future release
140

The warning goes to stderr, hence

$ VERSION=`udevinfo -V`
the program '/bin/bash' called 'udevinfo', it should use 'udevadm info 
<options>', this will stop working in a future release
$ echo $VERSION
140

Any awk magic that is applied to parse out the version number, as it is done in 
the current versio it is, is consequently rather desastrous, the VERSION 
variable is then empty. Here my suggestion:


--- /usr/share/laptop-mode-tools/modules/hdparm.orig    2009-04-11 
11:57:34.632353805 +0200
+++ /usr/share/laptop-mode-tools/modules/hdparm 2009-04-11 12:04:54.584002679 
+0200
@@ -132,7 +132,11 @@
 HAVE_UDEVINFO=0
 if [ -x "$(which udevinfo 2> /dev/null)" ] ; then
        UDEVVERSION=$(udevinfo -V | awk '{ print $3; }')
-       if [ "$UDEVVERSION" -gt 70 ] ; then
+       if [ -z "$UDEVVERSION" ]; then
+               # newer versions print the version only
+               UDEVVERSION=$(udevinfo -V)
+       fi
+       if [ -n "$UDEVVERSION" -a "$UDEVVERSION" -gt 70 ] ; then
                HAVE_UDEVINFO=1
        else
                $LM_VERBOSE && echo "udevinfo present but version not > 070, 
not using udev" >> $OUTPUT


Thanks and regards

Steffen



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

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

Versions of packages laptop-mode-tools depends on:
ii  lsb-base                      3.2-22     Linux Standard Base 3.2 init scrip
ii  psmisc                        22.6-1     Utilities that use the proc filesy
ii  util-linux                    2.13.1.1-1 Miscellaneous system utilities

Versions of packages laptop-mode-tools recommends:
ii  acpid        1.0.8-7                     Utilities for using ACPI power man
ii  ethtool      6+20090307-1                display or change Ethernet device 
ii  hal          0.5.12~git20090406.46dc48-1 Hardware Abstraction Layer
ii  hdparm       9.12-2                      tune hard disk parameters for high
ii  sdparm       1.02-1                      Output and modify SCSI device para

laptop-mode-tools suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: laptop-mode-tools
Source-Version: 1.48-1

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

laptop-mode-tools_1.48-1.diff.gz
  to pool/main/l/laptop-mode-tools/laptop-mode-tools_1.48-1.diff.gz
laptop-mode-tools_1.48-1.dsc
  to pool/main/l/laptop-mode-tools/laptop-mode-tools_1.48-1.dsc
laptop-mode-tools_1.48-1_all.deb
  to pool/main/l/laptop-mode-tools/laptop-mode-tools_1.48-1_all.deb
laptop-mode-tools_1.48.orig.tar.gz
  to pool/main/l/laptop-mode-tools/laptop-mode-tools_1.48.orig.tar.gz



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.
Ritesh Raj Sarraf <[email protected]> (supplier of updated laptop-mode-tools 
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.8
Date: Sat, 25 Apr 2009 18:01:51 +0530
Source: laptop-mode-tools
Binary: laptop-mode-tools
Architecture: source all
Version: 1.48-1
Distribution: unstable
Urgency: low
Maintainer: Ritesh Raj Sarraf <[email protected]>
Changed-By: Ritesh Raj Sarraf <[email protected]>
Description: 
 laptop-mode-tools - Scripts to spin down hard drive and save power
Closes: 519426 522043
Changes: 
 laptop-mode-tools (1.48-1) unstable; urgency=low
 .
   * New upstream release 1.48:
     + Fix udevinfo call. Newer udev has deprecated the usage of
       udevinfo in favor of 'udevadm info' Closes: #522043.
     + Fix ethernet throttling. Throttle speed to a user specified
       speed or probe speed from the device Closes: #519426.
     + Restore ethernet speed to user specified speed or MAX speed
       when switching back to AC.
     + Fix manpage error.
   * Build-Depend on debhelper version 5.
   * Add Homepage field.
   * Bump Standards Version to 3.8.1
   * Take maintenance from Bart Samwel
   * Recommend net-tools for ethernet speed detection.
Checksums-Sha1: 
 80baa6f0ed34505a44568578d9c81d1f531efac8 1352 laptop-mode-tools_1.48-1.dsc
 bb43c4edc34f4394531d0d38a365192acbb2db28 86121 
laptop-mode-tools_1.48.orig.tar.gz
 beaa19cfd9e68df83f52b0ddf520daf3638649f7 9618 laptop-mode-tools_1.48-1.diff.gz
 ffca245131c48076c7fa076b61f0d172a6024fa9 107804 
laptop-mode-tools_1.48-1_all.deb
Checksums-Sha256: 
 d4cf96e476f029bfbbbba953a95a527e698106bee6661e6e065165d48e31fbf7 1352 
laptop-mode-tools_1.48-1.dsc
 b682b0f906c3247c53d406075f93b3af1ead682772aa549b4d5385d840e30313 86121 
laptop-mode-tools_1.48.orig.tar.gz
 88454690370911e0806a5b25fc8a44ae2e11a8a3e229723b24afc66ba2c75c8d 9618 
laptop-mode-tools_1.48-1.diff.gz
 bfa67f5ce31a7b95823d3b2c4e8126b63687bacb47e40369f1d43188a7355b6c 107804 
laptop-mode-tools_1.48-1_all.deb
Files: 
 009b360d5af89a3095465ef412557d6c 1352 utils optional 
laptop-mode-tools_1.48-1.dsc
 051aa3a420450afccdee0255b918e589 86121 utils optional 
laptop-mode-tools_1.48.orig.tar.gz
 3eb0a4df1c897ebddb07a020afd91d8a 9618 utils optional 
laptop-mode-tools_1.48-1.diff.gz
 c09576df9bbedd09fcad3aafe2dfa067 107804 utils optional 
laptop-mode-tools_1.48-1_all.deb

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

iQEcBAEBAgAGBQJJ8wdLAAoJENbfLHnbvsrcAeAH/0KhdG30ZJM6NVAt5wO+SbEY
5IFLzV5+hydGMmk8B28iPbRSrZIMfJ+aWdPgQuyiFW8wlrIS9WhPunmj0bSf7ELf
HcXrmiqkSwNXX1DCBuT8yi1OVOzzexStNlzjPWr0XWAKaxXpy4ljW2scmbhsLm2Y
6c7Bc2edHGVEbyamwGraVP1NBqDy1twS2e41GOpEAkfonft40KObVNq1NyCp3P/M
5wegYzp7H1bHzjmiduTVPXqv0jQYjcLxUq0GT/pPOzDki+OOaL6ObNi1UvXR43kp
pWLNYSaj3g69M6APizR/HRNziL+LkVLbEFKYrSyMwvD6859Yk3XX9sF0VkrjlY4=
=jfge
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to