]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
newvers.sh: add options to eliminate kernel build metadata
authoremaste <emaste@FreeBSD.org>
Mon, 16 Jan 2017 01:38:34 +0000 (01:38 +0000)
committeremaste <emaste@FreeBSD.org>
Mon, 16 Jan 2017 01:38:34 +0000 (01:38 +0000)
commita93bb23350d7c5e28a97ddc87d44464c5f82a7e7
tree233b2fa7712c01ec660b53ed4e77d665baff05c6
parent87053058c930d6c4b7ba3d50296b56ec1083a9c2
newvers.sh: add options to eliminate kernel build metadata

MFC r310112, r310114, r310273, r310279

r310112: newvers.sh: add option to eliminate kernel build metadata

Build metadata (username, hostname, etc.) prevents the FreeBSD kernel
from building reproducibly. Add an option to disable inclusion of that
metadata but retain the release information and SVN/git VCS details.
See https://reproducible-builds.org/ for additional background.

r310114: newvers.sh: correct typo in comment

r310273: newvers.sh: add -R option to include metadata only for
         unmodified src tree

r310279: newvers.sh: consider as modified SVN mixed revision and other cases

The newvers -R option is intended to include build metadata (e.g. user,
host, time) if the build is from an unmodified VCS tree. For subversion
it considered a trailing 'M' as an indication of a modified tree, and
any other version string as modified.

Also include mixed revision checkouts (e.g. 123:126), switched (123S)
and partial (123P) working copies as modified: the revision number is
insufficient to uniquely determine which source was used for the build.
sys/conf/newvers.sh