Date: Mon, 29 Dec 2025 23:10:53 +0100 From: A FreeBSD User <freebsd@walstatt-de.de> To: Dimitry Andric <dim@FreeBSD.org> Cc: Warner Losh <imp@freebsd.org>, "src-committers@freebsd.org" <src-committers@FreeBSD.org>, "dev-commits-src-all@freebsd.org" <dev-commits-src-all@FreeBSD.org>, "dev-commits-src-main@freebsd.org" <dev-commits-src-main@FreeBSD.org> Subject: Re: git: faeaa25f5624 - main - kernel: MK_REPRODUCIBLE_PATHS for full paths vs /usr/src Message-ID: <20251229231120.5019f897@thor.sb211.local> In-Reply-To: <86EF92B6-B19D-477E-8BBF-2B25190C781C@FreeBSD.org> References: <6950e7a3.3b044.1eb2b705@gitrepo.freebsd.org> <86EF92B6-B19D-477E-8BBF-2B25190C781C@FreeBSD.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Am Tage des Herren Mon, 29 Dec 2025 16:09:24 +0100 Dimitry Andric <dim@FreeBSD.org> schrieb: > On 28 Dec 2025, at 09:17, Warner Losh <imp@freebsd.org> wrote: > > > > The branch main has been updated by imp: > > > > URL: https://cgit.FreeBSD.org/src/commit/?id=faeaa25f562493370a5da84b429ab0a117c3213a > > > > commit faeaa25f562493370a5da84b429ab0a117c3213a > > Author: Warner Losh <imp@FreeBSD.org> > > AuthorDate: 2025-12-28 07:31:05 +0000 > > Commit: Warner Losh <imp@FreeBSD.org> > > CommitDate: 2025-12-28 08:16:39 +0000 > > > > kernel: MK_REPRODUCIBLE_PATHS for full paths vs /usr/src > > > > There are many environments that you do not want the paths to be > > canonicalized. For example, if I always build a product from a specific > > path in a jail that's dependent on the product version, I don't want > > that to be sanitized to /usr/src because when I have profiling tools run > > against multiple kernels, I can't do A/B testing and results processing > > if everything points to /usr/src (sadly, the profiling tools cannot > > remap back to the original like gdb can). Since we need both active at > > the same time, symbloic link fallbacks don't work. > > > > We do want the rest of the build to be reproducible, however. We'll get > > the same binaries if we rebuild later since we always rebuild with the > > same path. > > > > Turn them both on for maximum reproduction for environments where that > > cannot be guaranteed. > > > > Sponsored by: Netflix > > Input from: emaste, ivy > > Differential Revision: https://reviews.freebsd.org/D52959 > > This breaks at least the devel/libsysinfo port, which error out with: > > ===> Building for libsysinfo-0.0.3_3 > make: /usr/share/mk/bsd.debug.mk:19: Variable "MK_REPRODUCIBLE_PATHS" is undefined > in /usr/share/mk/bsd.lib.mk:525 > in /wrkdirs/usr/ports/devel/libsysinfo/work/libsysinfo-0.0.3/Makefile:16 > make: Fatal errors encountered -- cannot continue > make: stopped making "all" in /wrkdirs/usr/ports/devel/libsysinfo/work/libsysinfo-0.0.3 > *** Error code 1 > > I think bsd.debug.mk should now include src.opts.mk, not only bsd.opts.mk? > > Either that, or MK_REPRODUCIBLE_PATHS should be moved to bsd.opts.mk. > > -Dimitry > > ... same with x11/nvidia-driver, see PR 292005 (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292005) -- A FreeBSD user [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRQheDybVktG5eW/1Kxzvs8OqokrwUCaVL8iAAKCRCxzvs8Oqok r22rAP96+jjYaOKGZnTwt4l1xTc8kZg4dtVx3P0z8Q/oHgOdTQD+MZijui9xYq4r DSPZ5bA2Cv63SwnYdFMtpndDYBmEEA8= =Eepy -----END PGP SIGNATURE-----home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20251229231120.5019f897>
