NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/50123: less and lesskey require unused libraries



>Number:         50123
>Category:       bin
>Synopsis:       less and lesskey require unused libraries
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 04 07:30:00 +0000 2015
>Originator:     Rin Okuyama
>Release:        7.99.20
>Organization:
Department of Physics, Tohoku University
>Environment:
NetBSD XXX 7.99.20 NetBSD 7.99.20 (XXX) #0: Sun Jul 19 18:42:21 JST 2015  root@XXX:XXX amd64
>Description:
less(1) requires curses(3) library, but it uses only terminfo(3)
routines. Also, lesskey(1) requires unused terminfo(3) library.
>How-To-Repeat:

>Fix:
--- src/external/bsd/less/bin/less/Makefile.orig	2015-08-01 20:51:11.000000000 +0900
+++ src/external/bsd/less/bin/less/Makefile	2015-08-01 20:50:45.000000000 +0900
@@ -11,8 +11,8 @@
 	output.c pattern.c position.c prompt.c search.c signal.c \
 	tags.c ttyin.c version.c  
 
-LDADD+=	-lcurses -ltermcap
-DPADD+=	${LIBCURSES}
+LDADD+=	-lterminfo
+DPADD+=	${LIBTERMINFO}
 
 MLINKS=	less.1 more.1 less.1 page.1
 LINKS=	${BINDIR}/less ${BINDIR}/more ${BINDIR}/less ${BINDIR}/page
--- src/external/bsd/less/bin/lesskey/Makefile.orig	2015-08-04 16:14:11.000000000 +0900
+++ src/external/bsd/less/bin/lesskey/Makefile	2015-08-04 16:14:24.000000000 +0900
@@ -6,7 +6,4 @@
 
 SRCS=	lesskey version.c  
 
-LDADD+=	-ltermcap
-DPADD+=	${LIBTERM}
-
 .include "bsd.prog.mk"



Home | Main Index | Thread Index | Old Index