]> code.ossystems Code Review - openembedded-core.git/commitdiff
sudo: Fix case where ${B} != ${S}
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Mar 2013 02:05:03 +0000 (02:05 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Mar 2013 13:17:39 +0000 (13:17 +0000)
Fix out of tree builds by using full path to files in ${S} and remove
cwd assumptions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/sudo/sudo.inc

index babea37c380acad57bbe2cfc570fe36f17661b13..7721cd57a15fb6a97f4bff120d26d195fb875711 100644 (file)
@@ -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
 }