Bug 293072 - manpages with mdoc errors
Summary: manpages with mdoc errors
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Konstantin Belousov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-09 21:27 UTC by Wolfram Schneider
Modified: 2026-02-15 03:15 UTC (History)
4 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 2026-02-09 21:27:06 UTC
There are some manual pages which have mdoc errors, reported by groff.

on -current:
/usr/share/man/man3/sockatmark.3.gz
/usr/share/man/man8/setkey.8.gz


$ nroff -mandoc ./lib/libc/net/sockatmark.3 >/dev/null
mdoc error: .%U found outside of .Rs ... .Re (#112)

$ nroff -mandoc ./sbin/setkey/setkey.8 >/dev/null
mdoc warning: Unknown keyword 'natt_mtu' in .Bl macro (#284)
troff:./sbin/setkey/setkey.8:329: warning: special character '["' not defined
troff:./sbin/setkey/setkey.8:329: error: a space character is not allowed in an escape sequence parameter
[....]
Comment 1 commit-hook freebsd_committer freebsd_triage 2026-02-12 07:51:33 UTC
A commit in branch main references this bug:

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

commit c67d8acca30e9f96f0a56f197003d0a4c663a060
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-02-12 07:43:46 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-02-12 07:47:22 +0000

    sbin/setkey/setkey.8: cleanup groff mdoc warnings

    PR:     293072
    Sponsored by:   NVidia networking
    MFC after:      3 days

 sbin/setkey/setkey.8 | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2026-02-12 07:58:36 UTC
A commit in branch main references this bug:

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

commit 10fde719587c22085c95759a242e9c51d249d024
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-02-12 07:56:42 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-02-12 07:56:42 +0000

    lib/libc/net/sockatmark.3: fix groff mdoc warning

    PR:     293072
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days

 lib/libc/net/sockatmark.3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 3 Wolfram Schneider freebsd_committer freebsd_triage 2026-02-12 17:08:29 UTC
The errors are gone, many thanks!
Comment 4 commit-hook freebsd_committer freebsd_triage 2026-02-15 03:15:30 UTC
A commit in branch stable/15 references this bug:

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

commit 7786840a0bb0ac7102b9f43557e1e76bff1cd7f1
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-02-12 07:56:42 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-02-15 03:14:11 +0000

    lib/libc/net/sockatmark.3: fix groff mdoc warning

    PR:     293072

    (cherry picked from commit 10fde719587c22085c95759a242e9c51d249d024)

 lib/libc/net/sockatmark.3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 5 commit-hook freebsd_committer freebsd_triage 2026-02-15 03:15:32 UTC
A commit in branch stable/15 references this bug:

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

commit c838c3f2062b88e3608ab56d57498f4e0dc6d0ce
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-02-12 07:43:46 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-02-15 03:13:37 +0000

    sbin/setkey/setkey.8: cleanup groff mdoc warnings

    PR:     293072

    (cherry picked from commit c67d8acca30e9f96f0a56f197003d0a4c663a060)

 sbin/setkey/setkey.8 | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)