From roam@orbitel.bg  Thu Dec 21 02:34:08 2000
Return-Path: <roam@orbitel.bg>
Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.189])
	by hub.freebsd.org (Postfix) with SMTP id 7F8FE37B400
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 21 Dec 2000 02:34:06 -0800 (PST)
Received: (qmail 6409 invoked by uid 1000); 21 Dec 2000 10:33:06 -0000
Message-Id: <20001221103306.6408.qmail@ringworld.nanolink.com>
Date: 21 Dec 2000 10:33:06 -0000
From: Peter Pentchev <roam@orbitel.bg>
Reply-To: Peter Pentchev <roam@orbitel.bg>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [PATCH] there is no termcap(3) manpage per se
X-Send-Pr-Version: 3.2

>Number:         23710
>Category:       bin
>Synopsis:       [PATCH] there is no termcap(3) manpage per se
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sobomax
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 21 02:40:01 PST 2000
>Closed-Date:    Fri Jun 8 02:27:20 PDT 2001
>Last-Modified:  Fri Jun 08 02:27:40 PDT 2001
>Originator:     Peter Pentchev
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
Orbitel JSCo.
>Environment:

FreeBSD 4.2-STABLE #1: Tue Dec 19 04:16:41 EET 2000

>Description:

termcap(5) refers to termcap(3) in the SEE ALSO section; however, termcap(3)
is never installed.  There is curs_termcap(3), though, with many others
MLINK'ed to it; so why not termcap(3)? :)

>How-To-Repeat:

man 3 termcap ;)

>Fix:

Index: src/lib/libncurses/Makefile
===================================================================
RCS file: /home/ncvs/src/lib/libncurses/Makefile,v
retrieving revision 1.45
diff -u -r1.45 Makefile
--- src/lib/libncurses/Makefile	2000/12/05 12:40:14	1.45
+++ src/lib/libncurses/Makefile	2000/12/21 10:14:53
@@ -521,7 +521,8 @@
 	curs_termattrs.3 termattrs.3 curs_termattrs.3 termname.3
 MLINKS+=curs_termcap.3 tgetent.3 curs_termcap.3 tgetflag.3 \
 	curs_termcap.3 tgetnum.3 curs_termcap.3 tgetstr.3 \
-	curs_termcap.3 tgoto.3 curs_termcap.3 tputs.3
+	curs_termcap.3 tgoto.3 curs_termcap.3 tputs.3 \
+	curs_termcap.3 termcap.3
 MLINKS+=curs_terminfo.3 del_curterm.3 curs_terminfo.3 mvcur.3 \
 	curs_terminfo.3 putp.3 curs_terminfo.3 restartterm.3 \
 	curs_terminfo.3 set_curterm.3 curs_terminfo.3 setterm.3 \

>Release-Note:
>Audit-Trail:

From: Peter Pentchev <roam@orbitel.bg>
To: dickey@Radix.Net
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/23710: [PATCH] there is no termcap(3) manpage per se
Date: Thu, 21 Dec 2000 19:24:54 +0200

 [CC:ing this to freebsd-gnats-submit@FreeBSD.org, so it enters
  the audit trail; I guess others might raise this question too.]
 
 On Thu, Dec 21, 2000 at 12:04:55PM -0500, dickey@Radix.Net wrote:
 > termcap(3) belongs to another package (it's not part of ncurses)
 
 I know; however, in FreeBSD there doesn't seem to be a standalone
 termcap/libtermcap implementation; /usr/lib/libtermcap.* are just
 symlinks to /usr/lib/libncurses.*, and there is an addon termcap.c
 in the src/lib/libncurses/ directory - which is where ncurses are
 *built*, as opposed to the src/contrib/ncurses/ directory, where
 the ncurses source is imported and maintained.  The tgetent,
 tgetflat, tgetnum and tgetstr section 3 manpages already are linked
 to the curs_termcap(3) manpage.  My proposed patch simply documents
 this fact a bit further :)
 
 I'm suggesting a FreeBSD-specific change to an already FreeBSD-specific
 treatment of termcap/ncurses - I am not suggesting a change to
 the ncurses package itself.
 
 G'luck,
 Peter
 
 -- 
 "yields falsehood, when appended to its quotation." yields falsehood, when appended to its quotation.
 

From: Peter Pentchev <roam@orbitel.bg>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Re: bin/23710: [PATCH] there is no termcap(3) manpage per se
Date: Fri, 29 Dec 2000 10:34:14 +0200

 After private discussion with Bruce Evans, the following patch was born.
 It has exactly the same functionality, but keeps MLINKS sorted.
 
 G'luck,
 Peter
 
 -- 
 .siht ekil ti gnidaer eb d'uoy ,werbeH ni erew ecnetnes siht fI
 
 Index: Makefile
 ===================================================================
 RCS file: /home/ncvs/src/lib/libncurses/Makefile,v
 retrieving revision 1.45
 diff -u -r1.45 Makefile
 --- Makefile	2000/12/05 12:40:14	1.45
 +++ Makefile	2000/12/25 02:19:15
 @@ -519,7 +519,8 @@
  	curs_termattrs.3 has_ic.3 curs_termattrs.3 has_il.3 \
  	curs_termattrs.3 killchar.3 curs_termattrs.3 longname.3 \
  	curs_termattrs.3 termattrs.3 curs_termattrs.3 termname.3
 -MLINKS+=curs_termcap.3 tgetent.3 curs_termcap.3 tgetflag.3 \
 +MLINKS+=curs_termcap.3 termcap.3 \
 +	curs_termcap.3 tgetent.3 curs_termcap.3 tgetflag.3 \
  	curs_termcap.3 tgetnum.3 curs_termcap.3 tgetstr.3 \
  	curs_termcap.3 tgoto.3 curs_termcap.3 tputs.3
  MLINKS+=curs_terminfo.3 del_curterm.3 curs_terminfo.3 mvcur.3 \
 
Responsible-Changed-From-To: freebsd-bugs->sobomax 
Responsible-Changed-By: dd 
Responsible-Changed-When: Thu Jun 7 18:28:14 PDT 2001 
Responsible-Changed-Why:  
Maxim just made the requested MLINK, so he can decide what to do with this. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=23710 
State-Changed-From-To: open->closed 
State-Changed-By: sobomax 
State-Changed-When: Fri Jun 8 02:27:20 PDT 2001 
State-Changed-Why:  
Similar patch has been committed, thank you for reporting! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23710 
>Unformatted:
