Page MenuHomeFreeBSD

Use `rm -fv` for BATCH_DELETE_OLD_FILES
ClosedPublic

Authored by emaste on Oct 24 2022, 6:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 9, 6:25 PM
Unknown Object (File)
Oct 4 2024, 4:32 PM
Unknown Object (File)
Oct 4 2024, 2:20 PM
Unknown Object (File)
Oct 4 2024, 11:31 AM
Unknown Object (File)
Oct 2 2024, 8:29 PM
Unknown Object (File)
Oct 2 2024, 10:32 AM
Unknown Object (File)
Oct 2 2024, 12:16 AM
Unknown Object (File)
Sep 30 2024, 2:15 AM
Subscribers
None

Details

Summary

It's possible to have files with odd permissions in the tmproot (or sysroot), causing rm to prompt for each one. Add -f to forcibly delete these.

Example:

override r--r--r-- emaste/wheel uarch for /usr/obj/usr/home/emaste/src/freebsd-git/wipbsd/amd64.amd64/sysroot/usr/include/c++/v1/__functional_base? y
override r--r--r-- emaste/wheel uarch for /usr/obj/usr/home/emaste/src/freebsd-git/wipbsd/amd64.amd64/sysroot/usr/include/c++/v1/__libcpp_version? y
override r--r--r-- emaste/wheel uarch for /usr/obj/usr/home/emaste/src/freebsd-git/wipbsd/amd64.amd64/sysroot/usr/include/c++/v1/__nullptr? y
override r--r--r-- emaste/wheel uarch for /usr/obj/usr/home/emaste/src/freebsd-git/wipbsd/amd64.amd64/sysroot/usr/include/c++/v1/__string? y

Diff Detail

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

Event Timeline

emaste created this revision.

Seems generally reasonable. Do we need to check afterwards to warn if they were not deleted?

This revision is now accepted and ready to land.Oct 25 2022, 2:54 AM

Seems generally reasonable. Do we need to check afterwards to warn if they were not deleted?

The build will exit if rm fails, e.g.

>>> Deleting stale files in build tree...
rm: /usr/obj/usr/home/emaste/src/freebsd-git/wipbsd/amd64.amd64/sysroot/usr/tests/usr.sbin/pw/pw_lock: Operation not permitted