libmatchbox uses AM_PATH_CHECK and even though the macro is only meant
to be called if a ./configure option is passed, 'autoreconf' of
'aclocal' will attempt to resolve the macro simply because it exists in
configure.ac for that package.

This bug means that it is now impossible to reconfigure the autotools
generated files in libmatchbox because aclocal will be called before
any patch can be implemented via debian/rules (as part of the clean
target).

libmatchbox needs to run autoreconf because it is an old upstream
(2007) and the libtool macros need to be updated to allow the removal
of a RPATH when cross-building.

The only fix is to manually patch configure.ac before calling
dpkg-buildpackage:

--- old/libmatchbox-1.9/configure.ac    2006-08-04 11:32:31.000000000 +0100
+++ libmatchbox-1.9/configure.ac        2009-07-02 08:47:36.000000000 +0100
@@ -316,9 +316,8 @@
 have_check=no
 
 if test x$enable_unit_tests = xyes; then
-  AM_PATH_CHECK(,have_check=yes, have_check=no)
+  PKG_CHECK_MODULES([CHECK], [check], have_check=yes)
 fi
-
 AM_CONDITIONAL(HAVE_CHECK, test x$have_check = xyes)
 
 dnl ------ Substitute in found libs, clags to Makefiles etc -----------------

This patch has to be applied before the clean target is called which
makes it impossible to build the package properly.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgp9hA6Nq7OeW.pgp
Description: PGP signature

Reply via email to