pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/32789



The following reply was made to PR pkg/32789; it has been noted by GNATS.

From: Dan LaBell <dan4l-nospam%verizon.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: Simon Burge <simonb%wasabisystems.com@localhost>
Subject: Re: pkg/32789
Date: Thu, 09 Mar 2006 21:52:06 -0500

 >
 > >How-To-Repeat:
 >         On a Mac OS machine:
 >                 cd .../pkgsrc/bootstrap
 >                 sh bootstrap
 > >Fix:
 >         None given.
 
 I was able to get past this, by suspending the bootstrap process (^Z) 
 at the point where
 one sees the line:
 config.status: creating unit-tests/Makefile
 then editing the 
 ./pkgsrc/bootstrap/work/bmake/Darwin/unit-tests/Makefile, insuring 
 success by
 adding '|| true' liberally.  Then resuming the bootstrap process (fg) , 
 bootstrap then continues,
 and completes.  Afterwards I built pdksh, lha, zoo, lzop. lzo, without 
 any problems.  I did have problems with static-bash2.  For what it's 
 worth, I've tested lzop by reading lzop files produced on NetBSD i386 
 machine (ok).  So, it might work for a partial work around, if it's a 
 safe assumption, that programs will simply fail to build, and not build 
 to failure.
 
 ------diff---
 41c41
 <       -@${.MAKE} -k -f ${UNIT_TESTS}/$@
 ---
  >       -@${.MAKE} -k -f ${UNIT_TESTS}/$@ || true
 62,63c63,64
 <       tail ${.TARGET}.out; mv ${.TARGET}.out ${.TARGET}.fail; exit 1; 
 }
 <       diff -u ${UNIT_TESTS}/${.TARGET}.exp ${.TARGET}.out
 ---
  >       tail ${.TARGET}.out; mv ${.TARGET}.out ${.TARGET}.fail; exit 1; 
 } || true
  >       diff -u ${UNIT_TESTS}/${.TARGET}.exp ${.TARGET}.out || true
 66c67
 <       mv test.out ${srcdir}/test.exp
 ---
  >       mv test.out ${srcdir}/test.exp || true
 ----------------
 ( The above is for descriptive purposes only, don't mistake it for a 
 fix, it simply illustrates
    the technique, or should I say hack?, that I applied to the Makefile, 
 -- it gets ./bootstrap
    to complete, by forcing all the unit tests to pass, but I can't say 
 whether that's really a good
    thing --I imagine they are there for a reason. )
 
 I'm including my test.exp file, since it may be relevant.  Of course, 
 I'm also on 10.3.9,
 and pkgsrc is as of today.
 -------------bootstrap/work/bmake/unit-tests/test.exp ------------
 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
 
 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}
 LIST="one two three four five six"
 LIST:ts,="one,two,three,four,five,six"
 LIST:ts/:tu="ONE/TWO/THREE/FOUR/FIVE/SIX"
 LIST:ts::tu="ONE:TWO:THREE:FOUR:FIVE:SIX"
 LIST:ts:tu="ONETWOTHREEFOURFIVESIX"
 LIST:tu:ts/="ONE/TWO/THREE/FOUR/FIVE/SIX"
 LIST:ts:="one:two:three:four:five:six"
 LIST:ts="onetwothreefourfivesix"
 LIST:ts:S/two/2/="one2threefourfivesix"
 LIST:S/two/2/:ts="one2threefourfivesix"
 LIST:ts/:S/two/2/="one/2/three/four/five/six"
 Pretend the '/' in '/n' etc. below are back-slashes.
 LIST:ts/n="one
 two
 three
 four
 five
 six"
 LIST:ts/t="one two     three   four    five    six"
 LIST:ts/012:tu="ONE
 TWO
 THREE
 FOUR
 FIVE
 SIX"
 make: Bad modifier `:tx' for LIST
 LIST:tx="}"
 make: Bad modifier `:ts\x' for LIST
 LIST:ts/x:tu="\x:tu}"
 FU_mod-ts="a/b/cool"
 FU_mod-ts:ts:T="cool" == cool?
 B.${AAA:ts}="Baaa" == Baaa?
 make: Bad modifier `:[]' for LIST
 LIST:[]="" is an error
 LIST:[0]="one two three four five six"
 LIST:[0x0]="one two three four five six"
 LIST:[000]="one two three four five six"
 LIST:[*]="one two three four five six"
 LIST:[@]="one two three four five six"
 LIST:[0]:C/ /,/="one,two three four five six"
 LIST:[0]:C/ /,/g="one,two,three,four,five,six"
 LIST:[0]:C/ /,/1g="one,two,three,four,five,six"
 LIST:[*]:C/ /,/="one,two three four five six"
 LIST:[*]:C/ /,/g="one,two,three,four,five,six"
 LIST:[*]:C/ /,/1g="one,two,three,four,five,six"
 LIST:[@]:C/ /,/="one two three four five six"
 LIST:[@]:C/ /,/g="one two three four five six"
 LIST:[@]:C/ /,/1g="one two three four five six"
 LIST:[@]:[0]:C/ /,/="one,two three four five six"
 LIST:[0]:[@]:C/ /,/="one two three four five six"
 LIST:[@]:[*]:C/ /,/="one,two three four five six"
 LIST:[*]:[@]:C/ /,/="one two three four five six"
 EMPTY=""
 EMPTY:[#]="1" == 1 ?
 ESCAPEDSPACE="\ "
 ESCAPEDSPACE:[#]="1" == 1 ?
 REALLYSPACE=" "
 REALLYSPACE:[#]="1" == 1 ?
 LIST:[#]="6"
 LIST:[0]:[#]="1" == 1 ?
 LIST:[*]:[#]="1" == 1 ?
 LIST:[@]:[#]="6"
 LIST:[1]:[#]="1"
 LIST:[1..3]:[#]="3"
 EMPTY:[1]=""
 ESCAPEDSPACE="\ "
 ESCAPEDSPACE:[1]="\ "
 REALLYSPACE=" "
 REALLYSPACE:[1]="" == "" ?
 REALLYSPACE:[*]:[1]=" " == " " ?
 LIST:[1]="one"
 make: Bad modifier `:[1.]' for LIST
 LIST:[1.]="" is an error
 make: Bad modifier `:[1].' for LIST
 LIST:[1].="}" is an error
 LIST:[2]="two"
 LIST:[6]="six"
 LIST:[7]=""
 LIST:[999]=""
 make: Bad modifier `:[-]' for LIST
 LIST:[-]="" is an error
 make: Bad modifier `:[--]' for LIST
 LIST:[--]="" is an error
 LIST:[-1]="six"
 LIST:[-2]="five"
 LIST:[-6]="one"
 LIST:[-7]=""
 LIST:[-999]=""
 LONGLIST:[17]="17"
 LONGLIST:[0x11]="17"
 LONGLIST:[021]="17"
 LIST:[0]:[1]="one two three four five six"
 LIST:[*]:[1]="one two three four five six"
 LIST:[@]:[1]="one"
 LIST:[0]:[2]=""
 LIST:[*]:[2]=""
 LIST:[@]:[2]="two"
 LIST:[*]:C/ /,/:[2]=""
 LIST:[*]:C/ /,/:[*]:[2]=""
 LIST:[*]:C/ /,/:[@]:[2]="three"
 make: Bad modifier `:[1.]' for LIST
 LIST:[1.]="" is an error
 make: Bad modifier `:[1..]' for LIST
 LIST:[1..]="" is an error
 LIST:[1..1]="one"
 make: Bad modifier `:[1..1.]' for LIST
 LIST:[1..1.]="" is an error
 LIST:[1..2]="one two"
 LIST:[2..1]="two one"
 LIST:[3..-2]="three four five"
 LIST:[-4..4]="three four"
 make: Bad modifier `:[0..1]' for LIST
 LIST:[0..1]="" is an error
 make: Bad modifier `:[-1..0]' for LIST
 LIST:[-1..0]="" is an error
 LIST:[-1..1]="six five four three two one"
 LIST:[0..0]="one two three four five six"
 LIST:[3..99]="three four five six"
 LIST:[-3..-99]="four three two one"
 LIST:[-99..-3]="one two three four"
 HASH="#" == "#" ?
 LIST:[${HASH}]="6"
 LIST:[${ZERO}]="one two three four five six"
 LIST:[${ZERO}x${ONE}]="one"
 LIST:[${ONE}]="one"
 LIST:[${MINUSONE}]="six"
 LIST:[${STAR}]="one two three four five six"
 LIST:[${AT}]="one two three four five six"
 make: Bad modifier `:[${EMPTY' for LIST
 LIST:[${EMPTY}]="" is an error
 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>
 ------------------------------------------------------------------
 



Home | Main Index | Thread Index | Old Index