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)
Mon, Nov 25, 6:29 PM
Unknown Object (File)
Mon, Nov 25, 6:29 AM
Unknown Object (File)
Nov 23 2024, 8:20 PM
Unknown Object (File)
Nov 20 2024, 10:19 PM
Unknown Object (File)
Nov 20 2024, 3:11 AM
Unknown Object (File)
Nov 15 2024, 6:58 AM
Unknown Object (File)
Nov 15 2024, 5:54 AM
Unknown Object (File)
Nov 15 2024, 3:44 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.