[meta-ti] [PATCH] Fix Python3 build issues
Thomas Perrot
thomas.perrot at tupi.fr
Sat Oct 1 05:42:37 PDT 2016
Signed-off-by: Thomas Perrot <thomas.perrot at tupi.fr>
---
recipes-ti/includes/ti-unpack.inc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/recipes-ti/includes/ti-unpack.inc b/recipes-ti/includes/ti-unpack.inc
index 9101044..481e598 100644
--- a/recipes-ti/includes/ti-unpack.inc
+++ b/recipes-ti/includes/ti-unpack.inc
@@ -48,7 +48,7 @@ python ti_bin_do_unpack() {
cmd_list = cmd_string.split( ":" )
# Make the InstallJammer binary executable so we can run it
- os.chmod(binfile, 0755)
+ os.chmod(binfile, 0o755)
# Run the InstallJammer binary and accept the EULA
filename = "HOME=%s ./%s %s" % (workdir, binfile, arg_string)
@@ -74,7 +74,7 @@ python ti_bin_do_unpack() {
tarfile = bb.data.expand(tarfile, localdata)
tcmd = 'tar x --no-same-owner -f %s -C %s' % (tarfile, workdir)
if os.system(tcmd) != 0:
- print "ERROR: ti-eula-unpack: failed to extract tarfile"
+ print("ERROR: ti-eula-unpack: failed to extract tarfile")
raise bb.build.FuncFailed()
# Return to the previous directory
--
2.9.3
More information about the meta-ti
mailing list