Emerge failure: dev-lisp/clisp-2.49-r8

dev-lisp/clisp-2.49-r8 fails to emerge with sys-libs/ncurses[tinfo] (required for CUDA), complaining that it does not find tgetent:

configure: ** checks for libraries
checking for library containing tgetent... no
configure: error: in `/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/builddir':
configure: error: despite --with-readline, GNU readline was not found (try --with-libreadline-prefix)
See `config.log' for more details.
 * ERROR: dev-lisp/clisp-2.49-r8::gentoo failed (configure phase):
 *   ./configure failed
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_configure
 *   environment, line 2282:  Called die
 * The specific snippet of code:
 *       ${configure} || die "./configure failed";
 *
 * If you need support, post the output of `emerge --info '=dev-lisp/clisp-2.49-r8::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lisp/clisp-2.49-r8::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lisp/clisp-2.49-r8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lisp/clisp-2.49-r8/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49'
 * S: '/var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49'

This is Gentoo bug #497600.
The bug is also referenced upstream as CLISP bug #665 on SourceForge. The fix is included in the bug report, and has been applied to the CLISP repository (in src/m4/termcap.m4 – the configure scripts have not yet been regenerated).

It only needs be applied to the tarball installed by the ebuild:

$ ebuild /usr/portage/dev-lisp/clisp/clisp-2.49-r8.ebuild prepare
$ sed -e "s/for ac_lib in '' ncurses termcap; do/for ac_lib in '' ncurses termcap tinfo; do/" -i /var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/src/configure
$ sed -e "s/for ac_lib in '' ncurses termcap; do/for ac_lib in '' ncurses termcap tinfo; do/" -i /var/tmp/portage/dev-lisp/clisp-2.49-r8/work/clisp-2.49/modules/readline/configure
$ ebuild /usr/portage/dev-lisp/clisp/clisp-2.49-r8.ebuild merge clean

Leave a Reply

Your email address will not be published. Required fields are marked *