asks debconf question on dapper->hardy upgrade

Bug #174128 reported by Michael Vogt
2
Affects Status Importance Assigned to Milestone
dhcp3 (Ubuntu)
Fix Released
Undecided
Michael Vogt

Bug Description

During a dapper->hardy upgrade dhcp3-client asks a debconf question with high priority about some files shuffeld around (dhclient-script moved to sbin and /etc/dhcp3/dhclient-script). This shouldn't be asked.

Related branches

Michael Vogt (mvo)
Changed in dhcp3:
milestone: none → ubuntu-8.04-beta
Martin Pitt (pitti)
Changed in dhcp3:
assignee: nobody → pitti
status: New → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

I just set up a clean dapper chroot and upgraded dhcp3-{common,client}. I did not get a conffile prompt.

$ debdiff dhcp3-client_3.0.3-6ubuntu7_amd64.deb dhcp3-client_3.0.6.dfsg-1ubuntu3_amd64.deb

Files in second .deb but not in first
-------------------------------------
-rw-r--r-- root/root /usr/share/lintian/overrides/dhcp3-client
-rw-r--r-- root/root DEBIAN/templates
-rwxr-xr-x root/root /sbin/dhclient-script

Files in first .deb but not in second
-------------------------------------
-rwxr-xr-x root/root /etc/dhcp3/dhclient-script

After the upgrade /etc/dhcp3/dhclient-script does not exist any more, so the upgrade did the right thing.

The preinst/postinst generate a warning about it only if the the md5sum of /etc/dhcp3/dhclient-script is not one of those:
  2b18b5c59b26d00aa115716b3da2ed26
  a9727be0b1b5a55da5d356bf7dc0c72c

This could certainly be improved to query dpkg for the original md5sum, but it should be good enough. The latter matches the default file in Ubuntu dapper. If you still experience this, can you please attach your version of dhclient-script?

Changed in dhcp3:
status: In Progress → Incomplete
Revision history for this message
Michael Vogt (mvo) wrote :

I just got the prompt again in a VM environment. The md5sum of /etc/dhcp3/dhclient-script there is a9727be0b1b5a55da5d356bf7dc0c72c.

However, this time the prompt is that dhclient needs to be restarted. Looking at the dhcp3-client.postinst script it seems like this a debconf question with high priority is always asked if it gets upgraded from lt-nl "3.0.4-2".

I will attach a debdiff with a suggested fix.

Revision history for this message
Michael Vogt (mvo) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

Although the patch does not have a conffile fix at all, none of us could reproduce the conffile prompt. Maybe it was really just mixed up with that debconf note. Please upload, looks good to me.

Changed in dhcp3:
assignee: pitti → mvo
status: Incomplete → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dhcp3 - 3.0.6.dfsg-1ubuntu6

---------------
dhcp3 (3.0.6.dfsg-1ubuntu6) hardy; urgency=low

  * debian/dhcp3-client.postinst:
    - change the priority of dhcp3-client/dhclient-needs-restarting
      from high to medium (LP: #174128)

 -- Michael Vogt <email address hidden> Tue, 18 Mar 2008 18:14:13 +0100

Changed in dhcp3:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.