From: Robert Yang Date: Tue, 6 Oct 2015 06:42:24 +0000 (-0700) Subject: autotools.bbclass: use relative path to run configure script X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c927d04a3d915e5949f36f5ec9da9f81d8459bd;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- 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