mirror of
git://git.yoctoproject.org/poky
synced 2026-10-02 17:47:36 +00:00
chrpath.bbclass: fix Darwin support
Ported from the meta-darwin layer:
The call to out.split("\n") expects a string, thus the parameter text=True is
needed (otherwise Popen returns a bytes object).
Note that "text" is just a more readable alias for universal_newlines.
(From OE-Core rev: 0abaa7bf7f7d9a5ac96e6fdbe99334cb2fb0e4db)
Signed-off-by: Dominik Schnitzer <dominik@snap.com>
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
5031cf42ff
commit
3db106c41b
@ -62,7 +62,7 @@ def process_file_linux(cmd, fpath, rootdir, baseprefix, tmpdir, d, break_hardlin
|
|||||||
def process_file_darwin(cmd, fpath, rootdir, baseprefix, tmpdir, d, break_hardlinks = False):
|
def process_file_darwin(cmd, fpath, rootdir, baseprefix, tmpdir, d, break_hardlinks = False):
|
||||||
import subprocess as sub
|
import subprocess as sub
|
||||||
|
|
||||||
p = sub.Popen([d.expand("${HOST_PREFIX}otool"), '-L', fpath],stdout=sub.PIPE,stderr=sub.PIPE)
|
p = sub.Popen([d.expand("${HOST_PREFIX}otool"), '-L', fpath],stdout=sub.PIPE,stderr=sub.PIPE, text=True)
|
||||||
out, err = p.communicate()
|
out, err = p.communicate()
|
||||||
# If returned successfully, process stdout for results
|
# If returned successfully, process stdout for results
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user