Patchwork [09/13] diffstat: Fix case where ${B} != ${S}

login
register
mail settings
Submitter Richard Purdie
Date March 18, 2013, 2:05 a.m.
Message ID <1363572312-13399-9-git-send-email-richard.purdie@linuxfoundation.org>
Download mbox | patch
Permalink /patch/46349/
State Accepted
Commit 635f498fc739501701e50f3a99e084dfb81cae66
Headers show

Comments

Richard Purdie - March 18, 2013, 2:05 a.m.
Fix out of tree builds by fixing cwd assumptions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-devtools/diffstat/diffstat_1.55.bb |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/recipes-devtools/diffstat/diffstat_1.55.bb b/meta/recipes-devtools/diffstat/diffstat_1.55.bb
index fdc2967..9b347e8 100644
--- a/meta/recipes-devtools/diffstat/diffstat_1.55.bb
+++ b/meta/recipes-devtools/diffstat/diffstat_1.55.bb
@@ -19,8 +19,8 @@  S = "${WORKDIR}/diffstat-${PV}"
 inherit autotools gettext
 
 do_configure () {
-	if [ ! -e acinclude.m4 ]; then
-		mv aclocal.m4 acinclude.m4
+	if [ ! -e ${S}/acinclude.m4 ]; then
+		mv ${S}/aclocal.m4 ${S}/acinclude.m4
 	fi
 	autotools_do_configure
 }