Bug 273565 - latest groff 1.23.0 is incompatible with FreeBSD
Summary: latest groff 1.23.0 is incompatible with FreeBSD
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Many People
Assignee: Glen Barber
URL: https://reviews.freebsd.org/D41737
Keywords:
Depends on:
Blocks: 273245 273903 273443
  Show dependency treegraph
 
Reported: 2023-09-04 17:58 UTC by Wolfram Schneider
Modified: 2024-11-25 04:47 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schneider freebsd_committer freebsd_triage 2023-09-04 17:58:07 UTC
There is a new groff release 1.23.0. It contains a tiny change, the parameter -man no longer works as expected,  you have to use -mandoc now.

Unfortunately, this breaks some of our core tools, contrib and ports.

This will affect all FreeBSD releases/branches (12/13/14/15) that we support. A possible workaround is to downgrade the groff port to 1.22.4 locally.

for our src repository:

git grep -l 'roff.* -man[^d]'
contrib/byacc/aclocal.m4
contrib/byacc/configure
contrib/dialog/makefile.in
contrib/ee/ee.1
contrib/ldns/makewin.sh
contrib/ncurses/aclocal.m4
contrib/ncurses/configure
contrib/tcp_wrappers/Banners.Makefile
contrib/tcp_wrappers/CHANGES
contrib/tcp_wrappers/Makefile
contrib/tcp_wrappers/README
contrib/tcp_wrappers/options.c
contrib/tcsh/tcsh.man2html
contrib/tzcode/workman.sh
usr.bin/man/man.conf.5
usr.bin/man/man.sh
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-09-07 06:33:56 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=035f7c9a3653d91564a5513f1311aa3b6e14a17e

commit 035f7c9a3653d91564a5513f1311aa3b6e14a17e
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2023-09-07 06:28:24 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2023-09-07 06:28:24 +0000

    switch groff parameter -man to -mandoc

    groff 1.23.0 changed the semantics of the -man parameter, and many
    manual pages are not rendered. The -mandoc parameter brings back
    the old behavior, as in groff 1.22.4 and earlier.

    PR: 273565, 273245

    Reviewed by:    emaste, bapt
    MFC after: 1 week for all supported branches (stable/12, 13, 14)
    Differential Revision:  https://reviews.freebsd.org/D41737

 usr.bin/man/man.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-09-07 15:01:12 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=cd89fe3923e92ab090cbdff7eb215c2d85b51718

commit cd89fe3923e92ab090cbdff7eb215c2d85b51718
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2023-09-07 14:59:12 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2023-09-07 14:59:12 +0000

    switch groff parameter -man to -mandoc for new groff release 1.23.0
    PR: 273565

 usr.bin/man/man.conf.5 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-09-25 09:52:02 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=b8acbf417699d7a164c4874a822e030d06216387

commit b8acbf417699d7a164c4874a822e030d06216387
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2023-09-07 14:59:12 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2023-09-25 09:51:13 +0000

    switch groff parameter -man to -mandoc for new groff release 1.23.0
    PR: 273565

    (cherry picked from commit cd89fe3923e92ab090cbdff7eb215c2d85b51718)

 usr.bin/man/man.conf.5 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2023-09-25 09:52:03 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=7f9f152307652d1cb454acb8b9018f29672b452f

commit 7f9f152307652d1cb454acb8b9018f29672b452f
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2023-09-07 06:28:24 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2023-09-25 09:47:49 +0000

    switch groff parameter -man to -mandoc

    groff 1.23.0 changed the semantics of the -man parameter, and many
    manual pages are not rendered. The -mandoc parameter brings back
    the old behavior, as in groff 1.22.4 and earlier.

    PR: 273565, 273245

    Reviewed by:    emaste, bapt
    MFC after: 1 week for all supported branches (stable/12, 13, 14)
    Differential Revision:  https://reviews.freebsd.org/D41737

    (cherry picked from commit 035f7c9a3653d91564a5513f1311aa3b6e14a17e)

 usr.bin/man/man.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 5 commit-hook freebsd_committer freebsd_triage 2023-09-25 17:33:22 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=1cc5240b590ba13cb9a41995c8f80988007798cb

commit 1cc5240b590ba13cb9a41995c8f80988007798cb
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2023-09-07 06:28:24 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2023-09-25 17:30:58 +0000

    switch groff parameter -man to -mandoc

    groff 1.23.0 changed the semantics of the -man parameter, and many
    manual pages are not rendered. The -mandoc parameter brings back
    the old behavior, as in groff 1.22.4 and earlier.

    PR: 273565, 273245

    Reviewed by:    emaste, bapt
    MFC after: 1 week for all supported branches (stable/12, 13, 14)
    Differential Revision:  https://reviews.freebsd.org/D41737

    (cherry picked from commit 035f7c9a3653d91564a5513f1311aa3b6e14a17e)

 usr.bin/man/man.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 6 commit-hook freebsd_committer freebsd_triage 2023-09-25 17:33:23 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=d03af6473e64bc0e9e1f8a7d5dd329247268d3dc

commit d03af6473e64bc0e9e1f8a7d5dd329247268d3dc
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2023-09-07 14:59:12 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2023-09-25 17:31:50 +0000

    switch groff parameter -man to -mandoc for new groff release 1.23.0

    PR: 273565

    (cherry picked from commit cd89fe3923e92ab090cbdff7eb215c2d85b51718)

 usr.bin/man/man.conf.5 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 7 commit-hook freebsd_committer freebsd_triage 2023-09-25 17:34:27 UTC
A commit in branch stable/12 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=0e71efa38c9aa3281a8bbce169becf3f05dd7c91

commit 0e71efa38c9aa3281a8bbce169becf3f05dd7c91
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2023-09-07 06:28:24 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2023-09-25 17:33:08 +0000

    switch groff parameter -man to -mandoc

    groff 1.23.0 changed the semantics of the -man parameter, and many
    manual pages are not rendered. The -mandoc parameter brings back
    the old behavior, as in groff 1.22.4 and earlier.

    PR: 273565, 273245

    Reviewed by:    emaste, bapt
    MFC after: 1 week for all supported branches (stable/12, 13, 14)
    Differential Revision:  https://reviews.freebsd.org/D41737

    (cherry picked from commit 035f7c9a3653d91564a5513f1311aa3b6e14a17e)

 usr.bin/man/man.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 8 commit-hook freebsd_committer freebsd_triage 2023-09-25 17:34:28 UTC
A commit in branch stable/12 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=2e866693bc3e286ed54658d7cdb20518b601672f

commit 2e866693bc3e286ed54658d7cdb20518b601672f
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2023-09-07 14:59:12 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2023-09-25 17:33:15 +0000

    switch groff parameter -man to -mandoc for new groff release 1.23.0

    PR: 273565

    (cherry picked from commit cd89fe3923e92ab090cbdff7eb215c2d85b51718)

 usr.bin/man/man.conf.5 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 9 commit-hook freebsd_committer freebsd_triage 2023-10-12 22:53:30 UTC
A commit in branch releng/14.0 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=21bcb2c2a13ea9555d7f84f45be02fcb364475df

commit 21bcb2c2a13ea9555d7f84f45be02fcb364475df
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2023-09-07 06:28:24 +0000
Commit:     Glen Barber <gjb@FreeBSD.org>
CommitDate: 2023-10-12 22:51:51 +0000

    switch groff parameter -man to -mandoc

    groff 1.23.0 changed the semantics of the -man parameter, and many
    manual pages are not rendered. The -mandoc parameter brings back
    the old behavior, as in groff 1.22.4 and earlier.

    PR: 273565, 273245

    Approved by:    re (delphij)

    (cherry picked from commit 035f7c9a3653d91564a5513f1311aa3b6e14a17e)
    (cherry picked from commit 7f9f152307652d1cb454acb8b9018f29672b452f)

 usr.bin/man/man.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 10 Mark Linimon freebsd_committer freebsd_triage 2024-11-25 04:47:12 UTC
^Triage: committed and MFCed back in 2023.