tags 646162 + patch
thanks
On 2011-10-21 21:33 +0200, Sven Joachim wrote:
> Package: uml-utilities
> Version: 20070815-1.2
> Severity: serious
>
> From my pbuilder log:
>
> ,----
> | make[2]: Entering directory `/tmp/buildd/uml-utilities-20070815/mconsole'
> | cc -g -Wall -c -o uml_mconsole.o uml_mconsole.c
> | cc -g -Wall -o uml_mconsole uml_mconsole.o ../lib/libuml.a -lreadline
> -lncurses
> | /usr/bin/ld: cannot find -lncurses
> | collect2: ld returned 1 exit status
> | make[2]: *** [uml_mconsole] Error 1
> `----
>
> Either add libncurses-dev to Build-Depends, or (preferably) patch
> mconsole/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 patch that does the latter, ready to be dropped into
debian/patches.
Cheers,
Sven
#! /bin/sh /usr/share/dpatch/dpatch-run
## 04_dont_link_against_ncurses.dpatch by <[email protected]>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Do not unnecessarily link against ncurses
@DPATCH@
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch'
'--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr'
uml-utilities-20070815~/mconsole/Makefile
uml-utilities-20070815/mconsole/Makefile
--- uml-utilities-20070815~/mconsole/Makefile 2006-02-27 21:03:01.000000000
+0100
+++ uml-utilities-20070815/mconsole/Makefile 2011-10-30 21:18:52.820631690
+0100
@@ -1,7 +1,7 @@
BIN = uml_mconsole
OBJS = $(BIN).o
CFLAGS ?= -g -Wall
-LIBS = ../lib/libuml.a -lreadline -lncurses
+LIBS = ../lib/libuml.a -lreadline
BIN_DIR ?= /usr/bin