NetBSD Problem Report #8725

Received: (qmail 29843 invoked from network); 1 Nov 1999 14:16:10 -0000
Message-Id: <199911011412.GAA09211@nooksack.ldc.cs.wwu.edu>
Date: Mon, 1 Nov 1999 06:12:22 -0800 (PST)
From: D.Thomas@cmcb.uq.edu.au
Reply-To: D.Thomas@imb.uq.edu.au
To: gnats-bugs@gnats.netbsd.org
Subject: suggestions for bsd.{info,man}.mk for man pages generated from info
X-Send-Pr-Version: www-1.0

>Number:         8725
>Category:       bin
>Synopsis:       suggestions for bsd.{info,man}.mk for man pages generated from info
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 01 06:18:00 +0000 1999
>Closed-Date:    Mon Jan 07 21:15:10 +0000 2002
>Last-Modified:  Mon Jan 07 21:15:10 +0000 2002
>Originator:     Danny Thomas
>Release:        around 1.4K
>Organization:
CMCB, The Uni of Queensland
>Environment:
NetBSD server.vthrc.uq.edu.au 1.4K NetBSD 1.4K (SERVER.v6) #0: Sun Oct 24 02:24:
47 EST 1999     root@server.vthrc.uq.edu.au:/usr/src/sys/arch/i386/compile/SERVE
R.v6 i386
>Description:
A person knowing our awk is really gawk might be slightly surprised to find "man gawk" returns nothing. It's really not that confusing because it is installed purely as awk. 

Q1: is there any reason not to link this binary as 'gawk' ?

Q2: it seems an attempt was started to have the man-page work
    either for 'awk' or for 'gawk', but there are some bugs
    preventing this

>How-To-Repeat:
man awk,
notice title says gawk(1)
man gawk
>Fix:
FIX 1
/usr/src/gnu/usr.bin/gawk/Makefile
needs gawk.1 added to the line
  MLINKS=   awk.1


FIX 2
the missing gawk.1 would have been announced had manlinks included a test at the end of the loop, as in:

manlinks: manpages
.if defined(MLINKS) && !empty(MLINKS)
        @set ${MLINKS}; \
        while test $$# -ge 2; do \
                name=$$1; \
                shift; \
                dir=${DESTDIR}${MANDIR}/man$${name##*.}; \
                l=$${dir}${MANSUBDIR}/$${name}${MCOMPRESSSUFFIX}; \
                name=$$1; \
                shift; \
                dir=${DESTDIR}${MANDIR}/man$${name##*.}; \
                t=$${dir}${MANSUBDIR}/$${name}${MCOMPRESSSUFFIX}; \
                if [ -z "${UPDATE}" -o ! -f $$t ]; then \
                    echo $$t -\> $$l; \
                    ln -f $$l $$t; \
                fi; \
        done; \
        if test $$# -eq 1; then \
                echo odd number in MLINKS; \
        fi;
.endif

or have I misunderstood the operation?


FIX 3
more importantly, /usr/share/mk/bsd.info.mk does not include handling of manlinks or catlinks. I'd suggest splitting off the code for these from bsd.man.mk into a new file, say bsd.man.util.mk, which gets included in both bsd.man.mk & bsd.info.mk.

Doing that produced an error msg at first because MLINKS only had an odd number of elements. Adding gawk.1 to MLINKS that saw both awk.1 & gawk.1 man-pages created.

I think this would only benefit gawk at the moment...

NB is there anything else that should get added to bsd.info.mk, in the way the tmac macros are in bsd.man.mk ?
>Release-Note:
>Audit-Trail:

From: matthew green <mrg@eterna.com.au>
To: D.Thomas@cmcb.uq.edu.au
Cc: gnats-bugs@gnats.netbsd.org
Subject: re: bin/8725: suggestions for bsd.{info,man}.mk for man pages generated from info 
Date: Tue, 02 Nov 1999 02:21:27 +1100


    Q1: is there any reason not to link this binary as 'gawk' ?


 NetBSD may not always ship GNU awk as /usr/bin/awk.  doing this would
 set a precedent (that gawk exists), making it more annoying to users
 when gawk goes away. 
State-Changed-From-To: open->feedback 
State-Changed-By: fair 
State-Changed-When: Fri Jan 4 15:50:33 PST 2002 
State-Changed-Why:  
"gawk" is GNU specific, and we may not ship gawk in the future. 
State-Changed-From-To: feedback->closed 
State-Changed-By: fair 
State-Changed-When: Mon Jan 7 13:14:04 PST 2002 
State-Changed-Why:  
The submitter's E-mail address (two different versions) no longer works, 
and we are not going to change awk as suggested. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.