Hi everybody. While trying to run the automake test scripts with the "Heirloom sh" (http://heirloom.sourceforge.net/sh.html, which should be quite similar to the Solaris/OpenSolaris shell), I ran into a spurious failure in test `vala4.test'. I still don't understand the real cause of the failure (whose log is allegated), but I managed to fix it with a quick and dirty patch, which is attached.
I hope someone can understand the reason of the spurious failure, and maybe provide a better fix. Regards, Stefano
/home/stefano/src/automake/tests:/home/stefano/bin/linux:/home/stefano/bin:/usr/local/bin:/usr/lib/jvm/java-6-sun-1.6.0.15/bin:/opt/bin:/usr/games:/usr/bin:/usr/sbin:/bin:/sbin vala4: running libtoolize --version libtoolize (GNU libtool) 2.2.6 Written by Gary V. Vaughan <g...@gnu.org>, 2003 Copyright (C) 2008 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 ./vala4.test + pwd /home/stefano/src/automake/tests/vala4.dir + set -e + cat + : + cat + chmod +x valac + libtoolize libtoolize: putting auxiliary files in `.'. libtoolize: linking file `./ltmain.sh' libtoolize: You should add the contents of the following files to `aclocal.m4': libtoolize: `/usr/share/aclocal/libtool.m4' libtoolize: `/usr/share/aclocal/ltoptions.m4' libtoolize: `/usr/share/aclocal/ltversion.m4' libtoolize: `/usr/share/aclocal/ltsugar.m4' libtoolize: `/usr/share/aclocal/lt~obsolete.m4' libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. + aclocal-1.11a -Werror -Wno-syntax -I /home/stefano/src/automake/tests/../m4 -I /usr/local/share/aclocal + automake-1.11a --foreign -Werror -Wall -a configure.in:5: installing `./config.guess' configure.in:5: installing `./config.sub' + autoconf + pwd + ./configure VALAC=/home/stefano/src/automake/tests/vala4.dir/valac checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for valac... /home/stefano/src/automake/tests/vala4.dir/valac checking /home/stefano/src/automake/tests/vala4.dir/valac is at least version 0.0.1... yes configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands config.status: executing libtool commands + sed s/AM_PROG_VALAC.*/AM_PROG_VALAC([9999.9])/ + mv -f t configure.in + autoconf --force + pwd + ./configure VALAC=/home/stefano/src/automake/tests/vala4.dir/valac checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for valac... /home/stefano/src/automake/tests/vala4.dir/valac checking /home/stefano/src/automake/tests/vala4.dir/valac is at least version 9999.9... no configure: error: Vala 9999.9 not found. exit_status=1 + set +e + cd /home/stefano/src/automake/tests + test 0 != 0 + echo vala4: exit 1 vala4: exit 1 + exit 1
From 3ce5267ee2794c00f71e74906065b4d113acb43b Mon Sep 17 00:00:00 2001 From: Stefano Lattarini <stefano.lattar...@gmail.com> Date: Sun, 11 Oct 2009 13:37:28 +0200 Subject: [PATCH] Testsuite: fixed problem with Solaris sh. * tests/vala4.test: Fixed a spurious failure with Solaris sh. --- ChangeLog | 5 +++++ tests/vala4.test | 5 ++++- 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3286548..765f88c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-10-11 Stefano Lattarini <stefano.lattar...@gmail.com> + + Testsuite: fixed problem with Solaris sh. + * tests/vala4.test: Fixed a spurious failure with Solaris sh. + 2009-10-11 Ralf Wildenhues <ralf.wildenh...@gmx.de> Improve description of the various *LINK variables. diff --git a/tests/vala4.test b/tests/vala4.test index 4301d45..3c1cf98 100755 --- a/tests/vala4.test +++ b/tests/vala4.test @@ -46,13 +46,16 @@ chmod +x valac libtoolize $ACLOCAL $AUTOMAKE -a + $AUTOCONF ./configure "VALAC=`pwd`/valac" sed 's/AM_PROG_VALAC.*/AM_PROG_VALAC([9999.9])/' < configure.in >t mv -f t configure.in $AUTOCONF --force -./configure "VALAC=`pwd`/valac" && Exit 1 +# NOTE: without the `:' before the `Exit', Solaris sh dies unexpectedly. +# Go figure. +./configure "VALAC=`pwd`/valac" && { :; Exit 1; } sed 's/AM_PROG_VALAC.*/AM_PROG_VALAC([1.2.3])/' < configure.in >t mv -f t configure.in -- 1.6.3.3