Fix Python3 build issues
PATCH 1/1 Fix Python3 build issues
Signed-off-by Thomas Perrot <[email protected]>
--- recipes-ti/includes/ti-unpack.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-ti/includes/ti-unpack.inc +2 -2
@@ -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
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
Signed-off-by Thomas Perrot <[email protected]>--- recipes-ti/includes/ti-unpack.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)recipes-ti/includes/ti-unpack.inc +2
-2@@ -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 directorySignature · 7 lines
2.9.3 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti