Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: "Eric Bénard" <eric@eukrea.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH v2] ncurses-5.7 : fix sdk build + add libtermcap link
Date: Sun, 29 Aug 2010 13:22:50 +0200	[thread overview]
Message-ID: <1283080970-2494-1-git-send-email-eric@eukrea.com> (raw)
In-Reply-To: <1283078750-25729-1-git-send-email-eric@eukrea.com>

- fix ncurses-sdk build (compile tested on ubuntu using angstrom
2010.x and 2008.1 for armv6 target on i686 host)
- fix asterisk build (by adding libtermcap's link), compile tested
on angstrom 2008.1 for armv6

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
v2 : remove wrong RPROVIDES/CONFLICTS/REPLACES

 recipes/ncurses/ncurses_5.7.bb |   32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/recipes/ncurses/ncurses_5.7.bb b/recipes/ncurses/ncurses_5.7.bb
index 57374ec..6866ffb 100644
--- a/recipes/ncurses/ncurses_5.7.bb
+++ b/recipes/ncurses/ncurses_5.7.bb
@@ -4,7 +4,7 @@ LICENSE = "MIT"
 SECTION = "libs"
 PATCHDATE = "20100501"
 PKGV = "${PV}+${PATCHDATE}"
-PR = "r11"
+PR = "r12"
 
 DEPENDS = "ncurses-native unifdef-native"
 DEPENDS_virtclass-native = "unifdef-native"
@@ -32,15 +32,15 @@ EXTRA_AUTORECONF = "-I m4"
 ENABLE_WIDEC = "true"
 # Build breaks on Ubuntu else :(
 ENABLE_WIDEC_virtclass-native = "false"
-
+ENABLE_WIDEC_virtclass-sdk = "false"
 
 # Override the function from the autotools class; ncurses requires a
 # patched autoconf213 to generate the configure script. This autoconf
 # is not available so that the shipped script will be used.
 do_configure() {
         for i in \
-        'narrowc --with-ticlib' \
-        'widec   --enable-widec --without-progs'; do
+        'narrowc  --with-ticlib' \
+        'widec    --with-ticlib --enable-widec --without-progs'; do
                 set -- $i
                 mkdir -p $1
                 cd $1
@@ -144,6 +144,11 @@ do_install() {
                 ln -sf xterm-color ${D}${sysconfdir}/terminfo/x/xterm
         fi
 
+	cd ${D}${libdir}
+	ln -sf libncurses.so libtermcap.so
+	ln -sf libncurses.a libtermcap.a
+	ln -sf libncurses.so.5 libtermcap.so.5
+
         if [ "${PN}" = "ncurses" ]; then
                 mv ${D}${bindir}/clear ${D}${bindir}/clear.${PN}
                 mv ${D}${bindir}/reset ${D}${bindir}/reset.${PN}
@@ -155,7 +160,6 @@ python populate_packages_prepend () {
         do_split_packages(d, libdir, '^lib(.*)\.so\..*', 'ncurses-lib%s', 'ncurses %s library', prepend=True, extra_depends = '', allow_links=True)
 }
 
-
 pkg_postinst_ncurses-tools () {
         if [ "${PN}" = "ncurses" ]; then
                 update-alternatives --install ${bindir}/clear clear clear.${PN} 100
@@ -172,16 +176,12 @@ pkg_prerm_ncurses-tools () {
 
 BBCLASSEXTEND = "native sdk"
 
-PACKAGES = " \
-  ncurses-dbg \
-  ncurses-dev \
-  ncurses-doc \
-  ncurses-tools \
-  ncurses \
-  ncurses-static \
-  ncurses-terminfo \
+PACKAGES += " \
+  ${PN}-tools \
+  ${PN}-terminfo \
 "
-RSUGGESTS_${PN} = "ncurses-terminfo"
+
+RSUGGESTS_${PN} = "${PN}-terminfo"
 
 FILES_${PN} = "\
   ${bindir}/tput \
@@ -192,7 +192,7 @@ FILES_${PN} = "\
 
 # This keeps only tput/tset in ncurses
 # clear/reset are in already busybox
-FILES_ncurses-tools = "\
+FILES_${PN}-tools = "\
   ${bindir}/tic \
   ${bindir}/toe \
   ${bindir}/infotocap \
@@ -204,6 +204,6 @@ FILES_ncurses-tools = "\
   ${bindir}/tabs \
 "
 
-FILES_ncurses-terminfo = "\
+FILES_${PN}-terminfo = "\
   ${datadir}/terminfo \
 "
-- 
1.6.3.3




  reply	other threads:[~2010-08-29 11:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-29  2:36 ncurses 5.7 doesn't build libtermcap anymore? Mike Westerhof
2010-08-29  8:36 ` Khem Raj
2010-08-29 10:02 ` Eric Bénard
2010-08-29 10:39   ` [PATCH] sdk.bbclass: allow virtclass-sdk override Eric Bénard
2010-08-29 10:45   ` [PATCH] ncurses-5.7 : fix sdk build + add libtermcap link Eric Bénard
2010-08-29 11:22     ` Eric Bénard [this message]
2010-08-29 13:33       ` [PATCH v2] " Enrico Scholz
2010-08-29 14:30         ` Eric Bénard
2010-08-29 20:08           ` Enrico Scholz
2010-08-29 20:40             ` Eric Bénard
2010-08-29 20:10   ` ncurses 5.7 doesn't build libtermcap anymore? Enrico Scholz
2010-08-29 10:31 ` Enrico Scholz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1283080970-2494-1-git-send-email-eric@eukrea.com \
    --to=eric@eukrea.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox