Date: Fri, 6 Sep 2002 04:55:11 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: "M. Warner Losh" <imp@bsdimp.com> Cc: arch@FreeBSD.ORG Subject: Re: Make more things honor NOFSCHG Message-ID: <20020906044316.T8183-100000@gamplex.bde.org> In-Reply-To: <20020905.112243.88255915.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 5 Sep 2002, M. Warner Losh wrote:
> Right now only libraries will honor NOFSCHG. Laying aside for the
> moment the whole !@#$!$#@^$#^ NOFOO vs NO_FOO bikeshed, I'd like to
> commit the following patch to make other places where -fschg are added
> to installflags. This allows one to more things over a mix of local
> file systems and NFS and have them work (right now if you build on a
> local fs, then try to delete it via nfs, it fails because one can't
> unset file flags over nfs).
>
> Comments?
>
> Warner
>
> Index: bin/rcp/Makefile
> ===================================================================
> RCS file: /cache/ncvs/src/bin/rcp/Makefile,v
> retrieving revision 1.20
> diff -u -r1.20 Makefile
> --- bin/rcp/Makefile 18 Apr 2002 07:01:34 -0000 1.20
> +++ bin/rcp/Makefile 5 Sep 2002 17:14:09 -0000
> @@ -23,6 +23,8 @@
>
> BINOWN= root
> BINMODE=4555
> +.if !defined(NOFSCHG)
> INSTALLFLAGS=-fschg
> +.endif
>
> .include <bsd.prog.mk>
> ...
Why not use the standard method of zapping install flags (INSTALLFLAGS_EDIT)?
E.g.,
INSTALLFLAGS_EDIT=':S/-fschg//g'
zaps all instances of -fschg. See the log message for bsd.prog.mk 1.84
for more examples.
Bruce
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020906044316.T8183-100000>
