Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Dec 2011 19:42:17 +0400
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Erik Cederstrand <erik@cederstrand.dk>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Deterministic builds
Message-ID:  <20111209154217.GD91429@lo0.su>
In-Reply-To: <4EFFCC14-944D-48A5-BB5A-CC667159F8BD@cederstrand.dk>
References:  <F813133F-485D-4612-A695-42206E44B28A@cederstrand.dk> <20111209133722.GC91429@lo0.su> <4EFFCC14-944D-48A5-BB5A-CC667159F8BD@cederstrand.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 09, 2011 at 03:25:40PM +0100, Erik Cederstrand wrote:
> Den 09/12/2011 kl. 14.37 skrev Ruslan Ermilov:
> 
> > On Fri, Dec 09, 2011 at 12:16:39PM +0100, Erik Cederstrand wrote:
> >> I've been working on a project to make it possible to produce deterministic
> >> builds with FreeBSD. By this I mean building a FreeBSD distribution twice
> >> from the same code base and having all files in the two distributions match
> >> by md5 sum. Currently, this is not the case.
> > [...]
> >> I'd be very grateful for any comments on the approach and the patch.
> > 
> > The idea is not new.  Setting CROSS_BUILD_TESTING during the buildworld
> > addressed similar issues at a time I wrote it, to compare cross builds
> > to native ones, with several exceptions.  I haven't tested it for years,
> > so things might have changed, but it's still a good idea to give it a
> > try.
> 
> I can't see that CROSS_BUILD_TESTING does anything in current other
> than adding TARGET and TARGET_ARCH to OBJTREE in src/Makefile.inc1?

Take a look at src/tools/build/Makefile.

Last time I checked (July 19, 2005) there were only the following
diffs when verifying cross-builds (verifying included doing a
native build and binary comparing it with a cross-build made on
i386/amd64):

: *:
: /usr/lib/libsupc++.a:vec.o      symbols with generated names
: /usr/lib/libobjc.a:NXConstStr.o
: /usr/lib/libobjc.a:Object.o
: /usr/lib/libobjc.a:Protocol.o
: 
: i386 <- amd64
: /usr/sbin/isdn*                 timestamp (__TIME__) (i386 only)
: 
: sparc64 <-> amd64
: /usr/share/misc/magic*.mgc      mkmagic not endianness clean


-- 
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111209154217.GD91429>