Bug#374253: ifplugd: Annoying dpkg --compare-versions warnings upon installation

2008-03-04 Thread Y Giridhar Appaji Nag
Hi Sukant,

On 06/06/18 01:21 -0500, Sukant Hajra said ...
 the output of an installation.  The problem seems to be the postinst
 script which has some dpkg --compare-versions calls.  I briefly looked
 at the script, but didn't figure out what exactly is wrong.

The script looks OK to me too.  I wonder if this was a minor bug in the
dpkg version in use then (I did not dig deeper).  Are you still able to
reproduce this problem?

 Preconfiguring packages ...
 dpkg: --compare-versions takes three arguments: version relation version
 
 Setting up ifplugd (0.28-2) ...
 dpkg: --compare-versions takes three arguments: version relation version

I was reading Debian policy (6.7 Details of configuration) and noticed
this:

  When we configure a package (this happens with dpkg --install and dpkg
  --configure), we first update any conffiles and then call:

   postinst configure most-recently-configured-version

  No attempt is made to unwind after errors during configuration. If the
  configuration fails, the package is in a Failed Config state, and an
  error message is generated.

  If there is no most recently configured version dpkg will pass a null
  argument. [41]

And we are checking 'if [ -z $2 ]' which would be true in case of a
fresh install (which is what your scenario is). 

I recently took up maintenance of ifplugd and since this is a fairly old
bug, if you are not able to reproduce to it, I would be inclined to
close it.  Please do let me know :)

Cheers,

Giridhar

-- 
Y Giridhar Appaji Nag | http://www.appaji.net/


signature.asc
Description: Digital signature


Bug#374253: ifplugd: Annoying dpkg --compare-versions warnings upon installation

2006-06-18 Thread Sukant Hajra
Package: ifplugd
Version: 0.28-2
Severity: normal



Hi,

On my system ifplugd doesn't install smoothly.  I'll cut and paste below
the output of an installation.  The problem seems to be the postinst
script which has some dpkg --compare-versions calls.  I briefly looked
at the script, but didn't figure out what exactly is wrong.

I'm just concerned when any package reports has any errors upon an
installation.  For now, ifplugd seems to have installed fine.  Let me know,
though, if you think the error actually prevented something from configuring
correctly.

Regards,
Sukant Hajra


-- Output of installation:
$ sudo aptitude install ifplugd
Reading package lists... Done
Building dependency tree... Done
Reading extended state information   
Initializing package states... Done
Reading task descriptions... Done  
Building tag database... Done
The following NEW packages will be automatically installed:
  libdaemon0 
The following NEW packages will be installed:
  ifplugd libdaemon0 
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 9466B/67.5kB of archives. After unpacking 352kB will be used.
Do you want to continue? [Y/n/?] 
Writing extended state information... Done
Get:1 http://ftp.us.debian.org testing/main libdaemon0 0.10-1 [9466B]
Fetched 9466B in 33s (282B/s)
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done 
Preconfiguring packages ...
dpkg: --compare-versions takes three arguments: version relation version

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
Selecting previously deselected package libdaemon0.
(Reading database ... 110851 files and directories currently installed.)
Unpacking libdaemon0 (from .../libdaemon0_0.10-1_i386.deb) ...
Selecting previously deselected package ifplugd.
Unpacking ifplugd (from .../ifplugd_0.28-2_i386.deb) ...
Setting up libdaemon0 (0.10-1) ...

Setting up ifplugd (0.28-2) ...
dpkg: --compare-versions takes three arguments: version relation version

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
Starting Network Interface Plugging Daemon: eth0 eth1.


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (90, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16-hole
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages ifplugd depends on:
di  debconf [debconf-2.0] 1.5.1  Debian configuration management sy
di  libc6 2.3.6-13   GNU C Library: Shared libraries
ii  libdaemon00.10-1 lightweight C library for daemons

Versions of packages ifplugd recommends:
di  ifupdown  0.6.7  high level tools to configure netw

-- debconf information:
* ifplugd/interfaces: eth0 eth1
* ifplugd/hotplug_interfaces:
* ifplugd/args: -q -f -u0 -d10 -w -I
* ifplugd/suspend_action: stop


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]