diff options
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r-- | meta/classes/insane.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 71999ada34..9b2337cdbf 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -399,7 +399,7 @@ def package_qa_check_unsafe_references_in_binaries(path, name, d, elf, messages) | |||
399 | sysroot_path_usr = sysroot_path + exec_prefix | 399 | sysroot_path_usr = sysroot_path + exec_prefix |
400 | 400 | ||
401 | try: | 401 | try: |
402 | ldd_output = bb.process.Popen(["prelink-rtld", "--root", sysroot_path, path], stdout=sub.PIPE).stdout.read() | 402 | ldd_output = bb.process.Popen(["prelink-rtld", "--root", sysroot_path, path], stdout=sub.PIPE).stdout.read().decode("utf-8") |
403 | except bb.process.CmdError: | 403 | except bb.process.CmdError: |
404 | error_msg = pn + ": prelink-rtld aborted when processing %s" % path | 404 | error_msg = pn + ": prelink-rtld aborted when processing %s" % path |
405 | package_qa_handle_error("unsafe-references-in-binaries", error_msg, d) | 405 | package_qa_handle_error("unsafe-references-in-binaries", error_msg, d) |
@@ -986,12 +986,12 @@ def package_qa_check_expanded_d(path,name,d,elf,messages): | |||
986 | return sane | 986 | return sane |
987 | 987 | ||
988 | def package_qa_check_encoding(keys, encode, d): | 988 | def package_qa_check_encoding(keys, encode, d): |
989 | def check_encoding(key,enc): | 989 | def check_encoding(key, enc): |
990 | sane = True | 990 | sane = True |
991 | value = d.getVar(key, True) | 991 | value = d.getVar(key, True) |
992 | if value: | 992 | if value: |
993 | try: | 993 | try: |
994 | s = unicode(value, enc) | 994 | s = value.encode(enc) |
995 | except UnicodeDecodeError as e: | 995 | except UnicodeDecodeError as e: |
996 | error_msg = "%s has non %s characters" % (key,enc) | 996 | error_msg = "%s has non %s characters" % (key,enc) |
997 | sane = False | 997 | sane = False |
@@ -1217,7 +1217,7 @@ Missing inherit gettext?""" % (gt, config)) | |||
1217 | try: | 1217 | try: |
1218 | flag = "WARNING: unrecognized options:" | 1218 | flag = "WARNING: unrecognized options:" |
1219 | log = os.path.join(d.getVar('B', True), 'config.log') | 1219 | log = os.path.join(d.getVar('B', True), 'config.log') |
1220 | output = subprocess.check_output(['grep', '-F', flag, log]).replace(', ', ' ') | 1220 | output = subprocess.check_output(['grep', '-F', flag, log]).decode("utf-8").replace(', ', ' ') |
1221 | options = set() | 1221 | options = set() |
1222 | for line in output.splitlines(): | 1222 | for line in output.splitlines(): |
1223 | options |= set(line.partition(flag)[2].split()) | 1223 | options |= set(line.partition(flag)[2].split()) |