svn commit: r213643 - head/usr.bin/ar

Erik Cederstrand erik at cederstrand.dk
Sat Oct 9 20:08:51 UTC 2010


Den 09/10/2010 kl. 07.43 skrev Ben Kaduk:

> On Sat, Oct 9, 2010 at 1:31 AM, Tim Kientzle <kientzle at freebsd.org> wrote:
>> Author: kientzle
>> Date: Sat Oct  9 05:31:08 2010
>> New Revision: 213643
>> URL: http://svn.freebsd.org/changeset/base/213643
>> 
>> Log:
>>  Add -D (deterministic) option to ar.
>>  When set, it forces all timestamps and owners to zero and
>>  modes to 0644.  Useful for producing libraries that are
>>  bitwise identical across multiple build runs.
> 
> 
> Thanks!  Has anyone looked at the feasibility of setting AR?=ar -D in
> sys.mk?  I will probably try this when I get my scratch box up again.

I'm looking into this now, as I needed the patch to do binary diffs on builds. One problem is that ARFLAGS is overridden a lot of places in contrib/ code:

contrib/cvs/lib/Makefile.in:67:ARFLAGS=cru
contrib/cvs/diff/Makefile.in:45:ARFLAGS=cru
contrib/ntp/libntp/Makefile.in:55:ARFLAGS=cru
contrib/ntp/libparse/Makefile.in:55:ARFLAGS=cru
contrib/ntp/arlib/Makefile.in:54:ARFLAGS=cru
contrib/ntp/ntpd/Makefile.in:61:ARFLAGS=cru
contrib/tcp_wrappers/Makefile:95:ARFLAGS=rv
contrib/tcp_wrappers/Makefile:101:ARFLAGS=rv
[...]
contrib/tcp_wrappers/Makefile:404:ARFLAGS=rv
contrib/bind9/configure.in:73:ARFLAGS=cruv
contrib/gcclibs/libcpp/Makefile.in:30:ARFLAGS=cru
contrib/gcclibs/libdecnumber/Makefile.in:30:ARFLAGS=cru
contrib/dtc/Makefile:49:ARFLAGS=rc
crypto/heimdal/appl/ftp/common/Makefile.in:93:ARFLAGS=cru
crypto/heimdal/appl/telnet/libtelnet/Makefile.in:93:ARFLAGS=cru
crypto/heimdal/lib/45/Makefile.in:101:ARFLAGS=cru
crypto/openssl/Makefile.org:66:ARFLAGS=
crypto/openssl/Makefile:68:ARFLAGS=
share/mk/sys.mk:36:ARFLAGS?=-rv
share/mk/sys.mk:38:ARFLAGS?=rl
usr.bin/make/PSD.doc/tutorial.ms:2968:ARFLAGS?=crl

Thanks,
Erik


More information about the svn-src-head mailing list