summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_rpm.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r--meta/classes/package_rpm.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 7fc5e8ea96..6713f8fcad 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -134,7 +134,10 @@ python do_package_rpm () {
134python () { 134python () {
135 import bb 135 import bb
136 if bb.data.getVar('PACKAGES', d, True) != '': 136 if bb.data.getVar('PACKAGES', d, True) != '':
137 bb.data.setVarFlag('do_package_write_rpm', 'depends', 'rpm-native:do_populate_staging', d) 137 deps = (bb.data.getVarFlag('do_package_write_rpm', 'depends', d) or "").split()
138 deps.append('rpm-native:do_populate_staging')
139 deps.append('fakeroot-native:do_populate_staging')
140 bb.data.setVarFlag('do_package_write_rpm', 'depends', " ".join(deps), d)
138} 141}
139 142
140 143