Subject: RE: toolchain/18863: build.sh fails on freebsd with "rm: grep: is a directory"
To: Lubomir Sedlacik <salo@Xtrmntr.org>
From: Jonathan Cline <JCline@globespanvirata.com>
List: netbsd-bugs
Date: 10/30/2002 10:25:59
> -----Original Message-----
> From: Lubomir Sedlacik [mailto:salo@Xtrmntr.org]
> Sent: Wednesday, October 30, 2002 9:53 AM
> To: Jonathan Cline
> Cc: gnats-bugs@gnats.netbsd.org; netbsd-bugs@netbsd.org
> Subject: Re: toolchain/18863: build.sh fails on freebsd with=20
> "rm: grep:
> is a directory"
>=20
>=20
> hi,
>=20
>=20
> did you use -P flag for cvs checkout?
>=20

Thanks for the email, I guess I did not.  I have just used
"cvs update -P" and it has fixed this problem in the clean step.
Glad it was a simple user-error thing.
I also checked the docs and verified that I'm at fault here,
since they say:
>Checkout the entire source tree (including kernel)
>cvs checkout -P src
>You should now have a full set of NetBSD sources in /usr/src.=20


This problem opens up a few questions:

* can build.sh detect this and complain, forcing user to prune?

* can the clean detect empty directories and then remove them?
Ok maybe that's just a pain.



How about the following new problem?  It occurs in:

bash-2.05a$ cvs status tools/cap_mkdb/../../lib/libc/gen/getcap.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
File: getcap.c          Status: Up-to-date

   Working revision:    1.36
   Repository revision: 1.36    /cvsroot/basesrc/lib/libc/gen/getcap.c,v
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      (none)


---- cut & paste -----

install =3D=3D=3D> mktemp
mkdir -p /usr/home/jcline/NetBSD-source/src/tools/obj/tools.FreeBSD-4.6.2-R=
ELEASE-i386/bin
/usr/home/jcline/NetBSD-source/src/tools/obj/tools.FreeBSD-4.6.2-RELEASE-i3=
86/bin/nbinstall -c  -r -m 555 mktemp /usr/home/jcline/NetBSD-source/src/to=
ols/obj/tools.FreeBSD-4.6.2-RELEASE-i386/bin/nbmktemp
dependall =3D=3D=3D> cap_mkdb
/usr/home/jcline/NetBSD-source/src/tools/obj/tools.FreeBSD-4.6.2-RELEASE-i3=
86/bin/nbhost-mkdep -a -I/usr/home/jcline/NetBSD-source/src/tools/compat/ob=
j -I/usr/home/jcline/NetBSD-source/src/tools/compat/obj/include  -I/usr/hom=
e/jcline/NetBSD-source/src/tools/cap_mkdb/../compat -DHAVE_CONFIG_H  -D_FIL=
E_OFFSET_BITS=3D64  /usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../..=
/usr.bin/cap_mkdb/cap_mkdb.c /usr/home/jcline/NetBSD-source/src/tools/cap_m=
kdb/../../lib/libc/gen/getcap.c
cc -O -I/usr/home/jcline/NetBSD-source/src/tools/compat/obj -I/usr/home/jcl=
ine/NetBSD-source/src/tools/compat/obj/include  -I/usr/home/jcline/NetBSD-s=
ource/src/tools/cap_mkdb/../compat -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=3D6=
4  -c -o cap_mkdb.lo.o /usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/..=
/../usr.bin/cap_mkdb/cap_mkdb.c
/tmp/ccTH1Z6E.s: Assembler messages:
/tmp/ccTH1Z6E.s:5: Warning: Unterminated string: Newline inserted.
/tmp/ccTH1Z6E.s:6: Warning: Unterminated string: Newline inserted.
mv cap_mkdb.lo.o cap_mkdb.lo
cc -O -I/usr/home/jcline/NetBSD-source/src/tools/compat/obj -I/usr/home/jcl=
ine/NetBSD-source/src/tools/compat/obj/include  -I/usr/home/jcline/NetBSD-s=
ource/src/tools/cap_mkdb/../compat -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=3D6=
4  -c -o getcap.lo.o /usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../.=
./lib/libc/gen/getcap.c
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c: In function `cgetset':
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c:102: argument `ent' doesn't match prototype
/usr/include/stdlib.h:150: prototype declaration
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c: In function `cgetcap':
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c:158: argument `cap' doesn't match prototype
/usr/include/stdlib.h:143: prototype declaration
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c: In function `cgetent':
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c:214: argument `name' doesn't match prototype
/usr/include/stdlib.h:145: prototype declaration
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c: In function `getent':
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c:274: warning: passing arg 2 of `cgetmatch' discards qualifiers from poin=
ter target type
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c:473: warning: passing arg 2 of `cgetmatch' discards qualifiers from poin=
ter target type
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c: In function `cgetmatch':
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c:684: argument `buf' doesn't match prototype
/usr/include/stdlib.h:147: prototype declaration
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c:684: argument `name' doesn't match prototype
/usr/include/stdlib.h:147: prototype declaration
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c: In function `cgetstr':
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c:900: argument `cap' doesn't match prototype
/usr/include/stdlib.h:151: prototype declaration
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c:914: warning: passing arg 2 of `cgetcap' discards qualifiers from pointe=
r target type
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c: In function `cgetustr':
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c:1038: argument `cap' doesn't match prototype
/usr/include/stdlib.h:152: prototype declaration
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c:1052: warning: passing arg 2 of `cgetcap' discards qualifiers from point=
er target type
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c: In function `cgetnum':
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c:1121:=20
argument `cap' doesn't match prototype
/usr/include/stdlib.h:149: prototype declaration
/usr/home/jcline/NetBSD-source/src/tools/cap_mkdb/../../lib/libc/gen/getcap=
.c:1133: warning: passing arg 2 of `cgetcap' discards qualifiers from point=
er target type
*** Error code 1

Stop.
nbmake: stopped in /usr/home/jcline/NetBSD-source/src/tools/cap_mkdb
*** Error code 1



******************Legal Disclaimer**************************
"This email may contain confidential and privileged material for the sole u=
se of the intended recipient.  Any unauthorized review, use or distribution=
 by others is strictly prohibited.  If you have received the message in err=
or, please advise the sender by reply email @globespanvirata.com, and delet=
e the message. Thank you."
****************************************************************