From: Stefano Lattarini Date: Tue, 3 Jan 2012 12:56:17 +0000 (+0100) Subject: tests: fix spurious failures in 'pr300*.test' X-Git-Tag: v1.11.2b~11^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4337813be1c35f0d821283aae2ccb3d67c2ff1df;p=thirdparty%2Fautomake.git 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. --- diff --git a/tests/pr300-lib.test b/tests/pr300-lib.test index ee46b4b44..8f96db11a 100755 --- a/tests/pr300-lib.test +++ b/tests/pr300-lib.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2002, 2007, 2010 Free Software Foundation, Inc. +# Copyright (C) 2002, 2007, 2010, 2012 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -47,7 +47,12 @@ $ACLOCAL $AUTOCONF $AUTOMAKE --copy --add-missing -./configure --prefix "`pwd`/inst" +# We pass '--libdir' explicitly, to avoid spurious failures due to users +# or distributions possibly overriding '${libdir}' in their $CONFIG_SITE +# file (for example, defining it to '${prefix}/lib64' on 64-bit systems, +# as is the case with openSUSE 12.1). 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 c47f32eba..06d3c32b8 100755 --- a/tests/pr300-ltlib.test +++ b/tests/pr300-ltlib.test @@ -1,6 +1,6 @@ #! /bin/sh -# Copyright (C) 2002, 2007, 2008, 2009, 2010 Free Software Foundation, -# Inc. +# Copyright (C) 2002, 2007, 2008, 2009, 2010, 2012 Free Software +# Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -49,7 +49,12 @@ $ACLOCAL $AUTOCONF $AUTOMAKE --copy --add-missing -./configure --prefix "`pwd`/inst" +# We pass '--libdir' explicitly, to avoid spurious failures due to users +# or distributions possibly overriding '${libdir}' in their $CONFIG_SITE +# file (for example, defining it to '${prefix}/lib64' on 64-bit systems, +# as is the case with openSUSE 12.1). 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