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
F172859162: D16773.id46967.diff
Mon, Sep 21, 3:55 PM
F172847612: D16773.id46849.diff
Mon, Sep 21, 1:35 PM
F172780806: D16773.id46849.diff
Sun, Sep 20, 10:53 PM
F172775285: D16773.id46846.diff
Sun, Sep 20, 10:03 PM
Unknown Object (File)
Sun, Sep 20, 2:46 PM
Unknown Object (File)
Sat, Sep 19, 10:22 PM
Unknown Object (File)
Sat, Sep 19, 9:37 PM
Unknown Object (File)
Sat, Sep 19, 8:34 PM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Upload correct version of patch

tools/build/Makefile
72 โ†—(On Diff #46849)

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 โ†—(On Diff #46849)

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.