Hi,

>From Bug Squashing Party, I am about to upload an NMU version to fix
this package building against recent versions of libreadline.

NMU diff attached.


Cheers.
-- 
Manuel A. Fernandez Montecelo <manuel.montez...@gmail.com>
diff -u tdl-1.5.2/debian/changelog tdl-1.5.2/debian/changelog
--- tdl-1.5.2/debian/changelog
+++ tdl-1.5.2/debian/changelog
@@ -1,3 +1,11 @@
+tdl (1.5.2-3.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Support newer versions of libreadline, fix "FTBFS: inter.c:559:3:
+    error: unknown type name 'Function'" (Closes: #741795)
+
+ -- Manuel A. Fernandez Montecelo <m...@debian.org>  Sat, 22 Mar 2014 13:54:20 
+0000
+
 tdl (1.5.2-3.1) unstable; urgency=low
 
   * Non-maintainer upload.
only in patch2:
unchanged:
--- tdl-1.5.2.orig/inter.c
+++ tdl-1.5.2/inter.c
@@ -556,7 +556,11 @@
 static char *interactive_text_readline(char *prompt, char *initval, int 
*is_blank, int *error)/*{{{*/
 {
   char *line;
+#if defined(_RL_FUNCTION_TYPEDEF)
+  rl_hook_func_t *old_rl_pre_input_hook = NULL;
+#else
   Function *old_rl_pre_input_hook = NULL;
+#endif
   
   *error = 0;
   old_rl_pre_input_hook = rl_pre_input_hook;
@@ -633,9 +637,15 @@
 #ifdef USE_READLINE
   if (isatty(0)) {
     char *result;
+#if defined(_RL_FUNCTION_TYPEDEF)
+    rl_attempted_completion_function = (rl_completion_func_t *) 
null_tdl_completion;
+    result = interactive_text_readline(prompt, initval, is_blank, error);
+    rl_attempted_completion_function = (rl_completion_func_t *) tdl_completion;
+#else
     rl_attempted_completion_function = (CPPFunction *) null_tdl_completion;
     result = interactive_text_readline(prompt, initval, is_blank, error);
     rl_attempted_completion_function = (CPPFunction *) tdl_completion;
+#endif
     return result;
   } else {
     /* In case someone wants to drive tdl from a script, by redirecting stdin 
to it. */
@@ -653,7 +663,11 @@
 #ifdef USE_READLINE
   if (isatty(0)) {
     rl_completion_entry_function = NULL;
+#if defined(_RL_FUNCTION_TYPEDEF)
+    rl_attempted_completion_function = (rl_completion_func_t *) tdl_completion;
+#else
     rl_attempted_completion_function = (CPPFunction *) tdl_completion;
+#endif
     interactive_readline();
   } else {
     /* In case someone wants to drive tdl from a script, by redirecting stdin 
to it. */

Reply via email to