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
Unknown Object (File)
Tue, Mar 10, 12:04 PM
Unknown Object (File)
Thu, Mar 5, 4:35 AM
Unknown Object (File)
Mon, Mar 2, 4:07 AM
Unknown Object (File)
Sat, Feb 28, 11:00 PM
Unknown Object (File)
Sat, Feb 28, 2:39 AM
Unknown Object (File)
Feb 8 2026, 7:21 AM
Unknown Object (File)
Feb 7 2026, 11:07 PM
Unknown Object (File)
Jan 10 2026, 2:05 AM
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