rvp
Thank you for the patch proposal.
I'm OK with any of the 3 methods.
Unfortunately none of them is still compatible with FreeBSD, as there is a dedicated sorting of detected manual pages. In case of specified MANWIDTH
, CATPAGES are attempted to be avoided, otherwise they are picked first. Here we do not perform the reordering and pick CATPAGES first as specified in man.conf(5).
To make your patch complete, we would need to also add smart handling of rules, reordering the configuration from the user.
A workaround minimizing the impact is to drop MKCATPAGES distribution build option.
I think a cleaner way would be to introduce hidden reordering of _build
options for MANWIDTH
inside man(1), picking CAT pages last, and then embed MANWIDTH
inside mandoc(1) (assuming that upstream will accept it).