Here's a better patch that also resolves a patch conflict in
030_tcl8.5.patch.
--
Colin Watson [[email protected]]
* 020_bidi.patch: Link with -ldl for dlopen, so that we work properly with
GCC versions that default to --no-add-needed.
diff -u newt-0.52.11/debian/patches/030_tcl8.5.patch newt-0.52.11/debian/patches/030_tcl8.5.patch
--- newt-0.52.11/debian/patches/030_tcl8.5.patch
+++ newt-0.52.11/debian/patches/030_tcl8.5.patch
@@ -2,7 +2,7 @@
--- newt-0.52.11-old/Makefile.in 2009-04-20 21:44:14.000000000 +0100
+++ newt-0.52.11/Makefile.in 2009-04-20 21:49:26.000000000 +0100
@@ -1,10 +1,10 @@
- LIBS = -lslang
+ LIBS = -lslang @LIBS@
-LIBTCL = -ltcl8.4
+LIBTCL = -ltcl8.5
diff -u newt-0.52.11/debian/patches/020_bidi.patch newt-0.52.11/debian/patches/020_bidi.patch
--- newt-0.52.11/debian/patches/020_bidi.patch
+++ newt-0.52.11/debian/patches/020_bidi.patch
@@ -1,3 +1,12 @@
+diff -ruN newt-0.52.11-old/Makefile.in newt-0.52.11/Makefile.in
+--- newt-0.52.11-old/Makefile.in 2010-10-15 16:02:24.000000000 +0100
++++ newt-0.52.11/Makefile.in 2010-10-15 16:05:45.000000000 +0100
+@@ -1,4 +1,4 @@
+-LIBS = -lslang
++LIBS = -lslang @LIBS@
+ LIBTCL = -ltcl8.4
+
+ CC = @CC@
diff -ruN newt-0.52.11-old/button.c newt-0.52.11/button.c
--- newt-0.52.11-old/button.c 2009-09-24 16:03:09.000000000 +0100
+++ newt-0.52.11/button.c 2010-06-21 13:12:53.000000000 +0100
@@ -62,12 +71,14 @@
diff -ruN newt-0.52.11-old/configure.ac newt-0.52.11/configure.ac
--- newt-0.52.11-old/configure.ac 2009-09-24 16:03:09.000000000 +0100
+++ newt-0.52.11/configure.ac 2010-06-21 13:12:53.000000000 +0100
-@@ -14,7 +14,7 @@
+@@ -14,7 +14,9 @@
AC_PROG_INSTALL
AC_PROG_LN_S
-AC_CHECK_HEADERS([sys/select.h alloca.h])
+AC_CHECK_HEADERS(sys/select.h alloca.h fribidi/fribidi.h dlfcn.h)
++AC_SEARCH_LIBS([dlopen], [dl])
++AC_SUBST([LIBS])
AC_MSG_CHECKING([for python versions])
PYTHONVERS=$(echo /usr/include/python*/Python.h | sed "s|/usr/include/||g"| sed "s|/Python.h||g" 2> /dev/null)