attached

Cheers,
-- 
Steve McIntyre                                steve.mcint...@linaro.org
<http://www.linaro.org/> Linaro.org | Open source software for ARM SoCs
diff -Nru dvbstreamer-2.1.0/debian/changelog dvbstreamer-2.1.0/debian/changelog
--- dvbstreamer-2.1.0/debian/changelog	2011-03-23 13:40:08.000000000 +0000
+++ dvbstreamer-2.1.0/debian/changelog	2011-12-16 17:34:31.000000000 +0000
@@ -1,3 +1,14 @@
+dvbstreamer (2.1.0-2.1) unstable; urgency=low
+
+  * NMU
+  * no_ncurses.patch: Don't look for or link against ncurses; it isn't
+    even used. (Closes: #646135)
+  * debian/control: Because the majority of dvbstreamer's source is
+    GPLv2, we must use libreadline-gplv2-dev as a build-dependency.
+  * Thanks to Daniel T Chen <seven.st...@gmail.com> for the patch.
+
+ -- Steve McIntyre <steve.mcint...@linaro.org>  Fri, 16 Dec 2011 17:34:24 +0000
+
 dvbstreamer (2.1.0-2) unstable; urgency=low
 
   * Bug fix: "FTBFS everywhere: configure: error: libev not found", thanks
diff -Nru dvbstreamer-2.1.0/debian/control dvbstreamer-2.1.0/debian/control
--- dvbstreamer-2.1.0/debian/control	2011-03-17 22:07:15.000000000 +0000
+++ dvbstreamer-2.1.0/debian/control	2011-12-16 17:23:42.000000000 +0000
@@ -3,7 +3,8 @@
 Maintainer: A Mennucc1 <mennu...@debian.org>
 Build-Depends: dpkg-dev (>= 1.14.27), debhelper (>= 7), quilt (>= 0.46-4.1),
  autoconf, autotools-dev, automake, libtool, cdbs, libev-dev,
- libreadline-dev, sqlite3, libsqlite3-dev, libyaml-dev, libltdl-dev, zlib1g-dev
+ libreadline-gplv2-dev, sqlite3, libsqlite3-dev, libyaml-dev, libltdl-dev,
+ zlib1g-dev
 Standards-Version: 3.8.3
 Section: video
 Homepage: http://dvbstreamer.sf.net/
diff -Nru dvbstreamer-2.1.0/debian/patches/no_ncurses.patch dvbstreamer-2.1.0/debian/patches/no_ncurses.patch
--- dvbstreamer-2.1.0/debian/patches/no_ncurses.patch	1970-01-01 00:00:00.000000000 +0000
+++ dvbstreamer-2.1.0/debian/patches/no_ncurses.patch	2011-12-16 17:23:42.000000000 +0000
@@ -0,0 +1,88 @@
+Index: dvbstreamer-2.1.0/configure.in
+===================================================================
+--- dvbstreamer-2.1.0.orig/configure.in	2011-10-28 19:00:59.000000000 -0400
++++ dvbstreamer-2.1.0/configure.in	2011-10-28 19:00:59.000000000 -0400
+@@ -149,14 +149,6 @@
+ dnl ---------------------------------------------------------------------------
+ AC_CHECK_HEADER([readline/readline.h], [], [AC_MSG_FAILURE([readline header file not found])])
+ 
+-AC_CHECK_LIB([readline], [readline], [READLINE_TERMCAP="-lncurses"],
+-    [AC_CHECK_LIB([readline], [readline], [READLINE_TERMCAP="-ltermcap"],
+-        [AC_MSG_FAILURE([readline not found])],
+-        [-ltermcap])],
+-    [-lncurses])
+-
+-AC_SUBST(READLINE_TERMCAP)
+-
+ LIBS=""
+ 
+ dnl ---------------------------------------------------------------------------
+Index: dvbstreamer-2.1.0/configure
+===================================================================
+--- dvbstreamer-2.1.0.orig/configure	2011-10-28 19:07:04.000000000 -0400
++++ dvbstreamer-2.1.0/configure	2011-10-28 19:08:25.000000000 -0400
+@@ -12537,7 +12537,7 @@
+   $as_echo_n "(cached) " >&6
+ else
+   ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lreadline -lncurses $LIBS"
++LIBS="-lreadline $LIBS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
+ 
+@@ -12567,55 +12567,6 @@
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
+ $as_echo "$ac_cv_lib_readline_readline" >&6; }
+-if test "x$ac_cv_lib_readline_readline" = x""yes; then :
+-  READLINE_TERMCAP="-lncurses"
+-else
+-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
+-$as_echo_n "checking for readline in -lreadline... " >&6; }
+-if test "${ac_cv_lib_readline_readline+set}" = set; then :
+-  $as_echo_n "(cached) " >&6
+-else
+-  ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lreadline -ltermcap $LIBS"
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h.  */
+-
+-/* Override any GCC internal prototype to avoid an error.
+-   Use char because int might match the return type of a GCC
+-   builtin and then its argument prototype would still apply.  */
+-#ifdef __cplusplus
+-extern "C"
+-#endif
+-char readline ();
+-int
+-main ()
+-{
+-return readline ();
+-  ;
+-  return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_link "$LINENO"; then :
+-  ac_cv_lib_readline_readline=yes
+-else
+-  ac_cv_lib_readline_readline=no
+-fi
+-rm -f core conftest.err conftest.$ac_objext \
+-    conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
+-$as_echo "$ac_cv_lib_readline_readline" >&6; }
+-if test "x$ac_cv_lib_readline_readline" = x""yes; then :
+-  READLINE_TERMCAP="-ltermcap"
+-else
+-  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "readline not found
+-See \`config.log' for more details" "$LINENO" 5 ; }
+-fi
+-
+-fi
+ 
+ 
+ 
diff -Nru dvbstreamer-2.1.0/debian/patches/series dvbstreamer-2.1.0/debian/patches/series
--- dvbstreamer-2.1.0/debian/patches/series	2011-03-23 13:38:46.000000000 +0000
+++ dvbstreamer-2.1.0/debian/patches/series	2011-12-16 17:23:42.000000000 +0000
@@ -2,3 +2,4 @@
 #autostuff.patch
 usr_share_doc_in.patch
 libev.patch
+no_ncurses.patch

Reply via email to