]> code.ossystems Code Review - openembedded-core.git/commitdiff
autotools.bbclass: fix py3 SyntaxError in cfgscript print()
authorTim Orling <timothy.t.orling@linux.intel.com>
Sat, 14 May 2016 08:28:39 +0000 (09:28 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 May 2016 22:07:46 +0000 (23:07 +0100)
Update so this works with python3.

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/autotools.bbclass

index c92ca789973d27dd19a14c45dce6478faab7e192..03a61c378d4049ab04810db92d14ad614d30cd76 100644 (file)
@@ -87,7 +87,7 @@ AUTOTOOLS_AUXDIR ?= "${AUTOTOOLS_SCRIPT_PATH}"
 oe_runconf () {
        # Use relative path to avoid buildpaths in files
        cfgscript_name="`basename ${CONFIGURE_SCRIPT}`"
-       cfgscript=`python -c "import os; print os.path.relpath(os.path.dirname('${CONFIGURE_SCRIPT}'), '.')"`/$cfgscript_name
+       cfgscript=`python -c "import os; print(os.path.relpath(os.path.dirname('${CONFIGURE_SCRIPT}'), '.'))"`/$cfgscript_name
        if [ -x "$cfgscript" ] ; then
                bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
                if ! ${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@"; then