All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Fix SDK construction
@ 2011-02-28 19:50 Mark Hatle
  2011-02-28 19:50 ` [PATCH 1/1] populate_sdk_rpm.bbclass: Add the necessary solvedb lock Mark Hatle
  2011-02-28 20:48 ` [PATCH 0/1] Fix SDK construction Richard Purdie
  0 siblings, 2 replies; 4+ messages in thread
From: Mark Hatle @ 2011-02-28 19:50 UTC (permalink / raw)
  To: poky

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 <mark.hatle@windriver.com>
---


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

-- 
1.7.4



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/1] populate_sdk_rpm.bbclass: Add the necessary solvedb lock
  2011-02-28 19:50 [PATCH 0/1] Fix SDK construction Mark Hatle
@ 2011-02-28 19:50 ` Mark Hatle
  2011-02-28 22:33   ` Saul Wold
  2011-02-28 20:48 ` [PATCH 0/1] Fix SDK construction Richard Purdie
  1 sibling, 1 reply; 4+ messages in thread
From: Mark Hatle @ 2011-02-28 19:50 UTC (permalink / raw)
  To: poky

[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

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 meta/classes/populate_sdk_rpm.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/meta/classes/populate_sdk_rpm.bbclass b/meta/classes/populate_sdk_rpm.bbclass
index 0afe042..da308c1 100644
--- a/meta/classes/populate_sdk_rpm.bbclass
+++ b/meta/classes/populate_sdk_rpm.bbclass
@@ -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 () {
 
-- 
1.7.4



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/1] Fix SDK construction
  2011-02-28 19:50 [PATCH 0/1] Fix SDK construction Mark Hatle
  2011-02-28 19:50 ` [PATCH 1/1] populate_sdk_rpm.bbclass: Add the necessary solvedb lock Mark Hatle
@ 2011-02-28 20:48 ` Richard Purdie
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2011-02-28 20:48 UTC (permalink / raw)
  To: Mark Hatle; +Cc: poky

On Mon, 2011-02-28 at 13:50 -0600, Mark Hatle wrote:
> 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 <mark.hatle@windriver.com>
> ---
> 
> 
> 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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] populate_sdk_rpm.bbclass: Add the necessary solvedb lock
  2011-02-28 19:50 ` [PATCH 1/1] populate_sdk_rpm.bbclass: Add the necessary solvedb lock Mark Hatle
@ 2011-02-28 22:33   ` Saul Wold
  0 siblings, 0 replies; 4+ messages in thread
From: Saul Wold @ 2011-02-28 22:33 UTC (permalink / raw)
  To: Mark Hatle; +Cc: poky

On 02/28/2011 11:50 AM, Mark Hatle wrote:
> [BUG #776]
>
Gentle reminder, format for bugs is: [BUGID #NNNN]

Sau!

> 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<mark.hatle@windriver.com>
> ---
>   meta/classes/populate_sdk_rpm.bbclass |    1 +
>   1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/populate_sdk_rpm.bbclass b/meta/classes/populate_sdk_rpm.bbclass
> index 0afe042..da308c1 100644
> --- a/meta/classes/populate_sdk_rpm.bbclass
> +++ b/meta/classes/populate_sdk_rpm.bbclass
> @@ -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 () {
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-28 22:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-28 19:50 [PATCH 0/1] Fix SDK construction Mark Hatle
2011-02-28 19:50 ` [PATCH 1/1] populate_sdk_rpm.bbclass: Add the necessary solvedb lock Mark Hatle
2011-02-28 22:33   ` Saul Wold
2011-02-28 20:48 ` [PATCH 0/1] Fix SDK construction Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.