]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-source.inc: set PATH for gnu-configize, not for cd
authorAndre McCurdy <armccurdy@gmail.com>
Tue, 26 May 2015 23:04:31 +0000 (16:04 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 27 May 2015 16:46:23 +0000 (17:46 +0100)
Setting OE's PATH for the 'cd' command has no real effect.

In the normal case it has no effect for the gnu-configize command
either (since OE's PATH is already set in the context which runs
do_preconfigure) but it may be useful when manually re-running a
failed gnu-configize commandline copied from an error log, etc.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-source.inc

index a4b27c8fd398f35a7b46ddc701888d0845975868..529b8e0e8c340bebe5a1faedc1ca6776294bef40 100644 (file)
@@ -24,7 +24,7 @@ PACKAGES = ""
 
 python do_preconfigure () {
     import subprocess
-    cmd = d.expand('PATH=${PATH} cd ${S} && gnu-configize')
+    cmd = d.expand('cd ${S} && PATH=${PATH} gnu-configize')
     subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True)
     # See 0044-gengtypes.patch, we need to regenerate this file
     bb.utils.remove(d.expand("${S}/gcc/gengtype-lex.c"))