]> code.ossystems Code Review - openembedded-core.git/commit
ncurses: enable-pc-files requires PKG_CONFIG_LIBDIR existed
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 23 Sep 2014 04:31:39 +0000 (21:31 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Oct 2014 17:17:53 +0000 (18:17 +0100)
commitea4010c8398745736b0c22ed037604db8fc43212
tree9b8c7212fe8281e693754556c31c1c94253b3929
parent5f225067dcb7244065f857d34e1041171844b243
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.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/ncurses/ncurses.inc