Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] update-alternatives: Do not add dependency on virtual/update-alternatives for INHIBIT_DEFAULT_DEPS
@ 2020-09-01  4:56 Khem Raj
  2020-09-01  4:56 ` [PATCH 2/2] glibc-utils: Use update-alternatives for iconv and getconf Khem Raj
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Khem Raj @ 2020-09-01  4:56 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

This allows special recipes e.g. glibc to use update-alternatives,
glibc-utils e.g. provides packages like iconv, getconf which are also
provided by other packages e.g. toybox, which uses update-alternatives
but since glibc-utils does not use it, images which contain glibc-utils
and toybox fail to build, glibc-utils is commonly pulled into ptest
related images. This patch therefore will allow glibc-utils or
musl-utils use u-a

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/classes/update-alternatives.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/update-alternatives.bbclass b/meta/classes/update-alternatives.bbclass
index 8c2b66e7f1..ae393770f8 100644
--- a/meta/classes/update-alternatives.bbclass
+++ b/meta/classes/update-alternatives.bbclass
@@ -86,7 +86,7 @@ def gen_updatealternativesvardeps(d):
                 d.appendVar('%s_VARDEPS_%s' % (v,p), ' %s:%s' % (flag, d.getVarFlag('%s_%s' % (v,p), flag, False)))
 
 def ua_extend_depends(d):
-    if not 'virtual/update-alternatives' in d.getVar('PROVIDES'):
+    if not 'virtual/update-alternatives' in d.getVar('PROVIDES') and not d.getVar('INHIBIT_DEFAULT_DEPS'):
         d.appendVar('DEPENDS', ' virtual/${MLPREFIX}update-alternatives')
 
 def update_alternatives_enabled(d):
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-01 15:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-01  4:56 [PATCH 1/2] update-alternatives: Do not add dependency on virtual/update-alternatives for INHIBIT_DEFAULT_DEPS Khem Raj
2020-09-01  4:56 ` [PATCH 2/2] glibc-utils: Use update-alternatives for iconv and getconf Khem Raj
2020-09-01  5:03 ` ✗ patchtest: failure for "update-alternatives: Do not ad..." and 1 more Patchwork
2020-09-01 15:37 ` [OE-core] [PATCH 1/2] update-alternatives: Do not add dependency on virtual/update-alternatives for INHIBIT_DEFAULT_DEPS Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox