Page MenuHomeFreeBSD

Don't package /var/db/locate.database
ClosedPublic

Authored by matthew on May 27 2024, 5:06 PM.
Referenced Files
F87440123: D45384.id139165.diff
Wed, Jul 3, 2:09 AM
F87439077: D45384.id139152.diff
Wed, Jul 3, 1:49 AM
F87404843: D45384.diff
Tue, Jul 2, 3:47 PM
Unknown Object (File)
Mon, Jul 1, 5:08 AM
Unknown Object (File)
Sat, Jun 29, 8:03 AM
Unknown Object (File)
Sat, Jun 29, 6:11 AM
Unknown Object (File)
Fri, Jun 21, 11:43 PM
Unknown Object (File)
Fri, Jun 21, 11:40 PM
Subscribers

Details

Summary

... or install an empty file.

The locate database is a mutable working file, and unsuitable to be
managed by pkg(8). locate(1) copes gracefully with the absence of
this file. Running /etc/periodic/weekly/310.locate will create the
locate database with the correct ownership and permissions.

Having the locate.database file as part of the FreeBSD-runtime package
means it gets zeroed if ever that package gets updated, which is
excessive, given that updating packages will typically only change a
relatively small number of the _filenames_ on the system -- unlike the
file contents. Plus it always causes it to flag as modified when
verifying checksums, but /var/db/locate.database is expected to be
modified by the user.

Diff Detail

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