Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] manpages.bbclass: avoid QA warning when "manpages" feature not supported
@ 2017-05-15  8:32 Patrick Ohly
  2017-05-15 11:47 ` Alexander Kanavin
  0 siblings, 1 reply; 8+ messages in thread
From: Patrick Ohly @ 2017-05-15  8:32 UTC (permalink / raw)
  To: openembedded-core

Activating API documentation with:
  INHERIT += "manpages"
  DISTRO_FEATURES_append = " api-documentation"
triggers QA warnings for each recipe which doesn't have a "manpages"
PACKAGECONFIG. Example:
  WARNING: base-files-3.0.14-r89 do_configure: QA Issue: base-files: invalid PACKAGECONFIG: manpages [invalid-packageconfig]

We need to be more selective when adding the "manpages" feature and check
whether it's supported first.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
---
 meta/classes/manpages.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/manpages.bbclass b/meta/classes/manpages.bbclass
index d16237b..5aa1d1a 100644
--- a/meta/classes/manpages.bbclass
+++ b/meta/classes/manpages.bbclass
@@ -2,4 +2,5 @@
 # depending on whether 'api-documentation' is in DISTRO_FEATURES. Such building
 # tends to pull in the entire XML stack and other tools, so it's not enabled
 # by default.
-PACKAGECONFIG_append_class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'manpages', '', d)}"
+PACKAGECONFIG_append_class-target = "${@ '' if 'manpages' not in d.getVarFlags('PACKAGECONFIG') else \
+    bb.utils.contains('DISTRO_FEATURES', 'api-documentation', ' manpages', '', d)}"

base-commit: c59fa3bd71b42410bf032846ee8fdb6e6eb1b95c
-- 
git-series 0.9.1


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

end of thread, other threads:[~2017-05-25 14:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-15  8:32 [PATCH] manpages.bbclass: avoid QA warning when "manpages" feature not supported Patrick Ohly
2017-05-15 11:47 ` Alexander Kanavin
2017-05-15 12:24   ` Patrick Ohly
2017-05-15 13:06     ` Burton, Ross
2017-05-24 20:54       ` Jose Lamego
2017-05-24 20:57         ` Jose Lamego
2017-05-25  8:06         ` Alexander Kanavin
2017-05-25 14:21           ` Jose Lamego

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