Comment 15 for bug 1394929

Revision history for this message
Steve Langasek (vorlon) wrote :

@@ -96,7 +96,8 @@
 Section: localization
 Priority: standard
 Depends: libc-bin (>> 2.23), ${misc:Depends}, debconf | debconf-2.0
-Replaces: manpages-fr-extra (<< 20141022)
+Breaks: libc-bin (<< 2.23)
+Replaces: libc-bin (<< 2.23), manpages-fr-extra (<< 20141022)
 Build-Profiles: <!stage1>
 Description: GNU C Library: National Language (locale) data [support]
  Machine-readable data files, shared objects and programs used by the

This introduces a Breaks/Replaces between two packages in the minimal set (locales, libc-bin). This will warrant upgrade testing from both 14.04 and 15.10. Has any upgrade testing been done already?

The Breaks/Replaces from locales to libc-bin is definitely required, due to the move of the update-locale script.

I see the breaks relationship is also bidirectional, with libc6 Breaks: (locales << 2.23), which further emphasizes the need for upgrade testing. Why is the breaks in that direction required? Is this related to the drop of the locale-gen --purge call from libc.postinst?

Otherwise, everything in this looks good to me. It appears to be a faithful translation of the existing langpack handling code in the Ubuntu-specific package, and where there is delta it makes sense in terms of bugfixing of the existing behavior (e.g., properly splitting the handling of /etc/locale.gen vs. /var/lib/locales/supported.d, and fixing handling of langpacks to not modify contents of /usr/lib/locale, so that the set of available locales is always the union of the debconf-configured locales and the langpacks).