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

Livius
2024-07-23T15:07:54Z

https://github.com/openembedded/openembedded-core/blob/master/meta/classes-global/license.bbclass#L418
In line 418 if i use ${SSTATE_PKGARCH} in path of do_populate_lic[sstate-inputdirs], deploying of licenses can start to work but there will be many warnings and at end of it a fatal error will stop the bitbake building.
do_populate_lic[sstate-inputdirs] = "${LICSSTATEDIR}/${SSTATE_PKGARCH}"

Warnings:
...
WARNING: prambo-customer-image-1.0-r0 do_rootfs: QA Issue: The license listed BSD-2-Clause was not in the licenses collected for recipe util-linux [license-file-missing]
WARNING: prambo-customer-image-1.0-r0 do_rootfs: QA Issue: The license listed BSD-3-Clause was not in the licenses collected for recipe util-linux [license-file-missing]
WARNING: prambo-customer-image-1.0-r0 do_rootfs: QA Issue: The license listed BSD-4-Clause was not in the licenses collected for recipe util-linux [license-file-missing]
WARNING: prambo-customer-image-1.0-r0 do_rootfs: QA Issue: The license listed MIT was not in the licenses collected for recipe util-linux [license-file-missing]
WARNING: prambo-customer-image-1.0-r0 do_rootfs: QA Issue: The license listed MIT was not in the licenses collected for recipe volatile-binds [license-file-missing]
WARNING: prambo-customer-image-1.0-r0 do_rootfs: QA Issue: The license listed BSD-3-Clause was not in the licenses collected for recipe zip [license-file-missing]
WARNING: prambo-customer-image-1.0-r0 do_rootfs: QA Issue: The license listed Zlib was not in the licenses collected for recipe zlib [license-file-missing]
...

Error:
do_rootfs: Couldn't find license information for dependency alsa-conf

As i see, alsa-conf is not exist in x86_64 licenses this is why it is failed all the time.