From owner-freebsd-arch@freebsd.org Wed Dec 2 21:53:46 2015 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4158EA3F8F9 for ; Wed, 2 Dec 2015 21:53:46 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 53F4F195C; Wed, 2 Dec 2015 21:53:44 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id XAA01812; Wed, 02 Dec 2015 23:53:35 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1a4FLD-0001Hy-Ic; Wed, 02 Dec 2015 23:53:35 +0200 Subject: Re: Removing build metadata, for reproducible kernel builds To: Ed Maste , "freebsd-arch@freebsd.org" References: From: Andriy Gapon X-Enigmail-Draft-Status: N1110 Message-ID: <565F6827.6000203@FreeBSD.org> Date: Wed, 2 Dec 2015 23:52:39 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2015 21:53:46 -0000 On 02/12/2015 19:36, Ed Maste wrote: > The main issue currently preventing kernel builds from being > reproducible[1] is the build metadata itself that's included (time, > user, host, build path). In order to make the kernel build > reproducible I plan to remove these by default, and add a src.conf > knob to enable them for developers who want them in their own builds. > > The user-facing effect of this is that the kern.version sysctl no > longer conveys this information, and uname -a changes from something > like: > > FreeBSD ref11-amd64.freebsd.org 11.0-CURRENT FreeBSD 11.0-CURRENT #0 > r288681: Mon Oct 5 01:40:11 UTC 2015 > peter@build-11.freebsd.org:/usr/obj/usr/src/sys/CLUSTER11 amd64 > > to something like: > > FreeBSD feynman 10.2-STABLE FreeBSD 10.2-STABLE #44 > r288174+7644546(stable-10) amd64 > > The current version of the change is available for review at > https://reviews.freebsd.org/D4347. > > [1] See https://reproducible-builds.org/ for more information on the > reproducible builds project. Personally, I would prefer that, at least initially, KERNEL_METADATA is "yes" by default. My thinking is that people who really need reproducible builds would have no trouble toggling the knob and the rest would have the traditional behavior. -- Andriy Gapon