Page MenuHomeFreeBSD

mandoc: Also run makewhatis for /usr/share/openssl/man
ClosedPublic

Authored by ivy on Oct 13 2025, 12:45 PM.
Tags
None
Referenced Files
F151503209: D53064.diff
Wed, Apr 8, 9:10 PM
Unknown Object (File)
Wed, Apr 8, 3:39 AM
Unknown Object (File)
Tue, Apr 7, 1:49 AM
Unknown Object (File)
Mon, Apr 6, 8:42 PM
Unknown Object (File)
Mon, Apr 6, 8:37 PM
Unknown Object (File)
Mon, Apr 6, 7:37 PM
Unknown Object (File)
Mon, Apr 6, 11:39 AM
Unknown Object (File)
Sun, Apr 5, 10:05 PM
Subscribers

Details

Summary

We use a pkg(8) trigger to run makewhatis for /usr/share/man when
manpages are updated, but this doesn't cover /usr/share/openssl/man.

Rewrite the trigger to process a list of directories instead of a
single directory, and include /usr/share/openssl/man in the list.

MFC after: 3 days

Diff Detail

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

Event Timeline

ivy requested review of this revision.Oct 13 2025, 12:45 PM

OK.

Two things feel a bit odd to me ([ -d DIR ] could be done directly in lua I think, and the DIR gsub rather than just using dir inline a few times) but it should function fine.

This revision is now accepted and ready to land.Oct 15 2025, 6:43 PM

Two things feel a bit odd to me ([ -d DIR ] could be done directly in lua I think

i am not sure there is a way to check if a directory (or a file) exists in Lua. is there?

use pkg.stat to check for directory existence

also, remove /usr/share/openssl/man/mandoc.db on removal.

This revision now requires review to proceed.Oct 17 2025, 7:28 AM
This revision is now accepted and ready to land.Oct 17 2025, 1:41 PM