Bug#365651: file collision with lliurex-belocs-locales-data
Package: locales
Version: 2.3.6-7
Severity: wishlist
Tags: patch
This is found when upgrading LliureX 5.09 (a CDD based on sarge) to Debian etch.
Preparing to replace locales 2.3.4-17+lliurex9 (using .../locales_2.3.6-7_all.deb) ...
Unpacking replacement locales ...
dpkg: error processing /var/cache/apt/archives/locales_2.3.6-7_all.deb (--unpack):
trying to overwrite `/usr/share/locale/be/LC_MESSAGES/libc.mo', which is also in package lliurex-belocs-locales-data
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/locales_2.3.6-7_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
lliurex-belocs-locales-data collides with locales, but doesn't Conflict with
them. Unfortunately Conflicts cannot be used in our side, because this package
is depended on by other system components that ought not be removed. The
transition for these could be handled separately by a few dummy packages.
However, for what glibc locales is concerned, a Replaces should be enough to
avoid dpkg failure. (I think it's safe to assume that noone will be silly
enough to upgrade to etch and then downgrade back to sarge-based lliurex):
Index: debian/control.in/main
===================================================================
--- debian/control.in/main (revision 1465)
+++ debian/control.in/main (working copy)
@@ -33,7 +33,7 @@
Priority: standard
Depends: ${locale:Depends}, debconf | debconf-2.0
Conflicts: base-config
-Replaces: base-config
+Replaces: base-config, lliurex-belocs-locales-data
Description: GNU C Library: National Language (locale) data [support]
Machine-readable data files, shared objects and programs used by the
C library for localization (l10n) and internationalization (i18n) support.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-amd64-k8
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages locales depends on:
ii debconf [debconf-2.0] 1.4.72 Debian configuration management sy
ii libc6 [glibc-2.3.6-2] 2.3.6-7 GNU C Library: Shared libraries
locales recommends no packages.
-- debconf information excluded
Reply to: