package.bbclass: Ensure we tell rpmdeps where to find its magic file

Submitted by Richard Purdie on Nov. 17, 2011, 12:32 p.m. | Patch ID: 15085


Message ID 1321533132.26384.1.camel@ted
State Accepted
Commit abe2a948905a997314c61a8fcd35e2b42a3f4408
Headers show

Commit Message

Richard Purdie Nov. 17, 2011, 12:32 p.m.
Without this, if rpmddeps came from a sstate package which was relocated
it might not find its magic file and if that happens, requires/provides
in packages could get corrupted. This leads to failures at rootfs time
during builds with messages like: is needed by libdbus-glib-1-2-0.92-r1.armv5te

since the provides would be missing in the dbus package.

Signed-off-by: Richard Purdie <>

Patch hide | download patch | download mbox

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index d01275f..6775fda 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1110,7 +1110,7 @@  if [ x"$D" = "x" ]; then
-RPMDEPS = "${STAGING_LIBDIR_NATIVE}/rpm/bin/rpmdeps"
+RPMDEPS = "${STAGING_LIBDIR_NATIVE}/rpm/bin/rpmdeps  --define '_rpmfc_magic_path ${STAGING_DIR_NATIVE}/usr/share/misc/magic.mgc'"
 # Collect perfile run-time dependency metadata
 # Output: