]> code.ossystems Code Review - openembedded-core.git/commitdiff
sysvinit: Fix Reproducibility issue
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Feb 2020 14:33:30 +0000 (14:33 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Feb 2020 13:19:55 +0000 (13:19 +0000)
With a sequence like:

bitbake sysvinit
bitbake sysvinit -c clean
bitbake sysvinit -c package_write_ipk -f

then the resulting package has two files with group "root/70" rather
than "root/shutdown". The issue is that of do_package is a setscene
task, base-passwd isn't present. This patch fixes that dependency
but there may be other cases of this problem around.

[YOCTO #13776]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/sysvinit/sysvinit_2.96.bb

index 2b146b1ef8f5ad48b57d929255f29fd38a90c5e9..21ef0e9cf3a7d7365efb68e5f54f72b7c4d08d56 100644 (file)
@@ -29,6 +29,7 @@ B = "${S}/src"
 
 inherit update-alternatives features_check
 DEPENDS_append = " update-rc.d-native base-passwd virtual/crypt"
+do_package_setscene[depends] = "${MLPREFIX}base-passwd:do_populate_sysroot"
 
 REQUIRED_DISTRO_FEATURES = "sysvinit"