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
Unknown Object (File)
Mon, Jul 15, 12:10 AM
Unknown Object (File)
Sat, Jul 6, 1:40 PM
Unknown Object (File)
Jun 21 2024, 11:26 PM
Unknown Object (File)
Jun 12 2024, 7:22 AM
Unknown Object (File)
Jun 3 2024, 5:59 AM
Unknown Object (File)
Jun 3 2024, 5:59 AM
Unknown Object (File)
Jun 3 2024, 5:59 AM
Unknown Object (File)
May 9 2024, 9:55 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.