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)
Fri, Oct 10, 6:06 PM
Unknown Object (File)
Fri, Oct 10, 6:06 PM
Unknown Object (File)
Fri, Oct 10, 6:06 PM
Unknown Object (File)
Fri, Oct 10, 1:08 PM
Unknown Object (File)
Thu, Oct 2, 5:39 PM
Unknown Object (File)
Thu, Oct 2, 6:46 AM
Unknown Object (File)
Wed, Oct 1, 3:41 PM
Unknown Object (File)
Tue, Sep 30, 1:05 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 Not Applicable
Unit
Tests Not Applicable