Skip to contentSkip to conversation

gcc-source.inc: set PATH for gnu-configize, not for cd

PATCH New Andre McCurdy 1 participant 1 message May 26, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc-source.inc: set PATH for gnu-configize, not for cd

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.

---
 meta/recipes-devtools/gcc/gcc-source.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/gcc/gcc-source.inc +1 -1
index a4b27c8..529b8e0 100644
@@ -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"))
Signature · 1 line
1.9.1