Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2018 19:19:07 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338598 - head/sys/conf
Message-ID:  <201809111919.w8BJJ7be017495@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}



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