Bug#685810: marked as done (live-tools: fails to upgrade from testing - diversion conflict)

2012-10-23 Thread Ben Armstrong
New steps to reproduce. In a clean wheezy chroot:

# apt-get install live-tools
Selecting previously unselected package live-tools.
(Reading database ... 9863 files and directories currently installed.)
Unpacking live-tools (from .../live-tools_3.0.3-1_all.deb) ...
Processing triggers for man-db ...
Setting up live-tools (3.0.3-1) ...
# dpkg-divert --list | grep live-tools
diversion of /usr/bin/uptime to /usr/bin/uptime.procps by live-tools
# ls -l /usr/bin/uptime*
lrwxrwxrwx 1 root root   11 Jul  5 15:08 /usr/bin/uptime - live-uptime
-rwxr-xr-x 1 root root 9636 Jun 17 09:13 /usr/bin/uptime.procps
# echo deb http://ftp.us.debian.org/debian sid main  \
/etc/apt/sources.list
# apt-get update
...
# apt-get install -t sid live-tools
...
Preparing to replace live-tools 3.0.3-1 (using
.../live-tools_3.0.12-1_all.deb) ...
Unpacking replacement live-tools ...
Processing triggers for man-db ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up live-tools (3.0.12-1) ...
# dpkg-divert --list | grep live-tools
diversion of /usr/sbin/update-initramfs to
/usr/sbin/update-initramfs.orig.initramfs-tools by live-tools
diversion of /usr/share/man/man8/update-initramfs.8.gz to
/usr/share/man/man8/update-initramfs.orig.initramfs-tools.8.gz by live-tools
diversion of /usr/share/man/man1/uptime.1.gz to
/usr/share/man/man1/uptime.orig.procps.1.gz by live-tools
diversion of /usr/bin/uptime to /usr/bin/uptime.orig.procps by live-tools
# ls -l /usr/bin/uptime*
lrwxrwxrwx 1 root root 16 Sep 30 15:19 /usr/bin/uptime - /bin/live-uptime

Unfortunately, at this point uptime is broken because the original
diverted file is gone. Now if we purge live-tools and reinstall from wheezy:

# dpkg --purge live-tools
...
# dpkg-divert --list | grep live-tools
# ls -l /usr/bin/uptime*
ls: cannot access /usr/bin/uptime*: No such file or directory
# apt-get install -t wheezy live-tools
...
Selecting previously unselected package live-tools.
(Reading database ... 9863 files and directories currently installed.)
Unpacking live-tools (from .../live-tools_3.0.3-1_all.deb) ...
Processing triggers for man-db ...
Setting up live-tools (3.0.3-1) ...

And finally, upgrade it to sid, we get the reported error:

# apt-get install -t sid live-tools
...
Preparing to replace live-tools 3.0.3-1 (using
.../live-tools_3.0.12-1_all.deb) ...
dpkg-divert: error: `diversion of /usr/bin/uptime to
/usr/bin/uptime.orig.procps by live-tools' clashes with `diversion of
/usr/bin/uptime to /usr/bin/uptime.procps by live-tools'
dpkg: error processing
/var/cache/apt/archives/live-tools_3.0.12-1_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/live-tools_3.0.12-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

So yes, this bug needs to remain open, and also we need to solve the
damage being done to /usr/bin/uptime from the procps package if
live-tools 3.0.3-1 is upgraded to 3.0.12-1.

Ben


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#685810: marked as done (live-tools: fails to upgrade from testing - diversion conflict)

2012-10-23 Thread Daniel Baumann
retitle 685810 partial upgrade from 3.0.3 fails if no procps installed
severity 685810 normal
tag 685810 wontfix
thanks

On 10/23/2012 11:27 AM, Ben Armstrong wrote:
 New steps to reproduce. In a clean wheezy chroot:

'clean' as in 'no procps installed before live-tools'. the problem is a
faulty live-tools/3.0.3 postrm, and that one we can't fix in sid. it
would require fixing live-tools in wheezy first, which is pointless.

 So yes, this bug needs to remain open, and also we need to solve the
 damage being done to /usr/bin/uptime from the procps package if
 live-tools 3.0.3-1 is upgraded to 3.0.12-1.

there are no issues anymore except this minor one (upgrade without
procps installed first) remains. minor because a) it's partial upgrade
issue only, and b) procps is priority important, so nobody in real world
will hit this anyway.

-- 
Address:Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:  daniel.baum...@progress-technologies.net
Internet:   http://people.progress-technologies.net/~daniel.baumann/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#685810: marked as done (live-tools: fails to upgrade from testing - diversion conflict)

2012-10-23 Thread Ben Armstrong
On 10/23/2012 09:15 AM, Daniel Baumann wrote:
 retitle 685810 partial upgrade from 3.0.3 fails if no procps installed
 severity 685810 normal
 tag 685810 wontfix
 thanks

I'm not interested in a game of bug ping-pong. I just want to ensure we
can move forward with live-* unblocks so we can finally get things
released. All that matters is to get things to a releasable state.
Regardless of how this bug is marked, I am not satisfied with the state
it is in.

 On 10/23/2012 11:27 AM, Ben Armstrong wrote:
 New steps to reproduce. In a clean wheezy chroot:
 
 'clean' as in 'no procps installed before live-tools'.

No, that's not the case. clean as in, I did exactly this:

# debootstrap wheezy wheezy

This installs procps. I checked by redoing my test from scratch.

What follows is a verbatim log of steps to produce from a clean
debootstrap wheezy (all I did here was tar up the debootstrap
immediately afterwards and unpack it again to ensure it is clean):

synrg@lear:~/projects$ sudo chroot wheezy
root@lear:/# dpkg -l procps live-tools
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name  Version   Architecture
Description
+++-=-=-=-===
ii  procps1:3.3.3-2 i386  /proc
file system utilities
dpkg-query: no packages found matching live-tools
root@lear:/# mount -t proc proc /proc
root@lear:/# mount -t sysfs sys /sys
root@lear:/# export LC_ALL=C
root@lear:/# apt-get install live-tools
Reading package lists... Done
Building dependency tree... Done
Suggested packages:
  debian-installer-launcher perl rsync
The following NEW packages will be installed:
  live-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 7622 B of archives.
After this operation, 72.7 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  live-tools
Install these packages without verification [y/N]? y
Get:1 http://ftp.us.debian.org/debian/ wheezy/main live-tools all
3.0.3-1 [7622 B]
Fetched 7622 B in 0s (22.9 kB/s)
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously unselected package live-tools.
(Reading database ... 9285 files and directories currently installed.)
Unpacking live-tools (from .../live-tools_3.0.3-1_all.deb) ...
Processing triggers for man-db ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up live-tools (3.0.3-1) ...
root@lear:/# echo deb http://ftp.us.debian.org/debian sid main 
/etc/apt/sources.list
root@lear:/# apt-get update
Get:1 http://ftp.us.debian.org wheezy InRelease [208 kB]
Get:2 http://ftp.us.debian.org sid InRelease [219 kB]
Get:3 http://ftp.us.debian.org wheezy/main i386 Packages/DiffIndex [7876 B]
Get:4 http://ftp.us.debian.org wheezy/main Translation-en [3907 kB]
Get:5 http://ftp.us.debian.org sid/main i386 Packages [6202 kB]
Get:6 http://ftp.us.debian.org sid/main Translation-en [4069 kB]
Fetched 14.6 MB in 30s (484 kB/s)
Reading package lists... Done
root@lear:/# apt-get install -t sid live-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  debian-installer-launcher perl rsync uuid-runtime
The following packages will be upgraded:
  live-tools
1 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
Need to get 13.1 kB of archives.
After this operation, 47.1 kB of additional disk space will be used.
Get:1 http://ftp.us.debian.org/debian/ sid/main live-tools all 3.0.12-1
[13.1 kB]
Fetched 13.1 kB in 0s (29.4 kB/s)
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 9303 files and directories currently installed.)
Preparing to replace live-tools 3.0.3-1 (using
.../live-tools_3.0.12-1_all.deb) ...
Unpacking replacement live-tools ...
Processing triggers for man-db ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up live-tools (3.0.12-1) ...
root@lear:/# dpkg --purge live-tools
(Reading database ... 9317 files and directories currently installed.)
Removing live-tools ...
Purging configuration files for live-tools ...
Processing triggers for man-db ...
root@lear:/# ls -la /usr/bin/uptime*
ls: cannot access /usr/bin/uptime*: No such file or directory

At this point, procps is *broken* as /usr/bin/uptime is gone. That's not
a minor issue. Anyone with live-tools installed on their build boxes
who upgrades to 3.0.12-1 will end up with no original procps
/usr/bin/uptime, and nothing will fix that except reinstalling procps.
This is not some strange corner case that will not happen in the real
world. It's going to break a certain percentage of real world installs
that exist out there today.

Ben


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with