path: root/meta/recipes-core/ncurses
diff options
authorRobert Yang <>2014-09-22 21:31:39 -0700
committerRichard Purdie <>2014-10-10 18:17:53 +0100
commitea4010c8398745736b0c22ed037604db8fc43212 (patch)
tree9b8c7212fe8281e693754556c31c1c94253b3929 /meta/recipes-core/ncurses
parent5f225067dcb7244065f857d34e1041171844b243 (diff)
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 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. Signed-off-by: Robert Yang <> Signed-off-by: Richard Purdie <>
Diffstat (limited to 'meta/recipes-core/ncurses')
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-core/ncurses/ b/meta/recipes-core/ncurses/
index 521d0e435c..10f7dd175d 100644
--- a/meta/recipes-core/ncurses/
+++ b/meta/recipes-core/ncurses/
@@ -98,6 +98,8 @@ do_configure() {
# not the case for /dev/null redirections)
export cf_cv_working_poll=yes
+ # The --enable-pc-files requires PKG_CONFIG_LIBDIR existed
+ mkdir -p ${PKG_CONFIG_LIBDIR}
( cd ${S}; gnu-configize --force )
ncurses_configure "narrowc" || \
return 1