Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 2025 23:13:43 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        current@freebsd.org
Subject:   installworld runs git again
Message-ID:  <3p5pq042-95n8-0s53-178n-n07s8400rs03@yvfgf.mnoonqbm.arg>

next in thread | raw e-mail | index | archive | help
Hi,

make installworld runs git again but if build as user and owning the
files as user and installing as root that gives the obvious warning:

make[1]: "/usr/obj/usr/src/amd64.amd64/toolchain-metadata.mk" line 1: Using cached toolchain metadata from build at lab-top on Mon Mar 10 22:35:33 UTC 2025
fatal: detected dubious ownership in repository at '/usr/src'
To add an exception for this directory, call:

         git config --global --add safe.directory /usr/src
make[1]: "/usr/src/Makefile.inc1" line 601: warning: Command "/usr/local/bin/git -C /usr/src show -s --format=%ct HEAD" exited with status 128
--------------------------------------------------------------
>>> Install check world started on Mon Mar 10 23:00:45 UTC 2025
--------------------------------------------------------------
fatal: detected dubious ownership in repository at '/usr/src'
To add an exception for this directory, call:

         git config --global --add safe.directory /usr/src
make[2]: "/usr/src/Makefile.inc1" line 601: warning: Command "/usr/local/bin/git -C /usr/src show -s --format=%ct HEAD" exited with status 128
--------------------------------------------------------------
>>> Making hierarchy
--------------------------------------------------------------
fatal: detected dubious ownership in repository at '/usr/src'
To add an exception for this directory, call:

         git config --global --add safe.directory /usr/src
make[3]: "/usr/src/Makefile.inc1" line 601: warning: Command "/usr/local/bin/git -C /usr/src show -s --format=%ct HEAD" exited with status 128


What do we need these timestamps for when doing an installworld?

I see they are for pkg base so can they be contraint to that?

Is there a reason not to create things during build time?

Install should not create any new information anymore.
People used to have /usr/src ro and and the obj directories once build is done too.  We've long lost that but given we are so much after reproducability maybe people should try this again...


/bz

-- 
Bjoern A. Zeeb                                                     r15:7



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3p5pq042-95n8-0s53-178n-n07s8400rs03>