autotools.bbclass: fix py3 SyntaxError in cfgscript print()
PATCH 1/1 autotools.bbclass: fix py3 SyntaxError in cfgscript print()
From: Tim Orling <[email protected]>
Update so this works with python3.
Signed-off-by Tim Orling <[email protected]>
Signed-off-by Richard Purdie <[email protected]>
meta/classes/autotools.bbclass +1 -1
@@ -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