Page MenuHomeFreeBSD

Don't create directories in ${WORLDTMP}/legacy with mtree
ClosedPublic

Authored by arichardson on Aug 17 2018, 3:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 5:22 AM
Unknown Object (File)
Thu, Oct 9, 4:38 AM
Unknown Object (File)
Sun, Oct 5, 2:29 AM
Unknown Object (File)
Tue, Sep 30, 12:58 PM
Unknown Object (File)
Sep 20 2025, 11:24 PM
Unknown Object (File)
Sep 18 2025, 11:32 PM
Unknown Object (File)
Sep 13 2025, 12:58 AM
Unknown Object (File)
Sep 2 2025, 4:02 AM
Subscribers
None

Details

Summary

This has two advantages:

  1. We no longer create lots of empty directories that are not needed
  2. This is a requirement for building on non-FreeBSD hosts since mtree will

only exist after the bootstrap-tools phase there.

Test Plan

MIPS64 buildworld succeeded

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 18901
Build 18555: arc lint + arc unit

Event Timeline

Upload correct version of patch

tools/build/Makefile
72

I added this so that no matter which directory the bootstrap tool is installed in, we can always find it in ${WORLDTMP}/legacy/bin.
This is useful when building without inheriting $PATH and symlinking the host tools in ${WORLDTMP}/legacy. I could also override BINDIR in Makefile.boot, but I think this is easier.

I suggest we just mkdir the extra bin dirs for now and change it to use symlinks as part of the patches that make use of explicit ${WORLDTMP}/legacy/bin.

Makefile.inc1
971–974

s/no/not/

This revision is now accepted and ready to land.Aug 20 2018, 9:37 AM

Fix typo in comment
Create all directories instead of symlinking. This can be part of a separate patch

This revision now requires review to proceed.Aug 20 2018, 9:41 AM
This revision was not accepted when it landed; it landed in state Needs Review.Aug 20 2018, 10:40 AM
This revision was automatically updated to reflect the committed changes.