Date: Wed, 15 Nov 2017 18:04:16 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 223673] pkg base (i.e. "make packages") produces nonreproducible output with make -j Message-ID: <bug-223673-8-K8mme6ZlVg@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-223673-8@https.bugs.freebsd.org/bugzilla/> References: <bug-223673-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223673 --- Comment #1 from commit-hook@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 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223673-8-K8mme6ZlVg>