[Bug 1183262] Re: dh_translations looks for po/Makefile in source tree, fails with CMake when built out-of-source
Brian Murray
brian at ubuntu.com
Wed May 29 16:13:21 UTC 2013
** Changed in: pkgbinarymangler (Ubuntu)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pkgbinarymangler in Ubuntu.
https://bugs.launchpad.net/bugs/1183262
Title:
dh_translations looks for po/Makefile in source tree, fails with CMake
when built out-of-source
Status in “pkgbinarymangler” package in Ubuntu:
New
Bug description:
If a package doesn’t use intltool to manage its translations, the
build_pot() function of /usr/bin/dh_translations looks for
po/Makefile, and if it exists it executes "make $domain.pot". This
works for packages that ship a Makefile in the po directory, but if
the Makefile is generated at build time (e.g. when using CMake) in a
separate build directory (which is usually the case when building
packages), then dh_translations fails to find po/Makefile, even though
it exists in the build directory.
Here is the relevant code:
if ($use_intltool) {
…
} else {
return unless -e 'po/Makefile';
if ($domain) {
# let the Makefile itself handle it
@cmd=('make', $domain . '.pot');
}
@cmd should be passed an additional '-C', $builddir.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pkgbinarymangler/+bug/1183262/+subscriptions
More information about the foundations-bugs
mailing list