Bug 231357

Summary: make: "/usr/share/mk/bsd.opts.mk" line 100: warning: "NO_MAN is defined, but deprecated. Please use MK_MAN=no instead."
Product: Documentation Reporter: Mateusz Piotrowski <0mp>
Component: Manual PagesAssignee: Mateusz Piotrowski <0mp>
Status: Closed FIXED    
Severity: Affects Only Me CC: doc
Priority: --- Keywords: easy, needs-patch
Version: Latest   
Hardware: Any   
OS: Any   

Description Mateusz Piotrowski freebsd_committer freebsd_triage 2018-09-14 10:13:56 UTC
I've tried to use NO_MAN in a bmake Makefile to declare that there are no manpages to build but I got the following message:

    make: "/usr/share/mk/bsd.opts.mk" line 100: warning: "NO_MAN is defined, but deprecated. Please use MK_MAN=no instead."

We should update our documentation (style.Makefile(5) for sure and maybe other as well) as they still recommend the use of `NO_MAN`.
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-07-17 12:55:03 UTC
A commit in branch main references this bug:

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

commit 73fb7a7a7342bb590ba53e406b564df0d90c3304
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2023-07-17 12:50:33 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2023-07-17 12:52:28 +0000

    style.Makefile.5: Stop documenting NO_MAN

    NO_MAN has been an error since 2020 according to UPDATING.

    PR:             231357
    MFC after:      3 days

 share/man/man5/style.Makefile.5 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-10-03 21:47:08 UTC
A commit in branch stable/13 references this bug:

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

commit 6101f8ec954d3f56db044fc9a3bc92ce658812cc
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2023-07-17 12:50:33 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2023-10-03 21:46:05 +0000

    style.Makefile.5: Stop documenting NO_MAN

    NO_MAN has been an error since 2020 according to UPDATING.

    PR:             231357
    MFC after:      3 days

    (cherry picked from commit 73fb7a7a7342bb590ba53e406b564df0d90c3304)

 share/man/man5/style.Makefile.5 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)