Remove absolute symlink in $MAKEOBJDIR

Marcel Moolenaar marcel at xcllnt.net
Sun Jun 1 22:55:01 PDT 2003


On Mon, Jun 02, 2003 at 02:13:55PM +0900, Jun Kuriyama wrote:
> 
> Index: bin/csh/Makefile
> ===================================================================
> RCS file: /home/ncvs/src/bin/csh/Makefile,v
> retrieving revision 1.30
> diff -u -r1.30 Makefile
> --- bin/csh/Makefile	2 May 2003 06:39:13 -0000	1.30
> +++ bin/csh/Makefile	2 May 2003 15:01:02 -0000
> @@ -73,7 +73,7 @@
>  .endfor
>  
>  csh.1: tcsh.man
> -	ln -sf ${.ALLSRC} ${.TARGET}
> +	cp ${.ALLSRC} ${.TARGET}
>  
>  build-tools: gethost
>  

Please don't use cp(1). When source files are read-only, such as for
perforce trees, a buildworld -DNOCLEAN can fail because the copy in
the object directory will be read-only too. Use cat(1) or something
else that yields a copy that is writable.

Thanks,

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel at xcllnt.net


More information about the freebsd-current mailing list