Skip to content

package: replace copydebugsources shell pipelines

Anders Heimer openembedded-core 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 0 repliesNew
  2. v42 patches 2 repliesSuperseded
  3. v32 patches 1 replySuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches1 replySuperseded
v12 patches5 repliesSuperseded

Changes in v5 from the cover letter

- Use oe.path.join() in the copydebugsources tests when joining PKGD with absolute debug source paths, as suggested by Ross.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2package: replace copydebugsources shell pipelinesmeta/lib/oe/package.py+50 -220 replies
2/2oeqa/selftest: add copydebugsources testsmeta/lib/oeqa/selftest/cases/oelib/package.py+272 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/2] package: replace copydebugsources shell pipelines

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