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
F140969606: D53064.id164086.diff
Tue, Dec 30, 5:56 AM
Unknown Object (File)
Fri, Dec 12, 8:05 AM
Unknown Object (File)
Sun, Dec 7, 11:08 PM
Unknown Object (File)
Sat, Dec 6, 3:01 AM
Unknown Object (File)
Nov 29 2025, 11:39 AM
Unknown Object (File)
Nov 29 2025, 3:04 AM
Unknown Object (File)
Nov 28 2025, 11:17 PM
Unknown Object (File)
Nov 21 2025, 9:58 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