diff options
| author | Paul Barker <paul@pbarker.dev> | 2025-11-03 20:11:20 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:15:35 +0000 |
| commit | 73fac42feff041a38122ea9beb331cfbaf31f002 (patch) | |
| tree | 9a8b27903625c403bae04e81a4f368ea1809a9ab /meta/recipes-devtools/pseudo | |
| parent | 1f15b9fcb8ed9d005e9188965ccce5b424f87940 (diff) | |
| download | poky-73fac42feff041a38122ea9beb331cfbaf31f002.tar.gz | |
pseudo: Add hard sstate dependencies for pseudo-native
Where a task (such as do_package) runs under fakeroot, the corresponding
setscene task (do_package_setscene) will also run under fakeroot when
restoring from sstate. Assuming pseudo is used as the fakeroot
implementation, we need pseudo-native and all its runtime dependencies
to be available in the sysroot before running any setscene tasks under
fakeroot.
We already add a hard dependency from all do_package_setscene tasks to
virtual/fakeroot-native:do_populate_sysroot in base.bbclass, but this
does not cover transitive dependencies. So, extend the dependencies of
pseudo-native:do_populate_sysroot_setscene to ensure that the sqlite3
library is also available in the sysroot before running fakeroot
setscene tasks.
[YOCTO #15963]
(From OE-Core rev: 32305ae1593a99c5feeec031018a316edcfe8ab8)
Signed-off-by: Paul Barker <paul@pbarker.dev>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/pseudo')
| -rw-r--r-- | meta/recipes-devtools/pseudo/pseudo.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-devtools/pseudo/pseudo.inc b/meta/recipes-devtools/pseudo/pseudo.inc index 22c934977d..836e910fae 100644 --- a/meta/recipes-devtools/pseudo/pseudo.inc +++ b/meta/recipes-devtools/pseudo/pseudo.inc | |||
| @@ -155,3 +155,10 @@ do_install:append:class-nativesdk () { | |||
| 155 | } | 155 | } |
| 156 | 156 | ||
| 157 | BBCLASSEXTEND = "native nativesdk" | 157 | BBCLASSEXTEND = "native nativesdk" |
| 158 | |||
| 159 | # Setscene tasks which run under fakeroot must not be executed before | ||
| 160 | # pseudo-native and *all* its runtime dependencies are available in the | ||
| 161 | # sysroot. | ||
| 162 | PSEUDO_SETSCENE_DEPS = "" | ||
| 163 | PSEUDO_SETSCENE_DEPS:class-native = "sqlite3-native:do_populate_sysroot" | ||
| 164 | do_populate_sysroot_setscene[depends] += "${PSEUDO_SETSCENE_DEPS}" | ||
