summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/base.oeclass11
1 files changed, 9 insertions, 2 deletions
diff --git a/classes/base.oeclass b/classes/base.oeclass
index 5bffe724b5..88b0b3e0be 100644
--- a/classes/base.oeclass
+++ b/classes/base.oeclass
@@ -575,15 +575,22 @@ def explode_deps(s):
python read_shlibdeps () {
packages = (oe.data.getVar('PACKAGES', d, 1) or "").split()
for pkg in packages:
+ rdepends = explode_deps(oe.data.getVar('RDEPENDS_' + pkg, d, 1) or oe.data.getVar('RDEPENDS', d, 1) or "")
shlibsfile = oe.data.expand("${WORKDIR}/install/" + pkg + ".shlibdeps", d)
if os.access(shlibsfile, os.R_OK):
fd = file(shlibsfile)
lines = fd.readlines()
fd.close()
- rdepends = explode_deps(oe.data.getVar('RDEPENDS_' + pkg, d, 1) or oe.data.getVar('RDEPENDS', d, 1) or "")
for l in lines:
rdepends.append(l.rstrip())
- oe.data.setVar('RDEPENDS_' + pkg, " " + " ".join(rdepends), d)
+ pcfile = oe.data.expand("${WORKDIR}/install/" + pkg + ".pcdeps", d)
+ if os.access(pcfile, os.R_OK):
+ fd = file(pcfile)
+ lines = fd.readlines()
+ fd.close()
+ for l in lines:
+ rdepends.append(l.rstrip())
+ oe.data.setVar('RDEPENDS_' + pkg, " " + " ".join(rdepends), d)
}
python read_subpackage_metadata () {