]> code.ossystems Code Review - openembedded-core.git/commitdiff
update-rc.d: Include updated-rc.d in DEPENDS
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 25 Jul 2015 22:05:22 +0000 (23:05 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 25 Jul 2015 22:06:46 +0000 (23:06 +0100)
If you build a user of updated-rc.d like udev, as things stand currently
nothing pulls in updated-rc.d but there is a dependency added on the
package at do_package time. This can lead to errors during rootfs
construction either with licensing. The fact its a RRECOMMEND means
the image are not deterministic.

A particularly good test case for reproducing this is:

MACHINE=A bitbake core-image-minimal
MACHINE=B bitbake core-image-minimal-initramfs

and since the second machine can find the package but not the license
manifest, a failure will result.

Extending the DEPENDS is the easy way to fix the issues.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/update-rc.d.bbclass

index 5d67a485e9ab97b611390c14103daa3f240ee6ef..7bdc0e2e727fe6465fdf860d2edf00be15dc5034 100644 (file)
@@ -1,6 +1,6 @@
 UPDATERCPN ?= "${PN}"
 
-DEPENDS_append = " update-rc.d-native"
+DEPENDS_append = " update-rc.d-native update-rc.d"
 VIRTUAL-RUNTIME_initscripts ?= "initscripts"
 DEPENDS_append_class-target = " ${VIRTUAL-RUNTIME_initscripts}"
 UPDATERCD = "update-rc.d"