Source: gnubiff
Version: 2.2.16-1
Severity: important
Tags: patch

When I rebuild gnubiff from source (note: I added a patch from #828327 to
make it build), I get this:

 $ dpkg-deb -c gnubiff_2.2.16-1_amd64.deb | grep locale | head
 drwxr-xr-x root/root         0 2016-01-13 03:58 ./usr/@DATADIRNAME@/locale/
 drwxr-xr-x root/root         0 2016-01-13 03:58 ./usr/@DATADIRNAME@/locale/cs/
 drwxr-xr-x root/root         0 2016-01-13 03:58 
./usr/@DATADIRNAME@/locale/cs/LC_MESSAGES/
 -rw-r--r-- root/root     18371 2016-01-13 03:58 
./usr/@DATADIRNAME@/locale/cs/LC_MESSAGES/gnubiff.mo
 drwxr-xr-x root/root         0 2016-01-13 03:58 ./usr/@DATADIRNAME@/locale/de/
 drwxr-xr-x root/root         0 2016-01-13 03:58 
./usr/@DATADIRNAME@/locale/de/LC_MESSAGES/
 -rw-r--r-- root/root     22886 2016-01-13 03:58 
./usr/@DATADIRNAME@/locale/de/LC_MESSAGES/gnubiff.mo
 drwxr-xr-x root/root         0 2016-01-13 03:58 ./usr/@DATADIRNAME@/locale/eo/
 drwxr-xr-x root/root         0 2016-01-13 03:58 
./usr/@DATADIRNAME@/locale/eo/LC_MESSAGES/
 -rw-r--r-- root/root     21377 2016-01-13 03:58 
./usr/@DATADIRNAME@/locale/eo/LC_MESSAGES/gnubiff.mo

Here @DATADIRNAME@ is a literal directory name, but it should have been
substituted with “share”.

This happens because aclocal.m4 gets regenerated, but po/Makefile.in.in does
not (and old Makefile.in.in references a variable that newer aclocal.m4 no
longer substitutes).

The attached patch makes debian/rules call “intltoolize --copy” to make sure
that po/Makefile.in.in gets regenerated too.

--
Dmitry Shachnev
--- gnubiff-2.2.16/debian/rules
+++ gnubiff-2.2.16/debian/rules
@@ -8,6 +8,7 @@
 
 override_dh_auto_configure:
 	autoreconf -fi
+	intltoolize --force --copy --automake
 	dh_auto_configure -- --with-password
 
 override_dh_auto_build:

Attachment: signature.asc
Description: PGP signature

Reply via email to