Re: Package builds when depending a specific locale
- Date: Sat, 26 Apr 2008 22:58:36 +0300
- From: "Murat Demirten" <mdemirten@xxxxxxxxx>
- Subject: Re: Package builds when depending a specific locale
Very good solution, thanks for your help Adam. I'm preparing new packages. It is a corner case I see but maybe we should accept
this as a general solution for the problem.
murat,
2008/4/26 Adam Borowski <kilobyte@xxxxxxxxxx>:
You can do the following:On Sat, Apr 26, 2008 at 02:24:03PM +0300, Murat Demirten wrote:
> I've a problem with manpages-tr package build process. It is binary
> independent package, basically contains man pages.
>
> But package author uses a different aproach to build man pages from xml
> sources. There is an xml2man.c which used on build process
> to obtain man pages. And this utility can not be run properly if tr_TR.UTF-8
> locale does not exist at build system. This breaks our automatic
> rebuild systems, so how can we address this problem? Any ideas..
1. build-depend on "locales"
2. put the "locale-gen" script I attached into debian/locale-gen
(changing en_US.UTF-8 to tr_TR.UTF-8 in your case)
3. in debian/rules:
manpages:
sh debian/locale-gen
LOCPATH=$(CURDIR)/locales $(MAKE) manpages
The idea is not mine, but I don't remember whose anymore :(. But hey, it
works for me.
--
1KB // Microsoft corollary to Hanlon's razor:
// Never attribute to stupidity what can be
// adequately explained by malice.
--
Murat Demirten
Genel Müdür
Yenihayat Bilişim Teknolojileri A.Ş.
(212) 210 77 36
- References:
- Package builds when depending a specific locale
- From: Murat Demirten
- Re: Package builds when depending a specific locale
- From: Adam Borowski
- Package builds when depending a specific locale
- Prev by Date: [OT] Need old Packages.gz and Release Files
- Next by Date: Re: Package builds when depending a specific locale
- Previous by thread: Re: Package builds when depending a specific locale
- Next by thread: Bug#72140: bug #72140 closed by recent dpkg?
- Index(es):