Package: attr
Version: 2.4.4
Severity: normal

attr  is not compatible with autoconf2.13 but specifies neither a
build-conflicts nor an AC_PREREQ to set a minimum autoconf version.

if autoconf2.13 is installed it fails (both for native builds and for
cross-builds) like this:
aclocal -I m4
autoconf
autoconf: Undefined macros:
configure.in:18:AC_CONFIG_MACRO_DIR([m4])
configure.in:22:AC_PROG_LIBTOOL
configure.in:39:AC_PACKAGE_GLOBALS(attr)
configure.in:40:AC_PACKAGE_UTILITIES(attr)
configure.in:41:AC_MANUAL_FORMAT
configure.in:42:AC_FUNC_GCC_VISIBILITY
make[1]: *** [configure] Error 1

This can be fixed in various ways:
1) specify a build-conflicts on autoconf2.13
2) Add AC_PREREQ([minimumversion])
3) Rename configure.in to configure.ac

Fix 1 is debian-specific, and sometimes will simply stop the build
starting, rather than automatically DTRT

Fix 2 or 3 both indicate to the scripts which try to run the correct
version of autoconf that this is 'modern autoconf' not 'ancient
autoconf'.

I have included a patch for fix2 as it is simple, and effective both
upstream and in Debian, but upstream should also consider renaming
the configure file to the modern form.



-- System Information:
Debian Release: 6.0.2
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable'), (500, 'testing'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Description: Fix for incompatibility with autoconf2.13
 This package will not build if autconf2.13 is installed.
 Adding AC_PREREQ allows the automatic checks to run the correct
 version of autconf, whichever is installed, or to get a clear error
 message about the problem.
 
Author: Wookey <woo...@linaro.org>

--- attr-2.4.44.orig/configure.in
+++ attr-2.4.44/configure.in
@@ -13,6 +13,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
+AC_PREREQ([2.59])
 AC_INIT(include/attributes.h)
 AC_CONFIG_AUX_DIR([.])
 AC_CONFIG_MACRO_DIR([m4])

Reply via email to