From 7b56a4327bdef25b99e1376fc30f03a8dba45885 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Wed, 3 May 2017 23:13:39 +0200 Subject: useradd.bbclass: Handle COMPONENTS_DIR when restoring state The export of PSEUDO in useradd_sysroot() contains references to ${COMPONENTS_DIR}. These need to be handled when restoring postinst-useradd-${PN} from the sstate cache. (From OE-Core rev: 097875bc9ab9d60a452b01ac6825775983684d68) Signed-off-by: Peter Kjellerstedt Signed-off-by: Richard Purdie --- meta/classes/useradd.bbclass | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta/classes/useradd.bbclass') diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass index 4373677bd6..92e45ff9bc 100644 --- a/meta/classes/useradd.bbclass +++ b/meta/classes/useradd.bbclass @@ -132,6 +132,11 @@ useradd_sysroot () { useradd_preinst } +# The export of PSEUDO in useradd_sysroot() above contains references to +# ${COMPONENTS_DIR}. These need to be handled when restoring +# postinst-useradd-${PN} from the sstate cache. +EXTRA_STAGING_FIXMES += "COMPONENTS_DIR" + python useradd_sysroot_sstate () { task = d.getVar("BB_CURRENTTASK") if task == "package_setscene": -- cgit v1.2.3-54-g00ecf