Page MenuHomeFreeBSD

depend-cleanup: Add a clean_obj function
ClosedPublic

Authored by des on Aug 19 2025, 12:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 2, 2:27 PM
Unknown Object (File)
Thu, Oct 23, 4:34 PM
Unknown Object (File)
Oct 13 2025, 7:05 PM
Unknown Object (File)
Oct 13 2025, 5:04 AM
Unknown Object (File)
Oct 10 2025, 6:06 PM
Unknown Object (File)
Oct 10 2025, 6:06 PM
Unknown Object (File)
Oct 10 2025, 6:06 PM
Unknown Object (File)
Oct 10 2025, 1:08 PM
Subscribers

Details

Summary

The clean_dep function is primarily intended for when a source file is
renamed. The 20241025 entry for libcrypt was not related to a rename
and resulted in libcrypt getting cleaned out and rebuilt every time.
Add a clean_obj function which does what the 20241025 entry needs:
delete an object file if it matches a particular regex.

This also changes every occurrence of rm -f to rm -fv so we can
more easily tell what gets cleaned up.

Fixes: d8cd2d0833e0 ("depend-cleanup.sh: clean up after hash function removal from libcrypt")

Diff Detail

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