Fix SDK construction
cover Fix SDK construction
There was a race condition caused by the absense of a lock during SDK creation. Bug 776.
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: mhatle/rpm
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=mhatle/rpm
Thanks,
Mark Hatle <[email protected]>
---
Mark Hatle (1):
populate_sdk_rpm.bbclass: Add the necessary solvedb lock
meta/classes/populate_sdk_rpm.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Signature · 1 line
1.7.4
PATCH 1/1 populate_sdk_rpm.bbclass: Add the necessary solvedb lock
[BUG #776]
When using the RPM solve databases, we have to lock our operations to avoid removing it while it's in use.
The same lock is shared by the rootfs_rpm.bbclass
--- meta/classes/populate_sdk_rpm.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
meta/classes/populate_sdk_rpm.bbclass +1 -0
@@ -5,6 +5,7 @@ rpmlibdir = "/var/lib/rpm" RPMOPTS="--dbpath ${rpmlibdir} --define='_openall_before_chroot 1'" RPM="rpm ${RPMOPTS}" +do_populate_sdk[lockfiles] += "${DEPLOY_DIR_RPM}/rpm.lock" populate_sdk_post_rpm () {
Signature · 1 line
1.7.4
Re: [PATCH 1/1] populate_sdk_rpm.bbclass: Add the necessary solvedb lock
Quoted 2 lines · Mark Hatle
[BUG #776]
Gentle reminder, format for bugs is: [BUGID #NNNN]
Sau!
Quoted 22 lines
When using the RPM solve databases, we have to lock our operations to avoid removing it while it's in use.
The same lock is shared by the rootfs_rpm.bbclass
Signed-off-by Mark Hatle<[email protected]>--- meta/classes/populate_sdk_rpm.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)meta/classes/populate_sdk_rpm.bbclass +1
-0@@ -5,6 +5,7 @@ rpmlibdir = "/var/lib/rpm" RPMOPTS="--dbpath ${rpmlibdir} --define='_openall_before_chroot 1'" RPM="rpm ${RPMOPTS}" +do_populate_sdk[lockfiles] += "${DEPLOY_DIR_RPM}/rpm.lock" populate_sdk_post_rpm () {
Richard Purdie
AppliedQuoted 12 lines · Mark Hatle
There was a race condition caused by the absense of a lock during SDK creation. Bug 776.
Pull URL:
git://git.pokylinux.org/poky-contrib.git
Branch: mhatle/rpm
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=mhatle/rpmThanks,
Mark Hatle <[email protected]>
---
Quoted 5 lines
Mark Hatle (1):
populate_sdk_rpm.bbclass: Add the necessary solvedb lockmeta/classes/populate_sdk_rpm.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Merged to master, thanks.
Will also be cherry-picked for the release branch.
Cheers,
Richard