Patchwork [CONSOLIDATED,PULL,02/15] ncurses: libcurses.so should link to libncurses.so

login
register
mail settings
Submitter Saul Wold
Date Dec. 9, 2011, 6:23 p.m.
Message ID <e079fc3617e1c508de82bddc81b8587ffb498ba7.1323454935.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/16585/
State New
Headers show

Comments

Saul Wold - Dec. 9, 2011, 6:23 p.m.
The current libcurses (backward compat) links to libncurses.so.5.9,
this causes a problem since this library also needs libtinfo, the
libncurses.so, uses a "ld script" to include both, libcurses.so
should point to libncurses.so (the script) not the library.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-core/ncurses/ncurses.inc |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
Khem Raj - Dec. 9, 2011, 7:42 p.m.
On Fri, Dec 9, 2011 at 10:23 AM, Saul Wold <sgw@linux.intel.com> wrote:
> +       # Make sure that libcurses is linked so that it gets -ltinfo
> +       # also, this should be addressed upstream really.
> +       rm -f ${D}${libdir}/libcurses.so
> +       ln -s libncurses.so ${D}${libdir}/libcurses.so
>

you could do ln -sf libncurses.so ${D}${libdir}/libcurses.so and be
done in one go

Patch

diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc
index df9252a..b591686 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -6,7 +6,7 @@  LIC_FILES_CHKSUM = "file://ncurses/base/version.c;beginline=1;endline=27;md5=cbc
 SECTION = "libs"
 DEPENDS = "ncurses-native"
 DEPENDS_virtclass-native = ""
-INC_PR = "r2"
+INC_PR = "r3"
 
 inherit autotools binconfig multilib_header
 
@@ -161,6 +161,10 @@  do_install() {
                 echo '/* GNU ld script */'  >$f
                 echo "INPUT($i.so.5 AS_NEEDED(-ltinfo))" >>$f
         done
+	# Make sure that libcurses is linked so that it gets -ltinfo
+	# also, this should be addressed upstream really.
+	rm -f ${D}${libdir}/libcurses.so
+	ln -s libncurses.so ${D}${libdir}/libcurses.so
 
         # create libtermcap.so linker script for backward compatibility
         f=${D}${libdir}/libtermcap.so