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)
Fri, Jan 23, 1:46 AM
Unknown Object (File)
Thu, Jan 22, 7:22 PM
Unknown Object (File)
Fri, Jan 16, 10:19 PM
Unknown Object (File)
Dec 31 2025, 5:04 PM
Unknown Object (File)
Dec 30 2025, 8:37 PM
Unknown Object (File)
Dec 29 2025, 2:13 PM
Unknown Object (File)
Dec 28 2025, 7:38 PM
Unknown Object (File)
Dec 19 2025, 12:43 PM
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.