Page MenuHomeFreeBSD

switch groff parameter -man to -mandoc
ClosedPublic

Authored by wosch on Sep 5 2023, 5:04 PM.
Tags
None
Referenced Files
F102636203: D41737.diff
Fri, Nov 15, 3:44 AM
Unknown Object (File)
Wed, Nov 6, 12:13 PM
Unknown Object (File)
Thu, Oct 31, 3:16 PM
Unknown Object (File)
Thu, Oct 31, 3:16 PM
Unknown Object (File)
Thu, Oct 31, 3:16 PM
Unknown Object (File)
Thu, Oct 31, 3:16 PM
Unknown Object (File)
Thu, Oct 31, 3:16 PM
Unknown Object (File)
Thu, Oct 31, 3:16 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.