Page MenuHomeFreeBSD

packages: Add a mandoc package
ClosedPublic

Authored by ivy on Sep 15 2025, 11:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 12, 6:30 PM
Unknown Object (File)
Sun, Oct 12, 12:15 PM
Unknown Object (File)
Fri, Oct 10, 10:33 AM
Unknown Object (File)
Fri, Oct 10, 10:33 AM
Unknown Object (File)
Fri, Oct 10, 10:33 AM
Unknown Object (File)
Fri, Oct 10, 10:33 AM
Unknown Object (File)
Fri, Oct 10, 4:02 AM
Unknown Object (File)
Fri, Oct 3, 10:16 AM
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.Thu, Sep 18, 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.