Replace the copydebugsources() sort/grep/sed shell pipeline with Python filtering over the NUL-separated source list while keeping cpio for the copy pass. Use an explicit prefix + "/" match before stripping the mapped debug source prefix, replace the symlink fixup pipeline with os.walk() plus cpio, use an argv-list mv for externalsrc relocation, and pass the empty-directory find command as an argv list.
The externalsrc relocation keeps mv, but now with an argv list and glob.glob(glob.escape(...)). This preserves the old shell "*" and mv overwrite semantics. The first cpio copy pass keeps the previous failure-tolerant behavior, while the symlink fixup copy still reports cpio failures. Benchmarks did not indicate regression. Changes in v4: - Rebase on origin/master instead of master-next. Anders Heimer (2): package: replace copydebugsources shell pipelines oeqa/selftest: add copydebugsources tests meta/lib/oe/package.py | 72 +++-- meta/lib/oeqa/selftest/cases/oelib/package.py | 274 ++++++++++++++++++ 2 files changed, 324 insertions(+), 22 deletions(-) create mode 100644 meta/lib/oeqa/selftest/cases/oelib/package.py
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#239327): https://lists.openembedded.org/g/openembedded-core/message/239327 Mute This Topic: https://lists.openembedded.org/mt/119936663/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
