Page MenuHomeFreeBSD

packages: Add a mandoc package
ClosedPublic

Authored by ivy on Sep 15 2025, 11:15 PM.
Tags
None
Referenced Files
F133420009: D52564.diff
Sat, Oct 25, 4:23 PM
F133419153: D52564.diff
Sat, Oct 25, 4:14 PM
F133419112: D52564.diff
Sat, Oct 25, 4:14 PM
F133369850: D52564.id162315.diff
Sat, Oct 25, 6:29 AM
Unknown Object (File)
Thu, Oct 23, 1:00 PM
Unknown Object (File)
Tue, Oct 21, 2:35 AM
Unknown Object (File)
Fri, Oct 17, 8:03 AM
Unknown Object (File)
Sun, Oct 12, 6:30 PM
Subscribers

Details

Summary

Move mandoc to its own package, so users can install it independently
of -utilities. Also add a pkg-trigger(5) to run makewhatis when new
manpages are installed, so that apropos(1) works.

The mandoc package is in the minimal set, since we also ship manpages
in minimal.

Diff Detail

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

Event Timeline

ivy requested review of this revision.Sep 15 2025, 11:15 PM

note: to test this you need a pkg(8) with the patch at https://github.com/freebsd/pkg/pull/2516. however if the user doesn't have that patch, everything will still work fine, they just won't get the mandoc database built, which is the same as the current behaviour.

use path_glob in the trigger rather than path

This revision is now accepted and ready to land.Sep 18 2025, 8:14 AM
This revision was automatically updated to reflect the committed changes.
usr.bin/mandoc/mandoc.ucl
16

I think it needs to periodic weekly. If you look at the weekly target it's actually doing all kinds of stuff.

Sorry I didn't get to this in time.

usr.bin/mandoc/mandoc.ucl
16

we don't want to invoke weekly here, because that's rebuilding everything including ports, but we only need to do base manpages, and (as far as i know) we don't ship localised manpages in base.

we should do /usr/share/openssl/man, but i wonder if it makes more sense to do that in the OpenSSL package, i'll have a think.