Subject: pkg/23100: custom groff/files/mdoc.local
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 10/08/2003 11:40:08
>Number:         23100
>Category:       pkg
>Synopsis:       custom groff/files/mdoc.local
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 08 18:41:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6.1_STABLE
>Organization:
http://bsd.reedmedia.net/
>Environment:
>Description:
The groff package installs a custom
${PREFIX}/share/groff/site-tmac/mdoc.local file.

It has:

.ds volume-operating-system NetBSD

and

.ds operating-system NetBSD\~1.6


If these are not set then it will default to "BSD".

>How-To-Repeat:
Install groff on Linux and wonder why man says "NetBSD".
>Fix:
I'd like to suggest that this be customized per the local operating system
that the package was built under.

For example, it doesn't make sense for a manpage unrelated to NetBSD to
say "NetBSD" in the header or footer on a system that is not NetBSD.

I'd like to suggest that the textproc/groff/files/mdoc.local file is
configured via a sed expression.

Have some OS_NAME that can be defined in mk.conf for the
operating-system definition.

If not set, then:

On any *BSD, define OS_NAME as "${OPSYS} ${OS_VERSION}".

On Linux, just use "${OPSYS}".

On other Unix maybe just use "${OPSYS}" too.

For the volume-operating-system definition, just use ${OPSYS}.

(Searching google, I see that a few people have complained about the
groff default of "BSD" on non-BSD systems.)

Any comments?

I can quickly provide a patch for this ...

(I send-pr'd this because I asked tech-pkg a month ago and didn't get
feedback. I consider it a problem. I don't provide a fix because
I want feedback first.)
>Release-Note:
>Audit-Trail:
>Unformatted: