diff options
Diffstat (limited to 'meta/classes/chrpath.bbclass')
-rw-r--r-- | meta/classes/chrpath.bbclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/chrpath.bbclass b/meta/classes/chrpath.bbclass index 26b984c4db..16729dcf61 100644 --- a/meta/classes/chrpath.bbclass +++ b/meta/classes/chrpath.bbclass | |||
@@ -1,3 +1,9 @@ | |||
1 | # | ||
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
4 | # SPDX-License-Identifier: MIT | ||
5 | # | ||
6 | |||
1 | CHRPATH_BIN ?= "chrpath" | 7 | CHRPATH_BIN ?= "chrpath" |
2 | PREPROCESS_RELOCATE_DIRS ?= "" | 8 | PREPROCESS_RELOCATE_DIRS ?= "" |
3 | 9 | ||
@@ -56,7 +62,7 @@ def process_file_linux(cmd, fpath, rootdir, baseprefix, tmpdir, d, break_hardlin | |||
56 | def process_file_darwin(cmd, fpath, rootdir, baseprefix, tmpdir, d, break_hardlinks = False): | 62 | def process_file_darwin(cmd, fpath, rootdir, baseprefix, tmpdir, d, break_hardlinks = False): |
57 | import subprocess as sub | 63 | import subprocess as sub |
58 | 64 | ||
59 | p = sub.Popen([d.expand("${HOST_PREFIX}otool"), '-L', fpath],stdout=sub.PIPE,stderr=sub.PIPE) | 65 | p = sub.Popen([d.expand("${HOST_PREFIX}otool"), '-L', fpath],stdout=sub.PIPE,stderr=sub.PIPE, text=True) |
60 | out, err = p.communicate() | 66 | out, err = p.communicate() |
61 | # If returned successfully, process stdout for results | 67 | # If returned successfully, process stdout for results |
62 | if p.returncode != 0: | 68 | if p.returncode != 0: |