On 2015-11-24 23:01 +0100, Moritz Mühlenhoff wrote:

> On Wed, Nov 04, 2015 at 08:02:39PM +0100, Sven Joachim wrote:
>> Source: slrn
>> Version: 1.0.2-3
>> 
>> Your package currently FTBFS in unstable.  From my pbuilder log:
>> 
>> ,----
>> | gcc /build/slrn-1.0.2/src/objs/chkslang.o -Wl,-z,relro -o
>> | /build/slrn-1.0.2/src/objs/chkslang -lslang -luu -lcanlock
>> | -L/usr/lib/i386-linux-gnu/lib -lgnutls -lgnutls-openssl -ltermcap
>> | /usr/bin/ld: cannot find -ltermcap
>> `----
>> 
>> This is an unexpected fallout from the fix for bug #745479[1], I did not
>> really consider it possible that packages use the ncurses5-config script
>> without a build dependency on libncurses5-dev.  Anyway, here's the
>> analysis:
>
> Sorry for the late reply.
>
> Adding libncurses5-dev as a build dependency to slrn also seems like a proper 
> fix
> to me, then?

It would work fine now, but in the future (after the Stretch release)
ncurses5-config is going away, i.e. its name will change.  This means
that slrn might start to link with -ltermcap, obtaining a spurious
dependency on libtinfo6.

If you want to avoid that and don't like the patch I sent to the bug,
adding /lib/terminfo to JD_Terminfo_Dirs in autoconf/aclocal.m4 should
also work:

--8<---------------cut here---------------start------------->8---
--- autoconf/aclocal.m4~        2014-09-20 04:08:47.000000000 +0200
+++ autoconf/aclocal.m4 2015-11-25 20:15:20.705413964 +0100
@@ -506,6 +506,7 @@
    MISC_TERMINFO_DIRS=""
 fi
 JD_Terminfo_Dirs="$MISC_TERMINFO_DIRS \
+                  /lib/terminfo \
                   /usr/lib/terminfo \
                   /usr/share/terminfo \
                   /usr/share/lib/terminfo \
--8<---------------cut here---------------end--------------->8---


Cheers,
       Sven        

Reply via email to