]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
autotools.bbclass: use relative path to run configure script
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 6 Oct 2015 06:42:24 +0000 (23:42 -0700)
committerRobert Yang <liezhi.yang@windriver.com>
Thu, 8 Oct 2015 12:58:40 +0000 (05:58 -0700)
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 <liezhi.yang@windriver.com>
meta/classes/autotools.bbclass

index 078f58fad32b25940f703f81305c41f04f679820..c40e5f437c332a5f135475446425ba1adc20a554 100644 (file)
@@ -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