run-postinsts problem with do_create_spdx task
I have a problem with building run-postinsts when changing the machine configuration for a build. I think I saw similar topics to this but to be honest it is hard to debug for me and maybe someone will be able to help. It can be reproduced by building run-postinsts when using poky as a distro and ls1028ardb [1] as a machine and then just changing the machine to am57xx-evm [2]. Then the following error shows up
``` ERROR: run-postinsts-1.0-r0 do_create_spdx: Cannot find any SPDX file for recipe initscripts, False sstate:initscripts:aarch64-poky-linux:1.0:r0:aarch64:12: sstate:initscripts::1.0:r0::12: ERROR: Logfile of failure stored in: /home/ubuntu/meta-proj/build/tmp/work/all-poky-linux/run-postinsts/1.0/temp/log.do_create_spdx.14761 ERROR: Task (/home/ubuntu/meta-proj/build/../poky/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb:do_create_spdx) failed with exit code '1' ```
Why the run-postinsts do_create_spdx package depends on initscripts recipe anyhow? I could go past this error by removing allarch from inherit directive set in run-postinsts [3] recipe but it does not seems to be good solution for this problem as this recipe clearly produce allarchs artifacts. How to debug this?
[1] https://github.com/Freescale/meta-freescale/blob/scarthgap/conf/machine/ls1028ardb.conf
[2] https://git.yoctoproject.org/meta-ti/tree/meta-ti-bsp/conf/machine/am57xx-evm.conf
[3] https://git.yoctoproject.org/poky/plain/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb
Regards
Tomasz Żyjewski