debconf is missing a dependancy

Bug #33475 reported by Chris Moore
10
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

package 'debconf' provides Encoding.pm:

    chris@chrislap:~$ dpkg -L debconf | grep Encoding.pm
    /usr/share/perl5/Debconf/Encoding.pm

Encoding.pm uses /usr/bin/locale:

    chris@chrislap:~$ grep locale /usr/share/perl5/Debconf/Encoding.pm
      $charmap = `locale charmap`;

And /usr/bin/locale is provided by package belocs-locales-bin:

    chris@chrislap:~$ dpkg -L belocs-locales-bin | grep /usr/bin/locale$
    /usr/bin/locale

So... package 'debconf' should depend on package 'belocs-locales-bin' (whether directly or indirectly), but it doesn't. It just let me remove belocs-locales-bin without removing defconf:

    chris@chrislap:~$ sudo apt-get remove belocs-locales-bin
    Reading package lists... Done

    Building dependency tree... Done

    The following packages will be REMOVED:
      belocs-locales-bin locales
    0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
    Need to get 0B of archives.
    After unpacking 13.5MB disk space will be freed.
    Do you want to continue [Y/n]?

Fix: add 'belocs-locales-bin' or 'locales' to the dependancies of 'debconf'.

Revision history for this message
Colin Watson (cjwatson) wrote :

/usr/bin/locale was formerly provided by libc6, and was thus in the Essential set. It moved to belocs-locales-bin with no dependency from libc6 (or I suppose belocs-locales-bin could be marked Essential too, but that seems riskier in case we ever want to move away from belocs again ...). This is a bug in itself; I don't think we should have to go around adjusting every package that used /usr/bin/locale and relied on it being Essential.

Jeff, could you please add a dependency from libc6 to belocs-locales-bin?

Revision history for this message
Colin Watson (cjwatson) wrote :

There's already a dependency from libc6 to locales, which should be sufficient - but maybe not, because debconf runs in contexts where dependencies aren't necessarily satisfied. It's just occurred to me that perhaps this needs to be a Pre-Depends instead. (Of course, that needs to be done with some care!)

Revision history for this message
Chris Moore (dooglus) wrote : Re: [Bug 33475] debconf is missing a dependancy

libc6 version 2.3.6-0ubuntu6 didn't depend on locales. The dependancy
seems to have been added to libc6 since I reported this bug.

The bug can be closed now, since it is no longer an issue.

Changed in glibc:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.