From 5c927d04a3d915e5949f36f5ec9da9f81d8459bd Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Mon, 5 Oct 2015 23:42:24 -0700 Subject: [PATCH] autotools.bbclass: use relative path to run configure script The absolute path (/path/to/configure) caused VPATH in Makefile to be an absolute path, and then it will be in elf files, use relative path to run configure can fix the problem. This will reduce 3127 buildpaths QA issues in a world buld (8957 -> 5830). [YOCTO #8437] Signed-off-by: Robert Yang --- meta/classes/autotools.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 078f58fad32..c40e5f437c3 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass @@ -79,7 +79,9 @@ CONFIGUREOPT_DEPTRACK ?= "--disable-dependency-tracking" oe_runconf () { - cfgscript="${S}/configure" + # Use relative path for S to avoid buildpaths in files + relative_s=`python -c "import os; print os.path.relpath('${S}', '.')"` + cfgscript="$relative_s/configure" if [ -x "$cfgscript" ] ; then bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" set +e -- 2.47.2