Page MenuHomeFreeBSD

switch groff parameter -man to -mandoc
ClosedPublic

Authored by wosch on Sep 5 2023, 5:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 31, 5:04 PM
Unknown Object (File)
Tue, Dec 30, 8:37 PM
Unknown Object (File)
Mon, Dec 29, 2:13 PM
Unknown Object (File)
Sun, Dec 28, 7:38 PM
Unknown Object (File)
Fri, Dec 19, 12:43 PM
Unknown Object (File)
Dec 7 2025, 5:44 AM
Unknown Object (File)
Dec 1 2025, 4:11 AM
Unknown Object (File)
Nov 26 2025, 11:14 AM
Subscribers
None

Details

Summary

groff 1.23.0 changed the semantic of the -man parameter, and many manual pages will fail to render. The -mandoc parameter brings the old behaviour back, as in groff 1.22.4 and earlier.

MFC after: 1 week for all supported branches (stable/12, 13, 14)
PR: 273565, 273245

Diff Detail

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

Event Timeline

wosch requested review of this revision.Sep 5 2023, 5:04 PM
wosch created this revision.

Is there any backwards compatibility issue here? I.e., are there any groff versions still relevant in FreeBSD that don't support -mandoc?

This revision is now accepted and ready to land.Sep 5 2023, 5:13 PM

Is there any backwards compatibility issue here? I.e., are there any groff versions still relevant in FreeBSD that don't support -mandoc?

As I understand the groff developer, the -mandoc flag exists for 22 years. I don't expect this change will break anything.

See the discussion
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273245

This revision was automatically updated to reflect the committed changes.