Skip to contentSkip to conversation

Fix Python3 build issues

PATCH In review Thomas Perrot 2 participants 2 messages Oct 1, 2016 – Oct 3, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix Python3 build issues

---
 recipes-ti/includes/ti-unpack.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-ti/includes/ti-unpack.inc +2 -2
index 9101044..481e598 100644
@@ -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
Signature · 1 line
2.9.3
#1 lore raw

Thanks! But I already have this in my queue along with other fixes for master that I've been working on. Sorry I haven't posted those earlier, but I'm still fighting couple remaining issues in related layers...

Signature · 1 line
Denys
Quoted 35 lines · Thomas Perrot
---
 recipes-ti/includes/ti-unpack.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-ti/includes/ti-unpack.inc +2 -2
index 9101044..481e598 100644
@@ -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
Signature · 7 lines
2.9.3

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti