[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CVS 1.11 sanity.sh fails at multiroot-log-1 under HPUX 10.20
From: |
James Youngman |
Subject: |
Re: CVS 1.11 sanity.sh fails at multiroot-log-1 under HPUX 10.20 |
Date: |
22 Oct 2000 09:30:06 +0100 |
User-agent: |
Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.3 |
Lenny Foner <address@hidden> 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 <address@hidden> is 64A95EE5 (F1B83152).
- CVS 1.11 sanity.sh fails at multiroot-log-1 under HPUX 10.20, Lenny Foner, 2000/10/20
- Re: CVS 1.11 sanity.sh fails at multiroot-log-1 under HPUX 10.20,
James Youngman <=
- CVS 1.11 sanity.sh fails at multiroot-log-1 under HPUX 10.20, Lenny Foner, 2000/10/23
- CVS 1.11 sanity.sh fails at multiroot-log-1 under HPUX 10.20, Lenny Foner, 2000/10/25
- Re: CVS 1.11 sanity.sh fails at multiroot-log-1 under HPUX 10.20, Larry Jones, 2000/10/25
- CVS 1.11 sanity.sh fails at multiroot-log-1 under HPUX 10.20, Lenny Foner, 2000/10/26
- Re: CVS 1.11 sanity.sh fails at multiroot-log-1 under HPUX 10.20, Larry Jones, 2000/10/26
- Re: CVS 1.11 sanity.sh fails at multiroot-log-1 under HPUX 10.20, Frederic Brehm, 2000/10/26