Lenny Foner <[EMAIL PROTECTED]> writes:
> A completely normal ./configure; make; make check just failed:
>
> /bin/sh ./sanity.sh `pwd`/cvs
> This test should produce no other output than this line, and a final "OK".
> ./sanity.sh[22]: /usr/local/bin/expr: The parameter list is too long.
> ./sanity.sh[29]: /usr/local/bin/expr: The parameter list is too long.
> FAIL: multiroot-log-1
> make[1]: *** [check] Error 1
> make[1]: Leaving directory `/usr/local/src/cvs-1.11/src'
> make: *** [check] Error 2
>
> This is 94% of the way through sanity.sh, and I assume is because my
> expr or my shell is deficient.
This test does something broadly similar to :-
arg="some ...
... very ...
... long string ...
"
if test -z "$arg"
then
....
else
echo "$arg" > ${TESTDIR}/dotest.tmp
if $EXPR "`cat ${TESTDIR}/dotest.tmp`" : \
"$arg"${ENDANCHOR} >/dev/null; then
....
fi
fi
So, the expr command is no the first usage of the very long string,
but the expr command does include a few characters more than the
actual argument.
Sadly, the only way I can think of to make this test work on a vanilla
HPUX system is to carge up the output with sed(1) and match it in
pieces, which is nontrivial. The only way I can think of to do this
otherwise is to make a program which implements variant on expr's ":"
operator, but reads the expression from a file (thus getting round
command-length limits).
FWIW, I had a look at sanity.sh just now and noticed a typo. This
version of sanity.sh is something I checked out of CVS some time back,
so the line numbers are likely to be off.
--- sanity.sh.old Sun Oct 22 09:17:38 2000
+++ sanity.sh Sun Oct 22 09:17:57 2000
@@ -159,7 +159,7 @@
find_tool ()
{
- GLOCS="`echo $PATH | sed 's/:/ /g'` /usr/local/bin /usr/contrib/bin /usr/gnu/bin
/local/bin /local/gnu/bin /gun/bin"
+ GLOCS="`echo $PATH | sed 's/:/ /g'` /usr/local/bin /usr/contrib/bin /usr/gnu/bin
+/local/bin /local/gnu/bin /gnu/bin"
TOOL=""
for path in $GLOCS ; do
if test -x $path/g$1 ; then
--
James Youngman
Manchester, UK. +44 161 226 7339
PGP (GPG) key ID for <[EMAIL PROTECTED]> is 64A95EE5 (F1B83152).
_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs