NetBSD Problem Report #50720
From www@NetBSD.org Wed Jan 27 23:47:56 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.NetBSD.org [199.233.217.200])
(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 1B0517ACAD
for <gnats-bugs@gnats.NetBSD.org>; Wed, 27 Jan 2016 23:47:56 +0000 (UTC)
Message-Id: <20160127234754.E2E2A7ACAF@mollari.NetBSD.org>
Date: Wed, 27 Jan 2016 23:47:54 +0000 (UTC)
From: mike.volokhov@gmail.com
Reply-To: mike.volokhov@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Incorrect termcap detection in devel/libslang2 on FreeBSD
X-Send-Pr-Version: www-1.0
>Number: 50720
>Category: pkg
>Synopsis: Incorrect termcap detection in devel/libslang2 on FreeBSD
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 27 23:50:00 +0000 2016
>Originator: Mike M. Volokhov
>Release: pkgsrc-2015Q4
>Organization:
>Environment:
FreeBSD corpus3.prod.casg 10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 15:26:37 UTC 2015 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
The devel/libslang2 is bound to termcap. The FreeBSD implements tinfo, so the libslang2 can't use termcap at all on this OS.
>How-To-Repeat:
Install software that depends on the libslang2 (I found it on the sysutils/mc), note issues when working with terminal.
>Fix:
The following quick patch fixes the issue for me, but a graceful termcap detection may be introduced (please see the .else).
===================================================================
RCS file: /cvsroot/pkgsrc/devel/libslang2/Makefile,v
retrieving revision 1.18
diff -u -r1.18 Makefile
--- Makefile 9 Oct 2014 14:06:10 -0000 1.18
+++ Makefile 27 Jan 2016 23:37:25 -0000
@@ -36,7 +36,7 @@
.include "../../mk/termcap.buildlink3.mk"
-.if ${TERMCAP_TYPE} == "termcap"
+.if ${TERMCAP_TYPE} == "termcap" || ${TERMCAP_TYPE} == "tinfo"
CONFIGURE_ENV+= TERMCAP=${BUILDLINK_LDADD.termcap:Q}
CONFIGURE_ENV+= MISC_TERMINFO_DIRS=${PREFIX}/share/terminfo
.else
(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.