Page MenuHomeFreeBSD

Use install instead of cp to copy bootstrap tools
ClosedPublic

Authored by des on Nov 14 2025, 2:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 17, 10:48 PM
Unknown Object (File)
Sun, May 17, 10:47 PM
Unknown Object (File)
Sun, May 17, 10:47 PM
Unknown Object (File)
Sun, May 17, 10:34 PM
Unknown Object (File)
Tue, May 12, 11:17 AM
Unknown Object (File)
Mon, Apr 27, 1:22 PM
Unknown Object (File)
Apr 25 2026, 6:10 AM
Unknown Object (File)
Apr 17 2026, 10:16 PM
Subscribers

Details

Summary

We need to preserve modification times on bootstrap tools, but cp -p
also tries to preserve flags, which fails if OBJROOT is on NFS. A -N
option was added to cp for this purpose, but trying to use that would
break cross-building on hosts that don't have that option. The best
remaining option is install -p, which we already assume is present.

PR: 275030

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68626
Build 65509: arc lint + arc unit

Event Timeline

des requested review of this revision.Nov 14 2025, 2:59 AM
Makefile.inc1
2814–2817

This comment really ought to be updated, we haven't used links here for some time

Makefile.inc1
2814–2817

Agreed, but it's everywhere including several variable and target names so I figured let's just fix the immediate issue first and worry about cosmetics later.

des marked an inline comment as done.Nov 14 2025, 2:37 PM
This revision is now accepted and ready to land.Nov 14 2025, 5:20 PM