Package: coreutils
Version: 8.5-1
Severity: minor
Tags: patch
User: [email protected]
Usertags: origin-ubuntu maverick ubuntu-patch

Hi Michael,

It was noticed in Ubuntu that coreutils is installing 'coreutils.mo'
symlinks for all its translations under /usr/share/locale/<ll>/LC_TIME,
because on Ubuntu the target of these symlinks is moved due to language
packs being separate packages.  On inspection, it seems that these symlinks
don't serve any purpose, because gettext will never use this path and the
information provided is never going to be used for anything except gettext
(the libc functions that *do* care about LC_TIME don't look at .mo files at
all).

So while the files don't appear to be doing any harm in Debian, they also
don't appear to do any good; and I would therefore suggest applying a patch
such as the one attached to drop the unneeded symlinks from the package. 
This would allow the Ubuntu coreutils package to be in sync with the Debian
package again.

Or if there's a reason that these symlinks are needed, I'll be happy to
learn of it so a better solution can be applied in Ubuntu.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
[email protected]                                     [email protected]
=== modified file 'debian/rules'
--- debian/rules        2010-04-27 20:32:54 +0000
+++ debian/rules        2010-06-07 01:03:35 +0000
@@ -135,6 +135,10 @@
        sed s/\"1\"/\"8\"/1 $(d)/usr/share/man/man1/chroot.1 > 
$(d)/usr/share/man/man8/chroot.8
        rm $(d)/usr/share/man/man1/chroot.1
 
+       # on Ubuntu, LC_TIME symlinks are dangling since translations are
+       # shipped in langpacks; they are not needed either, so just remove them
+       rm -r $(d)/usr/share/locale/*/LC_TIME
+
        # some build environments will leave a dangling info dir
        rm -f $(d)/usr/share/info/dir
 

Reply via email to