Page MenuHomeFreeBSD

depend-cleanup: Add a clean_obj function
ClosedPublic

Authored by des on Aug 19 2025, 12:11 PM.
Tags
None
Referenced Files
F176244864: D52012.diff
Sat, Oct 17, 7:06 AM
Unknown Object (File)
Thu, Oct 8, 8:40 PM
Unknown Object (File)
Thu, Oct 8, 8:29 PM
Unknown Object (File)
Thu, Oct 8, 6:38 AM
Unknown Object (File)
Sun, Oct 4, 3:12 AM
Unknown Object (File)
Sun, Sep 20, 2:52 PM
Unknown Object (File)
Sep 14 2026, 7:38 AM
Unknown Object (File)
Sep 14 2026, 7:37 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 66342
Build 63225: arc lint + arc unit