tags 646165 + patch
thanks

On 2011-10-21 21:43 +0200, Sven Joachim wrote:

> Package: lua5.2
> Version: 5.2.0~beta-1
> Severity: serious
>
> From my pbuilder log:
>
> ,----
> | libtool --quiet --mode=compile --tag=CC gcc -O2 -Wall
> | -DLUA_COMPAT_ALL -DLUA_USE_LINUX -g
> | -DDEB_HOST_MULTIARCH=\"i386-linux-gnu\" -c lua.c
> | libtool --quiet --mode=link --tag=CC gcc -o lua5.2 -static -Wl,-E
> | lua.o liblua5.2.la -lm -Wl,-E -ldl -lreadline -lncurses
> | /usr/bin/ld: cannot find -lncurses
> | collect2: ld returned 1 exit status
> | make[4]: *** [lua5.2] Error 1
> `----
>
> Either add libncurses-dev to Build-Depends, or (preferably) patch
> src/Makefile to not add -lncurses to the linker line, since it is not
> needed (there is a corresponding dpkg-shlibdeps warning in the buildd
> logs).

Attached is a debdiff with a patch that does the latter.

Cheers,
       Sven

diff -Nru lua5.2-5.2.0~beta/debian/patches/no-ncurses-dependency.patch 
lua5.2-5.2.0~beta/debian/patches/no-ncurses-dependency.patch
--- lua5.2-5.2.0~beta/debian/patches/no-ncurses-dependency.patch        
1970-01-01 01:00:00.000000000 +0100
+++ lua5.2-5.2.0~beta/debian/patches/no-ncurses-dependency.patch        
2011-11-05 13:26:15.000000000 +0100
@@ -0,0 +1,18 @@
+Description: Do not link against ncurses unnecessarily
+Author: Sven Joachim <svenj...@gmx.de>
+Bug-Debian: http://bugs.debian.org/646165
+Last-Update: <2011-11-05>
+
+---
+
+--- lua5.2-5.2.0~beta.orig/src/Makefile
++++ lua5.2-5.2.0~beta/src/Makefile
+@@ -103,7 +103,7 @@ freebsd:
+ generic: $(ALL)
+ 
+ linux:
+-      $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl 
-lreadline -lncurses"
++      $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl 
-lreadline"
+ 
+ macosx:
+       $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX" SYSLIBS="-lreadline"
diff -Nru lua5.2-5.2.0~beta/debian/patches/series 
lua5.2-5.2.0~beta/debian/patches/series
--- lua5.2-5.2.0~beta/debian/patches/series     2011-07-20 18:58:04.000000000 
+0200
+++ lua5.2-5.2.0~beta/debian/patches/series     2011-11-05 13:25:16.000000000 
+0100
@@ -1,2 +1,3 @@
 debian-make.patch
 debian-paths.patch
+no-ncurses-dependency.patch

Reply via email to