Page MenuHomeFreeBSD

depend-cleanup: Add verbose (-v) and pretend/dry-run (-n) flags
ClosedPublic

Authored by jrtc27 on Jul 3 2021, 2:38 AM.
Tags
None
Referenced Files
F101743183: D31007.id124469.diff
Sun, Nov 3, 5:18 AM
F101743129: D31007.id91690.diff
Sun, Nov 3, 5:17 AM
Unknown Object (File)
Sep 17 2024, 8:37 PM
Unknown Object (File)
Sep 16 2024, 5:33 PM
Unknown Object (File)
Sep 16 2024, 5:33 PM
Unknown Object (File)
Sep 16 2024, 5:33 PM
Unknown Object (File)
Sep 11 2024, 4:41 PM
Unknown Object (File)
Sep 11 2024, 4:41 PM
Subscribers

Details

Summary

These are useful for testing new additions to the script. Whilst here,
harden the script a little and improve error messages.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jrtc27 requested review of this revision.Jul 3 2021, 2:38 AM

Conditional on rebasing to something newer :)

This revision is now accepted and ready to land.Jul 10 2023, 11:12 PM
This revision now requires review to proceed.Jul 10 2023, 11:20 PM

Handle MACHINE_ARCH being empty during bootstrap-tools use

Handle MACHINE_ARCH being empty during bootstrap-tools use

When can it be empty?

In D31007#932472, @imp wrote:

Handle MACHINE_ARCH being empty during bootstrap-tools use

When can it be empty?

We run the script twice. The first time is during bootstrap-tools for obj-tools and there it's under BMAKE(ENV) which doesn't do any TARGET/MACHINE(_ARCH) assignment (just leaves them as they are for the parent, which may mean re-inferring). The second time is the one for the real OBJTOP where it's run under WMAKE(ENV) and picks up TARGET(_ARCH)=MACHINE(_ARCH) from CROSSENV.

Probably _cleanobj_fast_depend_hack should just do env MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH} instead, to be honest.

This revision was not accepted when it landed; it landed in state Needs Review.Jul 11 2023, 12:53 AM
This revision was automatically updated to reflect the committed changes.