mbox series

[RFC,0/2] Write out file manifest in do_unpack

Message ID 20240606140622.2494668-1-JPEWhacker@gmail.com
Headers show
Series Write out file manifest in do_unpack | expand

Message

Joshua Watt June 6, 2024, 2:03 p.m. UTC
This patch series implements a mechanism for do_unpack to write out a
manifest of unpacked files, which is now possible due to the UNPACKDIR
changes. This manifest can be consumed by downstream tasks to report the
source files for the recipe; specifically SPDX can use this instead of
the current behavior where it re-runs do_unpack on it's own.


Joshua Watt (2):
  utils: Add write_files_manifest helper
  classes-global/base: Add manifest to do_unpack

 meta/classes-global/base.bbclass |  4 +-
 meta/lib/oe/utils.py             | 67 ++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+), 1 deletion(-)

Comments

Chen, Qi June 7, 2024, 5:08 a.m. UTC | #1
If I understand it correctly, spdx uses patched source, so in order to 
be potentially used by spdx, the function should be called after do_patch

Regards,
Qi

On 6/6/24 22:03, Joshua Watt via lists.openembedded.org wrote:
> This patch series implements a mechanism for do_unpack to write out a
> manifest of unpacked files, which is now possible due to the UNPACKDIR
> changes. This manifest can be consumed by downstream tasks to report the
> source files for the recipe; specifically SPDX can use this instead of
> the current behavior where it re-runs do_unpack on it's own.
>
>
> Joshua Watt (2):
>    utils: Add write_files_manifest helper
>    classes-global/base: Add manifest to do_unpack
>
>   meta/classes-global/base.bbclass |  4 +-
>   meta/lib/oe/utils.py             | 67 ++++++++++++++++++++++++++++++++
>   2 files changed, 70 insertions(+), 1 deletion(-)
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#200402): https://lists.openembedded.org/g/openembedded-core/message/200402
> Mute This Topic: https://lists.openembedded.org/mt/106523630/3618072
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [Qi.Chen@windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>