From owner-svn-src-head@freebsd.org Tue Sep 11 19:19:08 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 20744109A9B6; Tue, 11 Sep 2018 19:19:08 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CBE9E86289; Tue, 11 Sep 2018 19:19:07 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C6C911BFE3; Tue, 11 Sep 2018 19:19:07 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8BJJ7lu017496; Tue, 11 Sep 2018 19:19:07 GMT (envelope-from emaste@FreeBSD.org) Received: (from emaste@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8BJJ7be017495; Tue, 11 Sep 2018 19:19:07 GMT (envelope-from emaste@FreeBSD.org) Message-Id: <201809111919.w8BJJ7be017495@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: emaste set sender to emaste@FreeBSD.org using -f From: Ed Maste Date: Tue, 11 Sep 2018 19:19:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r338598 - head/sys/conf X-SVN-Group: head X-SVN-Commit-Author: emaste X-SVN-Commit-Paths: head/sys/conf X-SVN-Commit-Revision: 338598 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2018 19:19:08 -0000 Author: emaste Date: Tue Sep 11 19:19:07 2018 New Revision: 338598 URL: https://svnweb.freebsd.org/changeset/base/338598 Log: Switch reproducible builds to unmodified src tree mode newvers.sh supports two modes for reproducible builds: -r Reproducible build. Do not embed directory names, user names, time stamps or other dynamic information into the output file. This is intended to allow two builds done at different times and even by different people on different hosts to produce identical output. -R Reproducible build if the tree represents an unmodified checkout from a version control system. Metadata is included if the tree is modified. Switch to the second mode when reproducible builds are enabled. The value of a reproducible build is much less when building from an uncontrolled, modified src tree, and -R likely provides the best compromise in allowing the REPRODUCIBLE_BUILD knob to be enabled by default for the release. Approved by: re (kib) Sponsored by: The FreeBSD Foundation Modified: head/sys/conf/kern.post.mk Modified: head/sys/conf/kern.post.mk ============================================================================== --- head/sys/conf/kern.post.mk Tue Sep 11 18:50:40 2018 (r338597) +++ head/sys/conf/kern.post.mk Tue Sep 11 19:19:07 2018 (r338598) @@ -382,7 +382,7 @@ config.o env.o hints.o vers.o vnode_if.o: ${NORMAL_CTFCONVERT} .if ${MK_REPRODUCIBLE_BUILD} != "no" -REPRO_FLAG="-r" +REPRO_FLAG="-R" .endif vers.c: $S/conf/newvers.sh $S/sys/param.h ${SYSTEM_DEP} MAKE="${MAKE}" sh $S/conf/newvers.sh ${REPRO_FLAG} ${KERN_IDENT}