tags 646732 + patch
thanks

On 2011-10-26 18:40 +0200, Sven Joachim wrote:

> Package: chrony
> Version: 1.24-3.1
> Severity: important
> User: svenj...@gmx.de
> Usertags: readline-disabled
>
> When built in a clean sid chroot without libncurses5-dev installed,
> chrony loses readline support.  From my pbuilder log:
>
> ,----
> | ./configure --prefix='usr' --sysconfdir=/etc/chrony
> | Configuring for  Linux-i686
> | Checking for math : No
> | Checking for math in -lm : Yes
> | Checking for <stdint.h> : Yes
> | Checking for <inttypes.h> : Yes
> | Checking for IPv6 support : Yes
> | Checking for PPS API : No
> | Checking for linuxcaps : No
> | Checking for sched_setscheduler() : Yes
> | Checking for mlockall() : Yes
> | Checking for editline : No
> | Checking for readline : No
> `----
>
> Adding libncurses-dev to Build-Depends should avoid this.  However,
> consider patching the upstream build system which erroneously believes
> that ncurses is necessary for linking with readline.  See also bug
> #392273 which seems to have regressed since current versions of chrony
> depend on libncurses5.

Attached is a debdiff that patches out configure's useless ncurses
check.

Cheers,
       Sven


diff -u chrony-1.24/debian/changelog chrony-1.24/debian/changelog
--- chrony-1.24/debian/changelog
+++ chrony-1.24/debian/changelog
@@ -1,3 +1,10 @@
+chrony (1.24-3.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Patch the configure script to not look for ncurses (Closes: #646732).
+
+ -- Sven Joachim <svenj...@gmx.de>  Sat, 03 Dec 2011 10:45:08 +0100
+
 chrony (1.24-3.1) unstable; urgency=low
 
   * Non-maintainer upload.
only in patch2:
unchanged:
--- chrony-1.24.orig/configure
+++ chrony-1.24/configure
@@ -405,11 +405,11 @@
 
   if [ "x$READLINE_LINK" = "x" ] && [ $try_readline = "1" ]; then
     if test_code readline 'stdio.h readline/readline.h readline/history.h' \
-      "$readline_inc" "$readline_lib $ncurses_lib -lreadline -lncurses" \
+      "$readline_inc" "$readline_lib -lreadline" \
       'add_history(readline("prompt"));'
     then
       READLINE_COMPILE="-DFEAT_READLINE=1 $readline_inc"
-      READLINE_LINK="$readline_lib $ncurses_lib -lreadline -lncurses"
+      READLINE_LINK="$readline_lib -lreadline"
     fi
   fi
 fi

Reply via email to