[gnome-continuous-yocto/gnomeostree-3.28-rocko: 309/8267] autotools.bbclass: fix py3 SyntaxError in cfgscript print()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 309/8267] autotools.bbclass: fix py3 SyntaxError in cfgscript print()
- Date: Sat, 16 Dec 2017 20:14:46 +0000 (UTC)
commit 144c5175b8e8a3aaa2f4ffaaccd97af1b02c401e
Author: Tim Orling <timothy t orling linux intel com>
Date: Sat May 14 09:28:39 2016 +0100
autotools.bbclass: fix py3 SyntaxError in cfgscript print()
Update so this works with python3.
(From OE-Core rev: f533a1f78411f5537f1395496aa39f453fee581c)
Signed-off-by: Tim Orling <timothy t orling linux intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
meta/classes/autotools.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]