NetBSD Problem Report #50123

From www@NetBSD.org  Tue Aug  4 07:25:22 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 962A7A5858
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  4 Aug 2015 07:25:22 +0000 (UTC)
Message-Id: <20150804072521.4C658A65B7@mollari.NetBSD.org>
Date: Tue,  4 Aug 2015 07:25:21 +0000 (UTC)
From: okuyama@flex.phys.tohoku.ac.jp
Reply-To: okuyama@flex.phys.tohoku.ac.jp
To: gnats-bugs@NetBSD.org
Subject: less and lesskey require unused libraries
X-Send-Pr-Version: www-1.0

>Number:         50123
>Category:       bin
>Synopsis:       less and lesskey require unused libraries
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 04 07:30:00 +0000 2015
>Closed-Date:    Sat Dec 10 13:46:38 +0000 2016
>Last-Modified:  Sat Dec 10 13:46:38 +0000 2016
>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"

>Release-Note:

>Audit-Trail:
From: "Rin Okuyama" <rin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50123 CVS commit: src/external/bsd/less/bin
Date: Sat, 10 Dec 2016 13:44:51 +0000

 Module Name:	src
 Committed By:	rin
 Date:		Sat Dec 10 13:44:51 UTC 2016

 Modified Files:
 	src/external/bsd/less/bin/less: Makefile
 	src/external/bsd/less/bin/lesskey: Makefile

 Log Message:
 PR bin/50123 (myself): less and lesskey do not depend on libcurses and
 libterminfo, respectively.


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 src/external/bsd/less/bin/less/Makefile
 cvs rdiff -u -r1.1 -r1.2 src/external/bsd/less/bin/lesskey/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: rin@NetBSD.org
State-Changed-When: Sat, 10 Dec 2016 13:46:38 +0000
State-Changed-Why:
fix committed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.