Package: libedit Version: 2.11-20080614-3 Severity: wishlist Tags: patch User: [email protected] Usertags: libncurses5-dependency
Currently libedit2 links against libncurses5 which is unnecessary as of ncurses 5.9-2 since we have split off a libtinfo library that is shared by libncurses5 and libncursesw5, and libedit only uses symbols from libtinfo. The attached patch removes the unnecessary dependency by linking against libtinfo rather than libcurses, and also adjusting the .pc file and the libedit-dev package's dependencies. Since libedit's header files do not #include ncurses headers, that should be safe. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (101, 'experimental') Architecture: i386 (x86_64) Kernel: Linux 3.1.0-rc9-nouveau (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru libedit-2.11-20080614/debian/control libedit-2.11-20080614/debian/control --- libedit-2.11-20080614/debian/control 2011-08-28 03:01:26.000000000 +0200 +++ libedit-2.11-20080614/debian/control 2011-10-05 18:56:51.000000000 +0200 @@ -3,7 +3,7 @@ Priority: standard Maintainer: Anibal Monsalve Salazar <[email protected]> Build-Depends: debhelper (>= 8.1.3), pmake (>= 1.111-3), groff-base, - libbsd-dev (>= 0.1.3), libncurses5-dev, bsdmainutils + libbsd-dev (>= 0.1.3), libncurses5-dev (>= 5.9-2), bsdmainutils Standards-Version: 3.9.2 Vcs-Browser: http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit/ Homepage: http://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/lib/libedit/ @@ -26,7 +26,7 @@ Architecture: any Multi-Arch: same Depends: ${misc:Depends}, libedit2 (= ${binary:Version}), - libbsd-dev (>= 0.1.3), libncurses5-dev + libbsd-dev (>= 0.1.3), libtinfo-dev Description: BSD editline and history libraries (development files) The editline library provides generic line editing and history functions. diff -Nru libedit-2.11-20080614/debian/libedit.pc libedit-2.11-20080614/debian/libedit.pc --- libedit-2.11-20080614/debian/libedit.pc 2011-08-28 01:28:32.000000000 +0200 +++ libedit-2.11-20080614/debian/libedit.pc 2011-10-05 18:52:25.000000000 +0200 @@ -9,5 +9,5 @@ Requires: Requires.private: libbsd Libs: -L${libdir} -ledit -Libs.private: -lcurses +Libs.private: -ltinfo Cflags: -I${includedir} diff -Nru libedit-2.11-20080614/debian/rules libedit-2.11-20080614/debian/rules --- libedit-2.11-20080614/debian/rules 2011-08-27 10:17:53.000000000 +0200 +++ libedit-2.11-20080614/debian/rules 2011-10-05 19:17:38.000000000 +0200 @@ -9,7 +9,7 @@ PKGDIR = ${CURDIR}/debian/tmp PMAKE_ARGS = MKPROFILE=no MKCATPAGES=no MLINKS= MANPAGES= \ SHLIB_SHFLAGS="-Wl,-soname,libedit.so.${major}" \ - LDADD="-lbsd -lcurses" + LDADD="-lbsd -ltinfo" EDITLINE_3_LINKS = el_init el_end el_reset el_gets el_getc el_push \ el_parse el_set el_get el_source el_resize el_line \ el_insertstr el_deletestr history_init history_end history

