From: Richard Purdie Date: Mon, 18 Mar 2013 02:05:03 +0000 (+0000) Subject: sudo: Fix case where ${B} != ${S} X-Git-Tag: 2015-4~7177 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=97dc39e42e95dcadc7bed1aee32db3560e21efe5;p=openembedded-core.git sudo: Fix case where ${B} != ${S} Fix out of tree builds by using full path to files in ${S} and remove cwd assumptions. Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-extended/sudo/sudo.inc b/meta/recipes-extended/sudo/sudo.inc index babea37c38..7721cd57a1 100644 --- a/meta/recipes-extended/sudo/sudo.inc +++ b/meta/recipes-extended/sudo/sudo.inc @@ -16,8 +16,8 @@ inherit autotools EXTRA_OECONF = "--with-editor=/bin/vi --with-env-editor" do_configure_prepend () { - if [ ! -e acinclude.m4 ]; then - cat aclocal.m4 > acinclude.m4 + if [ ! -e ${S}/acinclude.m4 ]; then + cat ${S}/aclocal.m4 > ${S}/acinclude.m4 fi }