Re: [OE-core] [scarthgap][master] license archiving is failed to tmp/deploy/licenses

Richard Purdie
2024-07-22T21:45:47Z

On Wed, 2024-07-17 at 13:28 -0700, Livius via lists.openembedded.org wrote:
> License file archiving is broken, package/recipe folders are fully empty in tmp/deploy/licenses directory after the finished image build, manifest files also missing in it.
>
> It seems to me this is broken for me since the following patch:
> https://github.com/openembedded/openembedded-core/commit/1a4ab9fc26659507e678e87312b514e8ea515673
>
> This is my settings for it in my local.conf. What goes wrong?
> INHERIT += "archiver"
> ARCHIVER_MODE[src] = "patched"
> ARCHIVER_MODE[compression] = "bz2"
> ARCHIVER_MODE[mirror] = "combined"
> COPYLEFT_RECIPE_TYPES = "target"
> COPYLEFT_AVAILABLE_RECIPE_TYPES = "target"
>
> # Don't filter the license
> COPYLEFT_LICENSE_INCLUDE = ""
> COPYLEFT_LICENSE_EXCLUDE = ""
>
> # Deploy licenses
> COPY_LIC_MANIFEST = "1"
> COPY_LIC_DIRS = "1"
> LICENSE_CREATE_PACKAGE = "1"

I wanted to say yes, I have seen this report and yes, I'm aware I wrote
the commit seeming to cause it. No, I'm afraid I don't know what is
wrong.

The mailing list is the right place to discuss things (or the
bugzilla), not github issues.

My patch added in a directory sublevel to the structure and it would
seem that some piece of code wasn't translated properly. The change
likely needs to be debugged with the settings you're using to find the
issue with the change.

I did make best efforts to ensure everything worked but our test
coverage isn't always 100% and it would seem we're missing some test
case.

Cheers,

Richard