From owner-freebsd-current@FreeBSD.ORG Fri Dec 9 14:25:42 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7C1B1065670 for ; Fri, 9 Dec 2011 14:25:42 +0000 (UTC) (envelope-from erik@cederstrand.dk) Received: from csmtp2.one.com (csmtp2.one.com [91.198.169.22]) by mx1.freebsd.org (Postfix) with ESMTP id A3BCF8FC17 for ; Fri, 9 Dec 2011 14:25:42 +0000 (UTC) Received: from [10.0.0.82] (unknown [217.157.7.210]) by csmtp2.one.com (Postfix) with ESMTPA id D40103018615; Fri, 9 Dec 2011 14:25:40 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Erik Cederstrand In-Reply-To: <20111209133722.GC91429@lo0.su> Date: Fri, 9 Dec 2011 15:25:40 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <4EFFCC14-944D-48A5-BB5A-CC667159F8BD@cederstrand.dk> References: <20111209133722.GC91429@lo0.su> To: Ruslan Ermilov X-Mailer: Apple Mail (2.1084) Cc: FreeBSD Current Subject: Re: Deterministic builds X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2011 14:25:43 -0000 Hi Ruslan, 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. >=20 > 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? Kind regards, Erik=