Comment 1 for bug 1117944

Revision history for this message
Aleksander Morgado (aleksander-m) wrote : Re: intltool confused by separate build-dir

Reproduced with intltool bzr master.

This issue gains importance due to the following change in automake 1.15:

The make distcheck target has been changed to use $(distdir)/_build/sub as its working directory. Code making assumption on the value of srcdir and top_srcdir during make distcheck will fail.

When testing with automake 1.15, you may end up seeing that the files generated during compilation into builddir are not ignored from intltool-update -m even if they are listed in POTFILES.skip, e.g.:

make[2]: Entering directory '/home/aleksander/Development/foss/ModemManager/ModemManager-1.5.0/_build/sub/po'
INTLTOOL_EXTRACT="/usr/bin/intltool-extract" XGETTEXT="/usr/bin/xgettext" srcdir=../../../po /usr/bin/intltool-update --gettext-package ModemManager --pot
rm -f missing notexist
srcdir=../../../po /usr/bin/intltool-update -m
The following files contain translations and are currently not in use. Please
consider adding these to the POTFILES.in file, located in the po/ directory.

sub/data/org.freedesktop.ModemManager1.policy.in

If some of these files are left out on purpose then please add them to
POTFILES.skip instead of POTFILES.in. A file 'missing' containing this list
of left out files has been written in the current directory.
Please report to <email address hidden>
if [ -r missing -o -r notexist ]; then \
  exit 1; \
fi
Makefile:150: recipe for target 'check' failed
make[2]: *** [check] Error 1
make[2]: Leaving directory '/home/aleksander/Development/foss/ModemManager/ModemManager-1.5.0/_build/sub/po'
Makefile:511: recipe for target 'check-recursive' failed
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory '/home/aleksander/Development/foss/ModemManager/ModemManager-1.5.0/_build/sub'
Makefile:716: recipe for target 'distcheck' failed
make: *** [distcheck] Error 1