pkgsrc-Bugs archive

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

pkg/50720: Incorrect termcap detection in devel/libslang2 on FreeBSD



>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@localhost:/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



Home | Main Index | Thread Index | Old Index