aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2019-05-10 20:22:17 +0200
committerAndreas Oberritter <obi@opendreambox.org>2020-07-02 15:10:00 +0200
commit7171bdd22cf9768d76e5eb90dc11186bd3128e17 (patch)
tree366eb927fba05ba6676c9fe3e5c3b17d474ec977
parent8228f99f5b7786b547d0e169082a08528aa37f82 (diff)
downloadopenembedded-core-contrib-7171bdd22cf9768d76e5eb90dc11186bd3128e17.tar.gz
openembedded-core-contrib-7171bdd22cf9768d76e5eb90dc11186bd3128e17.tar.bz2
openembedded-core-contrib-7171bdd22cf9768d76e5eb90dc11186bd3128e17.zip
update-alternatives: Remove build-time dependency
Update-alternatives is actually a runtime dependency. The build-time dependency is only needed to make sure update-alternative gets built at all, because the runtime dependencies are generated too late for bitbake to notice. This breaks a dependency loop between dpkg and xz, if dpkg also serves as the preferred runtime provider for update-alternatives. Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
-rw-r--r--meta/classes/update-alternatives.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/update-alternatives.bbclass b/meta/classes/update-alternatives.bbclass
index 8c2b66e7f15..aae3fc65d3d 100644
--- a/meta/classes/update-alternatives.bbclass
+++ b/meta/classes/update-alternatives.bbclass
@@ -87,7 +87,7 @@ def gen_updatealternativesvardeps(d):
def ua_extend_depends(d):
if not 'virtual/update-alternatives' in d.getVar('PROVIDES'):
- d.appendVar('DEPENDS', ' virtual/${MLPREFIX}update-alternatives')
+ d.appendVarFlag('do_package', 'depends', ' virtual/${MLPREFIX}update-alternatives:do_populate_sysroot')
def update_alternatives_enabled(d):
# Update Alternatives only works on target packages...