tags 646479 + patch
thanks

The problem is that the upstream makefiles no longer find the ncurses
libraries since they moved to the multiarch directories:

,----
| $ LANG=C make -C src -f makefile.gcc libtest
| make: Entering directory `/home/sven/tmp/bsp/mined-2000.15.4/src'
| (  ls /lib/libncurses.a       /usr/lib/libncurses.a; ls /lib/libtermcap.a     
/usr/lib/libtermcap.a; ls                       /usr/lib/termcap/libtermcap.a; 
ls /lib/libncursesw.so*  /usr/lib/libncursesw.so*; ls /lib/libncurses.so*       
 /usr/lib/libncurses.so*; ls /lib/libtermcap.so* /usr/lib/libtermcap.so*; ls    
                 /usr/lib/termcap/libtermcap.so*;  ) | cat
| ls: cannot access /lib/libncurses.a: No such file or directory
| ls: cannot access /usr/lib/libncurses.a: No such file or directory
| ls: cannot access /lib/libtermcap.a: No such file or directory
| ls: cannot access /usr/lib/libtermcap.a: No such file or directory
| ls: cannot access /usr/lib/termcap/libtermcap.a: No such file or directory
| ls: cannot access /lib/libncursesw.so*: No such file or directory
| ls: cannot access /usr/lib/libncursesw.so*: No such file or directory
| ls: cannot access /lib/libncurses.so*: No such file or directory
| ls: cannot access /usr/lib/libncurses.so*: No such file or directory
| ls: cannot access /lib/libtermcap.so*: No such file or directory
| ls: cannot access /usr/lib/libtermcap.so*: No such file or directory
| ls: cannot access /usr/lib/termcap/libtermcap.so*: No such file or directory
| echo 
`----

The code to find the ncurses/termcap libraries is really weird, but
thankfully it is possible to ignore this crap and simply hardcode
"termcap = -ltinfo" at the end.  See the attached patch which can be
dropped into debian/patches (and added to the 00list file).  Note that
mined only needs the terminfo part of ncurses, hence I'm not using
-lncurses.

Cheers,
       Sven

#! /bin/sh /usr/share/dpatch/dpatch-run
## 07_ncurses.dpatch by  <svenj...@gmx.de>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Work around makefile.gcc not finding ncurses

@DPATCH@
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' 
'--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' 
mined-2000.15.4~/src/makefile.gcc mined-2000.15.4/src/makefile.gcc
--- mined-2000.15.4~/src/makefile.gcc   2011-12-04 12:13:05.000000000 +0100
+++ mined-2000.15.4/src/makefile.gcc    2011-12-04 12:17:59.068923252 +0100
@@ -61,7 +61,7 @@
 
 # select first library found from list, replace with -l... if static
 firstlib = sed -e "s,\($(LIBDIR).*\)/lib\([^/]*\)\.a,-L\1 -l\2," -e "1 p" -e d
-termcap = $(shell ( $(liblist) ) 2> /dev/null | $(firstlib) )
+termcap = -ltinfo
 
 # libtest: target at bottom (must not be first target)
 

Reply via email to