]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
package.py: fix Darwin support
authorEtienne Cordonnier <ecordonnier@snap.com>
Fri, 12 Jan 2024 15:20:30 +0000 (16:20 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 15 Jan 2024 21:42:05 +0000 (21:42 +0000)
commit248ca79a6400e063c4965f9542c614bf837ff758
tree6851ce6052cf3216046e1a85afcf78ec5144245c
parent67b06035326048323f972107f66eb50cf74def0b
package.py: fix Darwin support

- 'subprocess.Popen([d.expand("${HOST_PREFIX}otool)' requires text-mode (a more
  readable alias for the universal_newlines parameter), since otool produces
  text and the code 'out.split("\n")' expects a string, not a bytes object.
  otool is used on MacOS only, so this error isn't triggered on Linux.

- use 'startswith("darwin")' in order to support all darwin versions and not
  just specific versions (meta-darwin supports darwin21 at the moment).

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>
meta/lib/oe/package.py