]> code.ossystems Code Review - openembedded-core.git/commit
package: Fix various rpmdeps relocation issues
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 13 Mar 2017 22:46:18 +0000 (22:46 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Mar 2017 14:19:02 +0000 (14:19 +0000)
commit806e37264d7102ae982867350ad8363ed3e5f475
tree6c46a603306d04432da44185e5df9c73f24cf009
parent4837b8cc3248c07f77a91745b80e6129ec3dfa1f
package: Fix various rpmdeps relocation issues

There are several issues with rpmdeps after the rpm v5 -> v4 transition:
 * _rpmfc_magic_path  is an invalid option for rpm4
 * --rpmpopt is an invalid option for rpm4
 * we need to use the path to rpmrc since otherwise it poitns at the
   original build path
 * we need to set MAGIC in the environment so libmagic can find its
   files.

This patch addresses those and ensures rpmdeps works in relocated builds
from sstate (or with rm_work).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass
meta/lib/oe/package.py