tags 646148 + patch thanks On 2011-10-21 20:16 +0200, Sven Joachim wrote:
> Package: multipath-tools > Version: 0.4.9-2 > Severity: serious > > From my pbuilder log: > > ,---- > | cc -pipe -g -Wall -Wunused -Wstrict-prototypes -fPIC > | -DLIB_STRING=\"lib\" -I../libmultipath -c -o cli_handlers.o > | cli_handlers.c > | cc -pipe -g -Wall -Wunused -Wstrict-prototypes -fPIC > | -DLIB_STRING=\"lib\" -I../libmultipath -lpthread -ldevmapper > | -lreadline -lncurses -ldl -lmultipath -L../libmultipath -o > | multipathd main.o pidfile.o uxlsnr.o uxclnt.o cli.o cli_handlers.o > | /usr/bin/ld: cannot find -lncurses > | collect2: ld returned 1 exit status > | make[2]: *** [multipathd] Error 1 > `---- > > Either add libncurses-dev to Build-Depends, or (preferably) patch > multipathd/Makefile to not add -lncurses to LDFLAGS, since it is not > needed. Attached is a debdiff with a patch that does the latter. Cheers, Sven
diff -Nru multipath-tools-0.4.9/debian/patches/0007-do-not-link-against-ncurses.patch multipath-tools-0.4.9/debian/patches/0007-do-not-link-against-ncurses.patch --- multipath-tools-0.4.9/debian/patches/0007-do-not-link-against-ncurses.patch 1970-01-01 01:00:00.000000000 +0100 +++ multipath-tools-0.4.9/debian/patches/0007-do-not-link-against-ncurses.patch 2011-11-05 13:37:57.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/646148 +Last-Update: <2011-11-05> + +--- + +--- multipath-tools-0.4.9.orig/multipathd/Makefile ++++ multipath-tools-0.4.9/multipathd/Makefile +@@ -6,7 +6,7 @@ include ../Makefile.inc + # basic flags setting + # + CFLAGS += -I$(multipathdir) +-LDFLAGS += -lpthread -ldevmapper -lreadline -lncurses -ldl \ ++LDFLAGS += -lpthread -ldevmapper -lreadline -ldl \ + -lmultipath -L$(multipathdir) + + # diff -Nru multipath-tools-0.4.9/debian/patches/series multipath-tools-0.4.9/debian/patches/series --- multipath-tools-0.4.9/debian/patches/series 2011-03-04 22:53:38.000000000 +0100 +++ multipath-tools-0.4.9/debian/patches/series 2011-11-03 09:41:28.000000000 +0100 @@ -4,3 +4,4 @@ 0004-add-r-to-make-resulting-device-read-only.patch 0005-spelling-error-fixes.patch 0006-read-only-partition-mappings-manpage.patch +0007-do-not-link-against-ncurses.patch