[buildd-tools-devel] Bug#588962: Bug#588962: po4a using both builddir and srcdir

David Prévot taffit at debian.org
Tue May 15 20:03:19 UTC 2012


Le 15/05/2012 15:33, Roger Leigh a écrit :
> On Tue, May 15, 2012 at 12:46:08PM -0400, David Prévot wrote:

>> Indeed, simply running “po4a --destdir=../debian/build/man/ po4a.cfg”
>> from the man directory builds everything where expected (even with
>> “--srcdir=.”), but when run from the root directory, it builds them in
>> both the --srcdir and the --destdir, so it may be a bug in po4a. As a
>> workaround, you could remove the sloppy man/translated directory in the
>> update-po rule, after the po4a call.
> 
> We can do this as a workaround for now.
[…]
> In general though, it breaks building from a read-only source tree
> of building several diffrent builds from a common source tree, so
> I would hope to be able to fix it.

I thought about a bit less ugly workaround: “cd man && po4a $stuff”
since this issue is not triggered if po4a is run with --srcdir=. (or
implied).

Another workaround could be to rewrite man/po4a.cfg to document the
files path from the root directory (attached, but I haven't tested it:
it may need extra care about $(builddir) in the Makefile call since it
should now point the debian/build/ directory instead of
debian/build/man/). I also took the liberty to simplify the addenda
handling (they should now be added as man/addenda/$lang.add, Thomas
should be able to provide one for his translation (and I will be happy
to help if needed).

Regards

David

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: po4a.cfg
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20120515/6b4df65f/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20120515/6b4df65f/attachment-0001.pgp>


More information about the Buildd-tools-devel mailing list