Hello,
Was taking a peek at this ticket:
http://wiki.linuxfromscratch.org/lfs/ticket/1625
I thought I'd test out current expect/tcl to see if I couldn't tickle
the bug. On a finished system, I mimicked the chapter 5 tcl/expect
installation to a temporary location, something like /test/bin. Then I
tried the test case from this link:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=43310
I couldn't get the bug to show. Expect worked as it was supposed to.
So, I thought I'd try a bit more of an extended test. The LFS book says
about the expect patch, "First, fix a bug that can result in false
failures during the GCC test suite run". I figured that I'd run two
different builds up to the final installation of gcc, one with and one
without the expect patch, then I'd compare the test-suite logs and see
if there was any difference. I've attached diffs of the test-suite logs
from glibc, binutils and gcc (it doesn't seem that glibc makes use of
expect, but I included it anyway) and there doesn't seem to be anything
noteworthy in them. In fact, the only difference seems to be
run-specific variables, like timestamps.
Interestingly, however, I tried HJL's testcase again on each of the
produced expects, and this time, the unpatched expect within the chroot
environment *did* show the bug he mentioned, while the patched expect
did not.
So, I'm not sure where this leaves us. The bug does still seem to exist
in expect, but, at least currently, the test-suites that make use of
expect seem unaffected by the inclusion or absence of the patch.
--
JH
--- jhalfs/test-logs/068-binutils 2006-11-01 02:21:57.000000000 -0500
+++ jhalfs-with-expect-patch/test-logs/068-binutils 2006-10-31
12:35:50.000000000 -0500
@@ -1,5 +1,5 @@
-Wed Nov 1 07:13:50 Local time zone must be set--see zic manual page 2006
+Tue Oct 31 17:27:42 Local time zone must be set--see zic manual page 2006
spawn ls
make[1]: Entering directory `/sources/binutils-build'
@@ -51,7 +51,7 @@
fi
WARNING: Couldn't find the global config file.
WARNING: Couldn't find tool init file
-Test Run By root on Wed Nov 1 07:19:18 2006
+Test Run By root on Tue Oct 31 17:33:10 2006
Native configuration is i686-pc-linux-gnu
=== binutils tests ===
@@ -121,7 +121,7 @@
fi
WARNING: Couldn't find the global config file.
WARNING: Couldn't find tool init file
-Test Run By root on Wed Nov 1 07:19:25 2006
+Test Run By root on Tue Oct 31 17:33:17 2006
Native configuration is i686-pc-linux-gnu
=== gas tests ===
@@ -280,7 +280,7 @@
fi
WARNING: Couldn't find the global config file.
WARNING: Couldn't find tool init file
-Test Run By root on Wed Nov 1 07:19:57 2006
+Test Run By root on Tue Oct 31 17:33:49 2006
Native configuration is i686-pc-linux-gnu
=== ld tests ===
--- jhalfs/test-logs/069-gcc 2006-11-01 04:19:39.000000000 -0500
+++ jhalfs-with-expect-patch/test-logs/069-gcc 2006-10-31 14:33:33.000000000
-0500
@@ -1,5 +1,5 @@
-Wed Nov 1 07:23:12 Local time zone must be set--see zic manual page 2006
+Tue Oct 31 17:37:05 Local time zone must be set--see zic manual page 2006
make[1]: Entering directory `/sources/gcc-build'
make[2]: Entering directory `/sources/gcc-build'
@@ -27,7 +27,7 @@
export TCL_LIBRARY ; fi ; \
runtest --tool gcc )
WARNING: Couldn't find the global config file.
-Test Run By root on Wed Nov 1 07:43:20 2006
+Test Run By root on Tue Oct 31 17:57:14 2006
Native configuration is i686-pc-linux-gnu
=== gcc tests ===
@@ -120,7 +120,7 @@
export TCL_LIBRARY ; fi ; \
runtest --tool g++ )
WARNING: Couldn't find the global config file.
-Test Run By root on Wed Nov 1 08:33:55 2006
+Test Run By root on Tue Oct 31 18:47:45 2006
Native configuration is i686-pc-linux-gnu
=== g++ tests ===
@@ -222,7 +222,7 @@
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
fi
WARNING: Couldn't find the global config file.
-Test Run By root on Wed Nov 1 08:49:10 2006
+Test Run By root on Tue Oct 31 19:02:59 2006
Native configuration is i686-pc-linux-gnu
=== libstdc++ tests ===
@@ -316,7 +316,7 @@
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
fi
WARNING: Couldn't find the global config file.
-Test Run By root on Wed Nov 1 09:14:38 2006
+Test Run By root on Tue Oct 31 19:28:30 2006
Native configuration is i686-pc-linux-gnu
=== libmudflap tests ===
--- jhalfs/test-logs/066-glibc 2006-11-01 01:49:40.000000000 -0500
+++ jhalfs-with-expect-patch/test-logs/066-glibc 2006-10-31
12:03:35.000000000 -0500
@@ -1,5 +1,5 @@
-Wed Nov 1 06:02:27 Local time zone must be set--see zic manual page 2006
+Tue Oct 31 16:16:20 Local time zone must be set--see zic manual page 2006
make[1]: Entering directory `/sources/glibc-build'
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.5 objdir=`pwd` check
@@ -772,7 +772,7 @@
gcc -nostdlib -nostartfiles -o
/sources/glibc-build/stdlib/test-as-const-ucontext_i
-Wl,-dynamic-linker=/lib/ld-linux.so.2 -Wl,-z,combreloc -Wl,-z,relro
/sources/glibc-build/csu/crt1.o /sources/glibc-build/csu/crti.o `gcc
--print-file-name=crtbegin.o`
/sources/glibc-build/stdlib/test-as-const-ucontext_i.o
-Wl,-rpath-link=/sources/glibc-build:/sources/glibc-build/math:/sources/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/glibc-build/crypt:/sources/glibc-build/nptl
/sources/glibc-build/libc.so.6 /sources/glibc-build/libc_nonshared.a -lgcc
-Wl,--as-needed -lgcc_s -Wl,--no-as-needed `gcc --print-file-name=crtend.o`
/sources/glibc-build/csu/crtn.o
GCONV_PATH=/sources/glibc-build/iconvdata LC_ALL=C
/sources/glibc-build/elf/ld-linux.so.2 --library-path
/sources/glibc-build:/sources/glibc-build/math:/sources/glibc-build/elf:/sources/glibc-build/dlfcn:/sources/glibc-build/nss:/sources/glibc-build/nis:/sources/glibc-build/rt:/sources/glibc-build/resolv:/sources/glibc-build/crypt:/sources/glibc-build/nptl
/sources/glibc-build/stdlib/test-as-const-ucontext_i >
/sources/glibc-build/stdlib/test-as-const-ucontext_i.out
cd /sources/glibc-build/stdlib && gcc -O -include ../config.h
/sources/glibc-2.5/stdlib/isomac.c -o isomac
-/tmp/ccWZDUzR.o: In function `main':
+/tmp/ccUjjT9V.o: In function `main':
isomac.c:(.text+0x75): warning: the use of `tmpnam' is dangerous, better use
`mkstemp'
/sources/glibc-build/stdlib/isomac 'gcc' \
'-I../include -I/sources/glibc-build -I../sysdeps/i386/elf
-I../nptl/sysdeps/unix/sysv/linux/i386/i686
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386
-I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread
-I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv
-I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686
-I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486
-I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I..' >
/sources/glibc-build/stdlib/isomac.out
@@ -1982,7 +1982,7 @@
/bin/sh -e wordexp-tst.sh /sources/glibc-build/ /sources/glibc-build/elf/ \
ld-linux.so.2
cd /sources/glibc-build/posix && gcc -O -include ../config.h
/sources/glibc-2.5/posix/annexc.c -o annexc
-/tmp/ccIxPcyE.o: In function `main':
+/tmp/ccw38StU.o: In function `main':
annexc.c:(.text+0x649): warning: the use of `tmpnam' is dangerous, better use
`mkstemp'
/sources/glibc-build/posix/annexc 'gcc' \
'-I../csu -I../iconv -I../iconvdata -I../locale -I../localedata
-I../assert -I../ctype -I../intl -I../catgets -I../math -I../setjmp -I../signal
-I../stdlib -I../stdio-common -I../libio -I../dlfcn -I../malloc -I../string
-I../wcsmbs -I../timezone -I../time -I../dirent -I../grp -I../pwd -I../posix
-I../io -I../termios -I../resource -I../misc -I../socket -I../sysvipc -I../gmon
-I../gnulib -I../wctype -I../manual -I../shadow -I../po -I../argp -I../crypt
-I../nptl -I../resolv -I../nss -I../rt -I../conform -I../debug -I../libidn
-I../nptl_db -I../inet -I../hesiod -I../sunrpc -I../nis -I../nscd -I../streams
-I../login -I../elf -I../include -I/sources/glibc-build -I../sysdeps/i386/elf
-I../nptl/sysdeps/unix/sysv/linux/i386/i686
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386
-I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread
-I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv
-I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686
-I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486
-I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I..' >
/sources/glibc-build/posix/annexc.out
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page