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

Bug#898131: fbb: xfbbC lost ncurses support after rebuild



Package: fbb
Version: 7.07-3
Followup-For: Bug #898131

That did not fix the problem because the macro doesn't search for ncurses if it has found ncursesw before.

A fix is simply passing --without-ncursesw to dh_auto_configure however AFAICT this package only includes curses.h, so look at the attached diff instead.
The resulting binary is linked against libncurses, is that correct?
ldd debian/fbb/usr/sbin/xfbbC
        linux-vdso.so.1 (0x00007ffcfff5b000)
        libncurses.so.6 => /lib/x86_64-linux-gnu/libncurses.so.6 (0x00007f0fa17fc000)
        libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007f0fa15cf000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f0fa123c000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0fa0e82000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0fa0c7e000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f0fa1c2a000)

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.13.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8), LANGUAGE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages fbb depends on:
ii  libax25      0.0.12-rc4-2
ii  libc6        2.27-3
ii  libncurses6  6.1+20180210-2
ii  libtinfo6    6.1+20180210-2

fbb recommends no packages.

Versions of packages fbb suggests:
pn  fbbdoc  <none>

-- no debconf information
diff -ur fbb-7.07.old/configure.ac fbb-7.07/configure.ac
--- fbb-7.07.old/configure.ac	2018-05-10 14:33:30.000000000 +0200
+++ fbb-7.07/configure.ac	2018-05-10 12:43:25.151348491 +0200
@@ -116,7 +116,7 @@
         AC_MSG_WARN([ncurses not found.])
         AC_MSG_WARN([xfbbC will be built with terminal mode.])
 esac
-AM_CONDITIONAL(HAVE_NCURSES, test x$ax_cv_ncurses = xyes)
+AM_CONDITIONAL([HAVE_CURSES], test "$ax_cv_curses" = yes)
 AC_SUBST(CURSES_LIB)
 
 # Checks for header files.
diff -ur fbb-7.07.old/debian/rules fbb-7.07/debian/rules
--- fbb-7.07.old/debian/rules	2015-05-09 15:53:21.000000000 +0200
+++ fbb-7.07/debian/rules	2018-05-10 12:26:06.660211952 +0200
@@ -2,3 +2,6 @@
 
 %:
 	dh $@ --with autoreconf
+
+override_dh_auto_configure:
+	dh_auto_configure -- --without-ncursesw --without-ncurses
diff -ur fbb-7.07.old/src/Makefile.am fbb-7.07/src/Makefile.am
--- fbb-7.07.old/src/Makefile.am	2015-02-04 01:03:12.000000000 +0100
+++ fbb-7.07/src/Makefile.am	2018-05-10 12:36:09.341385419 +0200
@@ -80,7 +80,7 @@
 
 xfbbd_LDADD = libxfbbd.a $(AX25_LIB)
 
-if HAVE_NCURSES
+if HAVE_CURSES
 xfbbC_SOURCES = md5c.c terminal.c xfbbC.c
 xfbbC_LDADD = @CURSES_LIB@
 else

Reply to: