Subject: Re: Please test bootstrap
To: Jeremy C. Reed <reed@reedmedia.net>
From: Mark E. Perkins <perkinsm@bway.net>
List: tech-pkg
Date: 11/06/2005 16:18:25
On 2005/11/05 16:24, Jeremy C. Reed wrote:
> 
> Edit in pkgsrc/bootstrap/bmake/mk/bsd.prog.mk the lines that start with
> ${PROG}:
> to remove the ${LIBC} reference.

Did that (MacOS X 10.3.9) and build of bmake appears to complete, but
then the tests fail:

CC="gcc" MAKEFLAGS=
MAKESYSPATH=`pwd`/mk:mk:/Volumes/NetBSD2/pkg/share/mk:/usr/share/mk:/usr/local/share/mk:/opt/share/mk
`pwd`/bmake -f Makefile test
cd /Volumes/NetBSD2/pkgsrc/bootstrap/work/bmake/Darwin/unit-tests &&
/Volumes/NetBSD2/pkgsrc/bootstrap/work/bmake/Darwin/bmake
TEST_MAKE=/Volumes/NetBSD2/pkgsrc/bootstrap/work/bmake/Darwin/bmake test
/Volumes/NetBSD2/pkgsrc/bootstrap/work/bmake/Darwin/bmake -f Makefile >
test.out 2>&1
diff -u /Volumes/NetBSD2/pkgsrc/bootstrap/work/bmake/unit-tests/test.exp
test.out
--- /Volumes/NetBSD2/pkgsrc/bootstrap/work/bmake/unit-tests/test.exp
Sun Nov  6 16:10:21 2005
+++ test.out    Sun Nov  6 16:11:12 2005
@@ -1,54 +1,15 @@
 comment testing start
-this is foo
-This is how a comment looks: # comment
-comment testing done
 make: "cond1" line 75: warning: extra else
 make: "cond1" line 85: warning: extra else
-2 is  prime
-A='other' B='unknown' C='clever' o='no,no'
-Passed:
- var
- ("var")
- (var != var)
- var != var
- !((var != var) && defined(name))
- var == quoted
-
-1 is not prime
-2 is  prime
-3 is  prime
-4 is not prime
-5 is  prime
+make: no target to make.

+make: stopped in unit-tests
 LIB=a X_LIBS:M${LIB${LIB:tu}} is "/tmp/liba.a"
 LIB=a X_LIBS:M*/lib${LIB}.a is "/tmp/liba.a"
 LIB=a X_LIBS:M*/lib${LIB}.a:tu is "/TMP/LIBA.A"
-LIB=b X_LIBS:M${LIB${LIB:tu}} is ""
-LIB=b X_LIBS:M*/lib${LIB}.a is ""
-LIB=b X_LIBS:M*/lib${LIB}.a:tu is ""
-LIB=c X_LIBS:M${LIB${LIB:tu}} is ""
-LIB=c X_LIBS:M*/lib${LIB}.a is ""
-LIB=c X_LIBS:M*/lib${LIB}.a:tu is ""
-LIB=d X_LIBS:M${LIB${LIB:tu}} is "/tmp/libd.a"
-LIB=d X_LIBS:M*/lib${LIB}.a is "/tmp/libd.a"
-LIB=d X_LIBS:M*/lib${LIB}.a:tu is "/TMP/LIBD.A"
-LIB=e X_LIBS:M${LIB${LIB:tu}} is "/tmp/libe.a"
-LIB=e X_LIBS:M*/lib${LIB}.a is "/tmp/libe.a"
-LIB=e X_LIBS:M*/lib${LIB}.a:tu is "/TMP/LIBE.A"
-LIST      = one two three four five six seven eigth nine ten
-LIST:O    = eigth five four nine one seven six ten three two
-# Note that 1 in every 10! trials two independently generated
-# randomized orderings will be the same.  The test framework doesn't
-# support checking probabilistic output, so we accept that the test
-# will incorrectly fail with probability 2.8E-7.
-LIST:Ox   = Ok
-LIST:O:Ox = Ok
-LISTX     = Ok
-LISTSX    = Ok
-make: Bad modifier `:OX' for LIST
-BADMOD 1  = }
-make: Bad modifier `:OxXX' for LIST
-BADMOD 2  = XX}
+make: no target to make.
+
+make: stopped in unit-tests
 LIST="one two three four five six"
 LIST:ts,="one,two,three,four,five,six"
 LIST:ts/:tu="ONE/TWO/THREE/FOUR/FIVE/SIX"
@@ -182,59 +143,13 @@
 LIST:[${LONGLIST:[21]:S/2//}]="one"
 LIST:[${LIST:[#]}]="six"
 LIST:[${LIST:[${HASH}]}]="six"
-LIST:S/ /,/="one two three four five six"
-LIST:S/ /,/W="one,two three four five six"
-LIST:S/ /,/gW="one,two,three,four,five,six"
-EMPTY:S/^/,/=","
-EMPTY:S/^/,/W=","
-LIST:C/ /,/="one two three four five six"
-LIST:C/ /,/W="one,two three four five six"
-LIST:C/ /,/gW="one,two,three,four,five,six"
-EMPTY:C/^/,/=","
-EMPTY:C/^/,/W=","
-LIST:tW="one two three four five six"
-LIST:tw="one two three four five six"
-LIST:tW:C/ /,/="one,two three four five six"
-LIST:tW:C/ /,/g="one,two,three,four,five,six"
-LIST:tW:C/ /,/1g="one,two,three,four,five,six"
-LIST:tw:C/ /,/="one two three four five six"
-LIST:tw:C/ /,/g="one two three four five six"
-LIST:tw:C/ /,/1g="one two three four five six"
-LIST:tw:tW:C/ /,/="one,two three four five six"
-LIST:tW:tw:C/ /,/="one two three four five six"
 Posix says we should execute the command as if run by system(3)
 Expect 'Hello,' and 'World!'
 Hello,
 World!
-a command
-a command prefixed by '+' executes even with -n
-another command
-make -n
-echo a command
-echo "a command prefixed by '+' executes even with -n"
-a command prefixed by '+' executes even with -n
-echo another command
-make -n -j1
-{ echo a command
-} || exit $?
-echo "a command prefixed by '+' executes even with -n"
-a command prefixed by '+' executes even with -n
-{ echo another command
-} || exit $?
-Now we expect an error...
-*** Error code 1 (continuing)
-`all' not remade because of errors.
 The answer is unknown
 The answer is unknown
 The answer is empty
-The answer is known
-The answer is
-The answer is empty
-The answer is known
-The answer is 42
-The answer is 42
 default FU=<v>fu</v> FOO=<v>foo</v> VAR=<v></v>
-two FU=<v>bar</v> FOO=<v>goo</v> VAR=<v></v>
-three FU=<v>bar</v> FOO=<v>goo</v> VAR=<v></v>
-four FU=<v>bar</v> FOO=<v>goo</v> VAR=<v>Internal</v>
-show FU=<v>bar</v> FOO=<v>goo</v> VAR=<v>Internal</v>
+*** Error code 2 (ignored)
+*** Error code 2 (ignored)
*** Error code 1

Stop.
bmake: stopped in
/Volumes/NetBSD2/pkgsrc/bootstrap/work/bmake/Darwin/unit-tests
*** Error code 1

Stop.
bmake: stopped in /Volumes/NetBSD2/pkgsrc/bootstrap/work/bmake/Darwin
make: *** [bootstrap] Error 1
===> exited with status 1
aborted.