* [PATCH] autotools.bbclass: fix py3 SyntaxError in cfgscript print()
@ 2016-05-14 8:28 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-05-14 8:28 UTC (permalink / raw)
To: openembedded-core
From: Tim Orling <timothy.t.orling@linux.intel.com>
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>
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index c92ca78..03a61c3 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-14 8:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-14 8:28 [PATCH] autotools.bbclass: fix py3 SyntaxError in cfgscript print() Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox