[Bug 223673] pkg base (i.e. "make packages") produces nonreproducible output with make -j
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Nov 15 18:04:16 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223673
--- Comment #1 from commit-hook at freebsd.org ---
A commit references this bug:
Author: emaste
Date: Wed Nov 15 18:03:31 UTC 2017
New revision: 325859
URL: https://svnweb.freebsd.org/changeset/base/325859
Log:
Sort pkgbase mtree metadata, for reproducible builds
Packaged base packages are created by running the stageworld and
stagekernel targets with -DNO_ROOT, and converting the resulting mtree
file into a set of pkg plists. If stage* is run with multiple processes
the order of entries in the mtree file may be nondeterministic, and the
resulting package tbz also had nondeterministic file ordering.
The mtree file generated by -DNO_ROOT builds consists of one line per
file, with the filename starting in the first column, so is easily
sorted. There's one exception: the first line of the mtree file is a
comment, but the # character sorts before the filenames anyhow and needs
no special treatment.
PR: 223673
Reviewed by: bapt, gjb
Sponsored by: The Linux Foundation, Core Infrastructure Initiative
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D13103
Changes:
head/Makefile.inc1
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list