Followup-For: Bug #632443
Control: usertags -1 edos-file-overwrite

Architecture: amd64
Distribution: squeeze->wheezy (partial) upgrade

Hi,

automatic installation tests of packages that share a file and at the
same time do not conflict by their package dependency relationships has
detected the following problem:

  Selecting previously deselected package kst-bin.
  Unpacking kst-bin (from .../kst-bin_1.7.0-1.1+b1_amd64.deb) ...

  Setting up kst-bin (1.7.0-1.1+b1) ...

  Selecting previously deselected package kst-data.
  Unpacking kst-data (from .../kst-data_2.0.3-1.2_all.deb) ...
  dpkg: error processing /var/cache/apt/archives/kst-data_2.0.3-1.2_all.deb 
(--unpack):
   trying to overwrite '/usr/share/apps/kst/kstui.rc', which is also in package 
kst-bin 1.7.0-1.1+b1


This is a serious bug as it makes installation/upgrade fail, and
violates sections 7.6.1 and 10.1 of the policy.

As this problem can be demonstrated during partial upgrades from squeeze
to wheezy (but not within squeeze or wheezy itself), this indicates a
missing or insufficiently versioned Replaces+Breaks relationship.
But since this particular upgrade ordering is not forbidden by any
dependency relationship, it is possible that apt (or $PACKAGE_MANAGER)
will use this erroneus path on squeeze->wheezy upgrades.

Here is a list of files that are known to be shared by both packages
(according to the Contents files for squeeze and wheezy on amd64, which
may be slightly out of sync):

        usr/share/applnk/Graphics/kst.desktop
        usr/share/apps/kst/kstui.rc
        usr/share/apps/kst/tutorial/gyrodata.dat
        usr/share/config/colors/IDL 00 BW-Linear
        usr/share/config/colors/IDL 01 Blue-White
        usr/share/config/colors/IDL 02 GRN-RED-BLU-WHT
        usr/share/config/colors/IDL 03 RED-Temperature
        usr/share/config/colors/IDL 04 BLU-GRN-RED-YEL
        usr/share/config/colors/IDL 05 STD-Gamma-II
        usr/share/config/colors/IDL 06 PRISM
        usr/share/config/colors/IDL 07 RED-PURPLE
        usr/share/config/colors/IDL 08 GRN-WHT-Linear
        usr/share/config/colors/IDL 09 GRN-WHT-Exp
        usr/share/config/colors/IDL 10 GRN-PINK
        usr/share/config/colors/IDL 11 BLUE-RED
        usr/share/config/colors/IDL 12 16-Level
        usr/share/config/colors/IDL 13 RAINBOW
        usr/share/config/colors/IDL 14 STEPS
        usr/share/config/colors/IDL 15 STERN-Special
        usr/share/config/colors/IDL 16 Haze
        usr/share/config/colors/IDL 17 BLU-Pastel-RED
        usr/share/config/colors/IDL 18 Pastels
        usr/share/config/colors/IDL 19 Hue-Sat-Light1
        usr/share/config/colors/IDL 20 Hue-Sat-Light2
        usr/share/config/colors/IDL 21 Hue-Sat-Value1
        usr/share/config/colors/IDL 22 Hue-Sat-Value2
        usr/share/config/colors/IDL 23 Purple-Red-Stripe
        usr/share/config/colors/IDL 24 Beach
        usr/share/config/colors/IDL 25 Mac-Style
        usr/share/config/colors/IDL 26 Eos-A
        usr/share/config/colors/IDL 27 Eos-B
        usr/share/config/colors/IDL 28 Hardcandy
        usr/share/config/colors/IDL 29 Nature
        usr/share/config/colors/IDL 30 Ocean
        usr/share/config/colors/IDL 31 Peppermint
        usr/share/config/colors/IDL 32 Plasma
        usr/share/config/colors/IDL 33 Blue-Red
        usr/share/config/colors/IDL 34 Rainbow
        usr/share/config/colors/IDL 35 Blue-Waves
        usr/share/config/colors/IDL 36 Volcano
        usr/share/config/colors/IDL 37 Waves
        usr/share/config/colors/IDL 38 Rainbow18
        usr/share/config/colors/IDL 39 Rainbow-White
        usr/share/config/colors/IDL 40 Rainbow-Black
        usr/share/services/kst/kstdata_ascii.desktop
        usr/share/services/kst/kstdata_fitsimage.desktop
        usr/share/services/kst/kstdata_netcdf.desktop
        usr/share/services/kst/kstdata_qimagesource.desktop
        usr/share/servicetypes/kst/kstbasicplugin.desktop
        usr/share/servicetypes/kst/kstdataobjectplugin.desktop
        usr/share/servicetypes/kst/kstdatasourceplugin.desktop
        usr/share/servicetypes/kst/kstextension.desktop
        usr/share/servicetypes/kst/kstfilter.desktop
        usr/share/servicetypes/kst/kstplugin.desktop


The following relationships are currently defined:

  Package:   kst-data
  Conflicts: n/a
  Breaks:    n/a
  Replaces:  n/a

The following relationships should be added for a clean takeover of
these files
(http://www.debian.org/doc/debian-policy/ch-relationships.html#s-replaces):

  Package:  kst-data
  Breaks:   kst-bin (<< 2.0.3)
  Replaces: kst-bin (<< 2.0.3)


Cheers,

Andreas

PS: for more information about the detection of file overwrite errors
of this kind see http://edos.debian.net/file-overwrites/.

Attachment: kst-bin=1.7.0-1.1+b1_kst-data=2.0.3-1.2.log.gz
Description: GNU Zip compressed data

Reply via email to