NetBSD-Bugs archive

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

lib/46793: Can not compile libterminfo



>Number:         46793
>Category:       lib
>Synopsis:       Can not compile libterminfo
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 11 22:30:00 +0000 2012
>Originator:     Bernd Ernesti
>Release:        NetBSD 6.0_BETA2
>Organization:
        
>Environment:
System: NetBSD 6.0_BETA2
Architecture: i386
Machine: i386
>Description:

A normal build fails in src/lib/libterminfo and src/tests/lib/libcurses

 dependall ===> libterminfo
 Generating terminfo hash
 .
 Generating termcap hash
 .....
 ..
 make: don't know how to make tic. Stop

src/lib/libterminfo/Makefile.hash contains this:
 compiled_terms.c: ${TOOL_TIC}
and src/tests/lib/libcurses/Makefile
 ${TERMINFO_DB}.cdb: ${TOOL_TIC} ${TEST_TERMINFO}

So the define from /usr/share/mk/bsd.own.mk can not work with USETOOLS != yes:
 /usr/share/mk/bsd.own.mk:TOOL_TIC= tic

Additionally src/lib/libterminfo/genterms will not work if
you do not have your source code in /usr/src. It needs a patch to
set NETBSDSRCDIR in src/lib/libterminfo/Makefile.hash.

>How-To-Repeat:

Use
 USETOOLS = never
 MKTOOLS = no

cd src/lib/libterminfo
make dependall

>Fix:

No idea how to deal with the tic issue, but for genterms::

Index: Makefile.hash
===================================================================
RCS file: /cvsroot/src/lib/libterminfo/Makefile.hash,v
retrieving revision 1.4.4.1
diff -b -u -r1.4.4.1 Makefile.hash
--- Makefile.hash       23 Jun 2012 22:54:57 -0000      1.4.4.1
+++ Makefile.hash       11 Aug 2012 22:07:25 -0000
@@ -1,6 +1,7 @@
 #      $NetBSD: Makefile.hash,v 1.4.4.1 2012/06/23 22:54:57 riz Exp $
 
 SCRIPT_ENV=    \
+       NETBSDSRCDIR=${NETBSDSRCDIR:Q} \
        TOOL_AWK=${TOOL_AWK:Q} \
        TOOL_NBPERF=${TOOL_NBPERF:Q} \
        TOOL_SED=${TOOL_SED:Q} \



Home | Main Index | Thread Index | Old Index