hardcoded -C argument to ${INSTALL}

Lars Eggert larse at ISI.EDU
Tue May 6 13:13:16 PDT 2003


Poul-Henning Kamp wrote:
> In message <3EB8109D.2060307 at isi.edu>, Lars Eggert writes:
>>
>>I'm putting a script together that will remove stale pieces after an 
>>installworld, and my find+mtime approach chokes, because some uses of 
>>${INSTALL} in the Makefiles hardcode the -C argument, which will cause 
>>file modification times to not be updated if the files are identical.
> 
> I would argue this is actually the correct behaviour.o

It's probably faster because the copy operation is skipped when the 
files are identical, but otherwise the results should be identical 
(modulo the updated mtimes).

If so, putting "INSTALL=install -C" in /etc/make.conf accomplished this 
easily. The problem is that there's currently no way to turn off the 
hardcoded -C in some Makefiles.

> My suggestion for such a tool would be to run make installworld with
> a DESTDIR set, and compare the two trees ?

That's an approach I hadn't considered, but it feels more heavy-weight.

Lars
-- 
Lars Eggert <larse at isi.edu>           USC Information Sciences Institute
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3529 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030506/b5ee2334/smime.bin


More information about the freebsd-current mailing list