[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#540603: blends-dev: Upgrade problems from Lenny systems.

Package: blends-dev
Severity: important

Hi Andreas,

I have tried to install blends-dev, and got the following error:

cp: cannot stat `/etc/cdd/sources*': No such file or directory
dpkg: error processing /var/cache/apt/archives/blends-dev_0.6.3_all.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Here is the problematic part of the preinst script:

if [ -d /etc/cdd ] ; then
    mkdir -p /etc/blends
    cp -u -a /etc/cdd/sources* /etc/blends

If there is a /etc/cdd directory, then it will try to copy the source files to
their new location. But on my system, I had Lenny's cdd-common package
installed, that also left some files in /etc/cdd, but not cdd-dev, so the cp
command is failing because there is nothing to copy. Therfore, an user who
installed Debian Med in Lenny will have pulled cdd-common and will be unable to
install blends-dev in Squeeze unless cdd-dev was already present.

The most obvious solution to this problem is to test for the source files
themselves and not for the directory that holds them, but there may be other
issues. In particular, after upgrade to the blends-* packages, it is not
possible to remove the cdd-* packages because the blends packages got flagged
by aptitude as automatically insalled. Probably a good melange of Provides,
Conflicts and Replaces can solve this problem…

Have a nice day,

-- Charles

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

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

Versions of packages blends-dev depends on:
ii  apt                    Advanced front-end for dpkg
ii  build-essential               11.4       Informational list of build-essent
ii  debconf [debconf-2.0]         1.5.24     Debian configuration management sy
ii  debhelper                     7.2.24     helper programs for debian/rules
ii  make                          3.81-5     The GNU version of the "make" util

blends-dev recommends no packages.

Versions of packages blends-dev suggests:
pn  blends-doc                    <none>     (no description available)

Reply to: