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)
Mon, May 18, 9:29 PM
Unknown Object (File)
Mon, May 11, 9:45 PM
Unknown Object (File)
Mon, May 11, 7:56 PM
Unknown Object (File)
Mon, May 11, 7:56 PM
Unknown Object (File)
Mon, May 11, 7:45 PM
Unknown Object (File)
Wed, Apr 29, 7:04 PM
Unknown Object (File)
Mon, Apr 27, 2:57 PM
Unknown Object (File)
Apr 21 2026, 9:11 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