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
F163533325: D53064.id164377.diff
Fri, Jul 24, 5:26 AM
Unknown Object (File)
Thu, Jul 23, 1:16 AM
Unknown Object (File)
Tue, Jul 21, 1:35 AM
Unknown Object (File)
Tue, Jul 21, 12:48 AM
Unknown Object (File)
Mon, Jul 20, 4:29 PM
Unknown Object (File)
Mon, Jul 20, 3:23 PM
Unknown Object (File)
Sun, Jul 19, 8:11 PM
Unknown Object (File)
Sun, Jul 19, 12:41 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