Skip to contentSkip to conversation

Fix SDK construction

PATCH Applied Mark Hatle 3 participants 4 messages Feb 28, 2011

lore
Share & tools
lore

Mark Hatle

author
#0 lore raw

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
author
#1 lore raw

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
index 0afe042..da308c1 100644
@@ -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
#3 lore raw
In reply to Mark Hatle
Quoted 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/rpm

Thanks,
Mark Hatle <[email protected]>
---

Quoted 5 lines

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(-)

Merged to master, thanks.

Will also be cherry-picked for the release branch.

Cheers,

Richard

#2 lore raw

Re: [PATCH 1/1] populate_sdk_rpm.bbclass: Add the necessary solvedb lock

In reply to Mark Hatle
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

---
  meta/classes/populate_sdk_rpm.bbclass |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
meta/classes/populate_sdk_rpm.bbclass +1 -0
index 0afe042..da308c1 100644
@@ -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 () {