diff options
-rw-r--r-- | meta/classes/insane.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/package.bbclass | 11 |
2 files changed, 9 insertions, 4 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index eef4f72678..4bceaaed82 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | # We play a special package function | 21 | # We play a special package function |
22 | inherit package | 22 | inherit package |
23 | do_package[depends] += "pax-utils-native:do_populate_staging" | 23 | PACKAGE_DEPENDS += "pax-utils-native" |
24 | PACKAGEFUNCS += " do_package_qa " | 24 | PACKAGEFUNCS += " do_package_qa " |
25 | 25 | ||
26 | def package_qa_check_rpath(file,name,d): | 26 | def package_qa_check_rpath(file,name,d): |
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 70313a192e..416bf98c6b 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -116,13 +116,18 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst | |||
116 | 116 | ||
117 | bb.data.setVar('PACKAGES', ' '.join(packages), d) | 117 | bb.data.setVar('PACKAGES', ' '.join(packages), d) |
118 | 118 | ||
119 | PACKAGE_DEPENDS += "file-native" | ||
120 | |||
119 | python () { | 121 | python () { |
120 | import bb | 122 | import bb |
123 | if bb.data.getVar('PACKAGES', d, True) != '': | ||
124 | deps = bb.data.getVarFlag('do_package', 'depends', d) or "" | ||
125 | for dep in (bb.data.getVar('PACKAGE_DEPENDS', d, True) or "").split(): | ||
126 | deps += " %s:do_populate_staging" % dep | ||
127 | bb.data.setVarFlag('do_package', 'depends', deps, d) | ||
121 | 128 | ||
122 | if bb.data.getVar('PACKAGES', d, 1) != '': | ||
123 | bb.data.setVarFlag('do_package', 'depends', 'file-native:do_populate_staging', d) | ||
124 | deps = bb.data.getVarFlag('do_package_write', 'depends', d) or "" | 129 | deps = bb.data.getVarFlag('do_package_write', 'depends', d) or "" |
125 | for dep in (bb.data.getVar('PACKAGE_EXTRA_DEPENDS', d, 1) or "").split(): | 130 | for dep in (bb.data.getVar('PACKAGE_EXTRA_DEPENDS', d, True) or "").split(): |
126 | deps += " %s:do_populate_staging" % dep | 131 | deps += " %s:do_populate_staging" % dep |
127 | bb.data.setVarFlag('do_package_write', 'depends', deps, d) | 132 | bb.data.setVarFlag('do_package_write', 'depends', deps, d) |
128 | } | 133 | } |