Cheers,
-- 
Steve McIntyre                                [email protected]
<http://www.linaro.org/> Linaro.org | Open source software for ARM SoCs
diff -Nru cdcd-0.6.6/debian/changelog cdcd-0.6.6/debian/changelog
--- cdcd-0.6.6/debian/changelog 2011-09-04 14:53:50.000000000 +0000
+++ cdcd-0.6.6/debian/changelog 2011-12-01 15:04:16.000000000 +0000
@@ -1,3 +1,12 @@
+cdcd (0.6.6-13.1) unstable; urgency=low
+
+  * NMU
+  * Add 07-no-curses.patch to fix FTBFS. Since curses isn't used
+    anyway, don't test for or use it. (Closes: #646134). Thanks to Daniel
+    T Chen for passing on this patch from Ubuntu.
+
+ -- Steve McIntyre <[email protected]>  Thu, 01 Dec 2011 14:56:59 +0000
+
 cdcd (0.6.6-13) unstable; urgency=low
 
   * New maintainer (Closes: #543835).
diff -Nru cdcd-0.6.6/debian/patches/07-no-curses.patch 
cdcd-0.6.6/debian/patches/07-no-curses.patch
--- cdcd-0.6.6/debian/patches/07-no-curses.patch        1970-01-01 
00:00:00.000000000 +0000
+++ cdcd-0.6.6/debian/patches/07-no-curses.patch        2011-12-01 
14:32:10.000000000 +0000
@@ -0,0 +1,104 @@
+Index: cdcd-0.6.6/config.h.in
+===================================================================
+--- cdcd-0.6.6.orig/config.h.in        2011-10-25 19:56:03.000000000 -0400
++++ cdcd-0.6.6/config.h.in     2011-10-25 19:54:56.000000000 -0400
+@@ -33,9 +33,6 @@
+ /* True if we must provide -llibcdaudio (for IRIX). */
+ #undef HAVE_LIBCDAUDIO
+ 
+-/* Define to 1 if you have the `curses' library (-lcurses). */
+-#undef HAVE_LIBCURSES
+-
+ /* Define to 1 if you have the `readline' library (-lreadline). */
+ #undef HAVE_LIBREADLINE
+ 
+Index: cdcd-0.6.6/configure
+===================================================================
+--- cdcd-0.6.6.orig/configure  2011-10-25 19:56:03.000000000 -0400
++++ cdcd-0.6.6/configure       2011-10-25 19:56:03.000000000 -0400
+@@ -3677,85 +3677,6 @@
+ 
+ 
+ 
+-echo "$as_me:$LINENO: checking for tputs in -lcurses" >&5
+-echo $ECHO_N "checking for tputs in -lcurses... $ECHO_C" >&6
+-if test "${ac_cv_lib_curses_tputs+set}" = set; then
+-  echo $ECHO_N "(cached) $ECHO_C" >&6
+-else
+-  ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lcurses  $LIBS"
+-cat >conftest.$ac_ext <<_ACEOF
+-/* confdefs.h.  */
+-_ACEOF
+-cat confdefs.h >>conftest.$ac_ext
+-cat >>conftest.$ac_ext <<_ACEOF
+-/* end confdefs.h.  */
+-
+-/* Override any gcc2 internal prototype to avoid an error.  */
+-#ifdef __cplusplus
+-extern "C"
+-#endif
+-/* We use char because int might match the return type of a gcc2
+-   builtin and then its argument prototype would still apply.  */
+-char tputs ();
+-int
+-main ()
+-{
+-tputs ();
+-  ;
+-  return 0;
+-}
+-_ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+-  (eval $ac_link) 2>conftest.er1
+-  ac_status=$?
+-  grep -v '^ *+' conftest.er1 >conftest.err
+-  rm -f conftest.er1
+-  cat conftest.err >&5
+-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+-  (exit $ac_status); } &&
+-       { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s 
conftest.err'
+-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+-  (eval $ac_try) 2>&5
+-  ac_status=$?
+-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+-  (exit $ac_status); }; } &&
+-       { ac_try='test -s conftest$ac_exeext'
+-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+-  (eval $ac_try) 2>&5
+-  ac_status=$?
+-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+-  (exit $ac_status); }; }; then
+-  ac_cv_lib_curses_tputs=yes
+-else
+-  echo "$as_me: failed program was:" >&5
+-sed 's/^/| /' conftest.$ac_ext >&5
+-
+-ac_cv_lib_curses_tputs=no
+-fi
+-rm -f conftest.err conftest.$ac_objext \
+-      conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tputs" >&5
+-echo "${ECHO_T}$ac_cv_lib_curses_tputs" >&6
+-if test $ac_cv_lib_curses_tputs = yes; then
+-  cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBCURSES 1
+-_ACEOF
+-
+-  LIBS="-lcurses $LIBS"
+-
+-else
+-  { { echo "$as_me:$LINENO: error: cannot find the curses library.
+-Check the INSTALL file, maybe you can find how to solve the problem." >&5
+-echo "$as_me: error: cannot find the curses library.
+-Check the INSTALL file, maybe you can find how to solve the problem." >&2;}
+-   { (exit 1); exit 1; }; }
+-fi
+-
+-
+ echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
+ echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
+ if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
diff -Nru cdcd-0.6.6/debian/patches/series cdcd-0.6.6/debian/patches/series
--- cdcd-0.6.6/debian/patches/series    2011-09-04 14:49:43.000000000 +0000
+++ cdcd-0.6.6/debian/patches/series    2011-12-01 14:32:10.000000000 +0000
@@ -4,3 +4,4 @@
 04-freedb-url
 05-fix-rndplay-segfault.patch
 06-manpage-hyphen-fix.patch
+07-no-curses.patch

Reply via email to