summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/ncurses
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2014-09-22 21:31:39 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-10 18:18:02 +0100
commit448549b7dbed17f78ae80b3c780318ba5701c0ba (patch)
tree6aa514dfed079887b06be91697fe18a8374f5898 /meta/recipes-core/ncurses
parentb934ba11cbf765fdc9660988375223dc5eaa442a (diff)
downloadpoky-448549b7dbed17f78ae80b3c780318ba5701c0ba.tar.gz
ncurses: enable-pc-files requires PKG_CONFIG_LIBDIR existed
Fixed ncurses.do_configure: configure: WARNING: did not find library /path/to/tmp/sysroots/qemuarm/usr/lib/pkgconfig And then anyone requires ncurses.pc will fail. The configure.in checks: [snip] if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then [snip] Create PKG_CONFIG_LIBDIR in do_configure will fix the problem. We can reproduce the problem by: Set SSTATE_DIR=/path/to/sstate-cache 1) In build1, make sure everything is ready in SSTATE_DIR $ bitbake ncurses 2) In build2, rebuild ncurses only: $ bitbake ncurses -ccleansstate && bitbake ncurses Then we will see the warning in log.do_configure. (From OE-Core rev: ea4010c8398745736b0c22ed037604db8fc43212) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/ncurses')
-rw-r--r--meta/recipes-core/ncurses/ncurses.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc
index 521d0e435c..10f7dd175d 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -98,6 +98,8 @@ do_configure() {
98 # not the case for /dev/null redirections) 98 # not the case for /dev/null redirections)
99 export cf_cv_working_poll=yes 99 export cf_cv_working_poll=yes
100 100
101 # The --enable-pc-files requires PKG_CONFIG_LIBDIR existed
102 mkdir -p ${PKG_CONFIG_LIBDIR}
101 ( cd ${S}; gnu-configize --force ) 103 ( cd ${S}; gnu-configize --force )
102 ncurses_configure "narrowc" || \ 104 ncurses_configure "narrowc" || \
103 return 1 105 return 1