Patchwork ncurses: Fix case where ${B} != ${S}

login
register
mail settings
Submitter Richard Purdie
Date March 18, 2013, 1:15 a.m.
Message ID <1363569314.4315.29.camel@ted>
Download mbox | patch
Permalink /patch/46321/
State Accepted
Commit 64cd9855c8dada8bb4eac8d00255473e38678163
Headers show

Comments

Richard Purdie - March 18, 2013, 1:15 a.m.
This change allows ${B} != ${S} builds to work as otherwise
gnu-configize is executed in the incorrect directory.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/recipes-core/ncurses/ncurses.inc
b/meta/recipes-core/ncurses/ncurses.inc
index 040495c..bcb9c94 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -94,7 +94,7 @@  do_configure() {
         # not the case for /dev/null redirections)
         export cf_cv_working_poll=yes
 
-	gnu-configize --force
+	( cd ${S}; gnu-configize --force )
 	ncurses_configure "narrowc" || \
 		return 1
 	! ${ENABLE_WIDEC} || \