[OE-core] [PATCH] base-passwd: fix race between the populate_sysroot and package

Eric Bénard eric at eukrea.com
Tue Nov 29 10:53:40 UTC 2011


without this fix, we get :
ERROR: Error executing a python function in sources/openembedded-core/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb:
IOError: [Errno 2] No such file or directory: 'tmp-angstrom_2010_x-eglibc/sysroots/PROJECT-board/usr/share/base-passwd/passwd.master'

fix suggested by Richard Purdie on IRC

Signed-off-by: Eric Bénard <eric at eukrea.com>
---
 .../recipes-core/base-passwd/base-passwd_3.5.22.bb |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb b/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb
index 5feb924..62847d9 100644
--- a/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb
+++ b/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb
@@ -1,7 +1,7 @@
 SUMMARY = "Base system master password/group files."
 DESCRIPTION = "The master copies of the user database files (/etc/passwd and /etc/group).  The update-passwd tool is also provided to keep the system databases synchronized with these master files."
 SECTION = "base"
-PR = "r9"
+PR = "r10"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
 
@@ -23,6 +23,8 @@ ALLOW_EMPTY_${PN} = "1"
 
 SSTATEPOSTINSTFUNCS += "base_passwd_sstate_postinst"
 
+addtask package after do_populate_sysroot
+
 do_install () {
 	install -d -m 755 ${D}${sbindir}
 	install -o root -g root -p -m 755 update-passwd ${D}${sbindir}/
-- 
1.7.0.4





More information about the Openembedded-core mailing list