On 01/03/2012 04:09 AM, Bruno Haible wrote: > Hi, > Hello Bruno, thanks for the report.
> On openSUSE 12.1 system, installation of automake 1.11.2 fails: > > FAIL: instfail.test > FAIL: pr300-lib.test > FAIL: pr300-ltlib.test > > ===================================== > 3 of 872 tests failed > (39 tests were not run) > See tests/test-suite.log > Please report to bug-automake@gnu.org > ===================================== > > The first failure is because I have a dysfunctional 'emacs' program in $PATH: > Then I'd say this is not an automake bug, nor a testsuite weakness. > FAIL: pr300-lib.test (exit: 1) > ============================== > > [SNIP] > > gcc (SUSE Linux) 4.6.2 > Copyright (C) 2011 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > === Running test ./pr300-lib.test > ++ pwd > /home/bruno/data/build/automake-1.11.2/tests/pr300-lib.dir > [SNIP] > + make install > make[1]: Entering directory `/data/bruno/build/automake-1.11.2/tests/pr300- > lib.dir' > test -z > "/home/bruno/data/build/automake-1.11.2/tests/pr300-lib.dir/inst/lib64" > Uh? Where us this `lib64' coming from? Have you maybe overriden `${libdir}' in your `config.site' file? The failure here is being caused by the fact that the libraries are apparently being installed in ${prefix}/lib64 rather than in ${prefix}/lib. This could be solved by passing a proper `--libdir' switch to the configure invocation; see attached patch. > [SNIP] > > FAIL: pr300-ltlib.test (exit: 1) > ================================ > > pr300-ltlib: running libtoolize --version > libtoolize (GNU libtool) 2.4 > Written by Gary V. Vaughan <g...@gnu.org>, 2003 > > Copyright (C) 2010 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > pr300-ltlib: running gcc --version > gcc (SUSE Linux) 4.6.2 > Copyright (C) 2011 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > === Running test ./pr300-ltlib.test > ++ pwd > /home/bruno/data/build/automake-1.11.2/tests/pr300-ltlib.dir > > [SNIP] > > /bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -o subdir/liba.la \ > -rpath /home/.../pr300-ltlib.dir/inst/lib64 a.lo > Again that `lib64' ... [SNIP] > + grep 'liba.la .*-rpath .*lib/subdir' stdout > + exit_status=1 > ... which is causing this spurious failure. The fix is the same as for `pr300-lib.test' (again, see attached patch). Bruno, could you please try the patch to see if it solves your problem? Thanks, Stefano
>From 19ce9578f7dcbcf9f4e2dcbf8763601edd94cf68 Mon Sep 17 00:00:00 2001 Message-Id: <19ce9578f7dcbcf9f4e2dcbf8763601edd94cf68.1325595403.git.stefano.lattar...@gmail.com> From: Stefano Lattarini <stefano.lattar...@gmail.com> Date: Tue, 3 Jan 2012 13:56:17 +0100 Subject: [PATCH] tests: fix spurious failures in 'pr300*.test' This change fixes automake bug#10426. * tests/pr300-lib.test: Call configure with an explicit '--libdir' option, to avoid spurious failures due to users possibly overriding '${libdir}' in ther config.site files. * tests/pr300-ltlib.test: Likewise. Reported by Bruno Haible. --- tests/pr300-lib.test | 7 ++++++- tests/pr300-ltlib.test | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/pr300-lib.test b/tests/pr300-lib.test index ee46b4b..8973af0 100755 --- a/tests/pr300-lib.test +++ b/tests/pr300-lib.test @@ -47,7 +47,12 @@ $ACLOCAL $AUTOCONF $AUTOMAKE --copy --add-missing -./configure --prefix "`pwd`/inst" +# We use pass '--libdir' explicitly, to avoid spurious failures due +# to users possibly overriding '${libdir}' in ther config.site files +# (for example, defining it to '${prefix}/lib64' on 64-bit systems). +# See automake bug#10426. +cwd=`pwd` || Exit 99 +./configure --prefix "$cwd/inst" --libdir "$cwd/inst/lib" $MAKE diff --git a/tests/pr300-ltlib.test b/tests/pr300-ltlib.test index c47f32e..ba9ce72 100755 --- a/tests/pr300-ltlib.test +++ b/tests/pr300-ltlib.test @@ -49,7 +49,12 @@ $ACLOCAL $AUTOCONF $AUTOMAKE --copy --add-missing -./configure --prefix "`pwd`/inst" +# We use pass '--libdir' explicitly, to avoid spurious failures due +# to users possibly overriding '${libdir}' in ther config.site files +# (for example, defining it to '${prefix}/lib64' on 64-bit systems). +# See automake bug#10426. +cwd=`pwd` || Exit 99 +./configure --prefix "$cwd/inst" --libdir "$cwd/inst/lib" $MAKE V=1 >stdout || { cat stdout; Exit 1; } cat stdout -- 1.7.7.3