All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] package: replace copydebugsources shell pipelines
@ 2026-06-26 15:04 Anders Heimer
  2026-06-26 15:04 ` [PATCH v5 1/2] " Anders Heimer
  2026-06-26 15:04 ` [PATCH v5 2/2] oeqa/selftest: add copydebugsources tests Anders Heimer
  0 siblings, 2 replies; 3+ messages in thread
From: Anders Heimer @ 2026-06-26 15:04 UTC (permalink / raw)
  To: openembedded-core; +Cc: Anders Heimer

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 v5:
  - Use oe.path.join() in the copydebugsources tests when joining PKGD
    with absolute debug source paths, as suggested by Ross.

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 | 272 ++++++++++++++++++
 2 files changed, 322 insertions(+), 22 deletions(-)
 create mode 100644 meta/lib/oeqa/selftest/cases/oelib/package.py



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-26 15:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-26 15:04 [PATCH v5 0/2] package: replace copydebugsources shell pipelines Anders Heimer
2026-06-26 15:04 ` [PATCH v5 1/2] " Anders Heimer
2026-06-26 15:04 ` [PATCH v5 2/2] oeqa/selftest: add copydebugsources tests Anders Heimer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.