Thoughts about separating language packs

Scott James Remnant scott at canonical.com
Fri Nov 5 07:22:13 CST 2004


On Fri, 2004-11-05 at 13:51 +0100, Martin Pitt wrote:

> Scott James Remnant [2004-11-05 11:16 +0000]:
> > What happens when the user builds a package from source themselves?
> > Should the translations in their source package be thrown away in favour
> > of the language pack, if not how do we resolve the "Replaces:
> > language-pack" issue?
> 
> The simplest and most robust solution is to just throw them away, and in the
> interest of not breaking too much, I believe this is the way to go if we have
> language packs.
> 
In this case the "extraction kit" needs to actually be installed on the
machines of anyone who builds source packages ... otherwise they won't
be able to install things due to conflict with files in language-pack.

> Scott James Remnant [2004-11-05 11:16 +0000]:
> > > We currently have 1047 source packages, but as much as 265 do not use
> > > debhelper. Although a debhelper hook would be easier, it would miss
> > > about a quarter of our source packages, which is not acceptable.
> > > 
> > Where do you get that quarter figure from?  By my quick
> > finger-in-the-air guess, nearly all of the packages in main use
> > debhelper.
> 
> $ grep ^Package: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_hoary_main_source_Sources | wc -l
> 1050
> 
> $ grep-dctrl -s Package -FBuild-Depends debhelper /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_hoary_main_source_Sources |wc -l
> 767
> 
*cough*  Build-Depends-Indep

grep-dctrl -s Package -FBuild-Depends,Build-Depends-Indep
debhelper /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_hoary_main_source_Sources
| wc -l
952

> > If you want certain files to not be placed in the package, you take them
> > out (or don't put them in) in debian/rules.  Either add a call to
> > something that extracts the translations, or modify debhelper and
> > friends to do the extraction for you.
> 
> See above, debhelper will not catch more than a quarter of our source packages.
> 
Actually it catches over 90%, and of the remaining 98 packages only 28
contain translations anyway (using the "does it depend on gettext or
po-debconf" test).

That's hardly a mammoth task, given we'd most likely just be adding a
single command to debian/rules.

Scott
-- 
Scott James Remnant
scott at canonical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ubuntu.com/archives/ubuntu-devel/attachments/20041105/ba491b65/attachment.pgp


More information about the ubuntu-devel mailing list