Bug 23710

Summary: [PATCH] there is no termcap(3) manpage per se
Product: Base System Reporter: Peter Pentchev <roam>
Component: binAssignee: Maxim Sobolev <sobomax>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Peter Pentchev 2000-12-21 10:40:01 UTC
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 ;)
Comment 1 Peter Pentchev 2000-12-21 17:24:54 UTC
[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.
Comment 2 Peter Pentchev 2000-12-29 08:34:14 UTC
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 \
Comment 3 dd freebsd_committer freebsd_triage 2001-06-08 02:28:14 UTC
Responsible Changed
From-To: freebsd-bugs->sobomax

Maxim just made the requested MLINK, so he can decide what to do with this.
Comment 4 Maxim Sobolev freebsd_committer freebsd_triage 2001-06-08 10:27:20 UTC
State Changed
From-To: open->closed

Similar patch has been committed, thank you for reporting!