From owner-freebsd-arch@freebsd.org Wed Dec 2 17:37:12 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 3334EA3F09C for ; Wed, 2 Dec 2015 17:37:12 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0284C1136 for ; Wed, 2 Dec 2015 17:37:12 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by igcto18 with SMTP id to18so36866543igc.0 for ; Wed, 02 Dec 2015 09:37:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=qzgjzrhbQk/fDtNvxZ9kP78cT8MfaMhK6Vrxy4AZGOE=; b=xK3sRUkHjRQJxuvwmBzww08GxT+QRI7H16e6YfB/5dwgA3hIHdQ9jrVqLXeN1UfpT4 AJMYungQ/m4G45sM16pknG9pqW88I18QPVuZCJPSKl58iNzNRvyoSzf/U7Yto/Ll29SU v7WBFUFP8/T9N4pLiQ0AtaugwEck6qkiuNDDiBYUnbsr8IPfoMVxZiwVO9JQaD3n+17d 1oJ5ASBIX4EVUGgm+W0O8IIehUwd87ZJZvh9RB/rjvpmVocAA84vRcXhtqz4UqeB0GJc SIibA01QJDikO8CMnpITMsdpZOa5AIec/dsJe+YOnd+J58qvCbS7DAb6XQjSRJ9MAsD1 bZnA== X-Received: by 10.50.43.234 with SMTP id z10mr5095696igl.58.1449077831438; Wed, 02 Dec 2015 09:37:11 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.169.85 with HTTP; Wed, 2 Dec 2015 09:36:52 -0800 (PST) From: Ed Maste Date: Wed, 2 Dec 2015 17:36:52 +0000 X-Google-Sender-Auth: ViLv3FjhbfYQMcsqrRs47peIeMI Message-ID: Subject: Removing build metadata, for reproducible kernel builds To: "freebsd-arch@freebsd.org" Content-Type: text/plain; charset=UTF-8 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 17:37:12 -0000 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.