]> code.ossystems Code Review - openembedded-core.git/commit
package_rpm/archiver: Apply bandaid to src.rpm creation
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Feb 2019 13:33:37 +0000 (13:33 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Feb 2019 13:44:19 +0000 (13:44 +0000)
commita10020ace4c3cd863c782760f7cbecea557ec6e7
tree22c144716a8a0b6305cdc5dde6b3e9371208e0f4
parent60c30127df63b75d70a61d90c9f9afe0f938dc71
package_rpm/archiver: Apply bandaid to src.rpm creation

| error: create archive failed on file /media/build1/poky/build/tmp/work/all-poky-linux/xcursor-transparent-theme/0.1.1+gitAUTOINC+23c8af5ba4-r0/deploy-sources/allarch-poky-linux/xcursor-transparent-theme-0.1.1+gitAUTOINC+23c8af5ba4-r0/xcursor-transparent-theme-0.1.1+git0+23c8af5ba4-r0.src.rpm: cpio: read failed - No such file or directory
| Building target platforms: noarch-poky-linux
| Building for target noarch-poky-linux

This is caused by:

$ cat log.task_order

do_cleansstate (24289): log.do_cleansstate.24289
do_deploy_archives_setscene (24395): log.do_deploy_archives_setscene.24395
do_fetch (24407): log.do_fetch.24407
[..]
do_package_write_rpm (25448): log.do_package_write_rpm.25448
do_package_qa (25451): log.do_package_qa.25451

So do_deploy_archives can run from sstate, created a .src.rpm in WORKDIR/deploy-sources,
then it was removed when rpm was running. This leads to a broken Source line in the
spec file as the original file was found by the os.listdir().

This fix is just a bandaid over much more fundamental problems sadly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_rpm.bbclass