mbox series

[0/2] package: replace copydebugsources shell pipelines with Popen

Message ID 20260616082516.1553768-1-anders.heimer@est.tech
Headers show
Series package: replace copydebugsources shell pipelines with Popen | expand

Message

Anders Heimer June 16, 2026, 8:25 a.m. UTC
Continue the OE-Core shell=True cleanup in oe.package.

Replace the copydebugsources() shell pipelines with explicit Popen
chains using argv lists, env= for LC_ALL and cwd= for cpio. Also replace
the externalsrc mv shell glob with glob.glob(glob.escape(...)) so
metacharacters in the directory path are handled literally.

The first copy pipeline keeps the previous failure-tolerant behavior,
while the symlink fixup pipeline now checks each stage directly. Add
oeqa tests for normal copying, symlink dereferencing, multiple
-ffile-prefix-map entries, ignored source paths, and externalsrc
relocation.

Anders Heimer (2):
  package: replace copydebugsources shell pipelines with Popen
  oeqa/oelib: add copydebugsources tests

 meta/lib/oe/package.py                        |  63 +++--
 meta/lib/oeqa/selftest/cases/oelib/package.py | 220 ++++++++++++++++++
 2 files changed, 265 insertions(+), 18 deletions(-)
 create mode 100644 meta/lib/oeqa/selftest/cases/oelib/package.py