Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] debian: Fix superfluous setting for RPROVIDES
@ 2016-02-12 11:35 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-02-12 11:35 UTC (permalink / raw)
  To: openembedded-core

PKG_ can be set to something like ${MLPREFIX}<name> and the lack of expansion here
means the case where MLPREFIX is empty leads to a bogus RPROVIDES.

Use expansion of the variable to avoid this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/meta/classes/debian.bbclass b/meta/classes/debian.bbclass
index 1b6979a..be7cacc 100644
--- a/meta/classes/debian.bbclass
+++ b/meta/classes/debian.bbclass
@@ -53,7 +53,7 @@ python debian_package_name_hook () {
         return (s[stat.ST_MODE] & stat.S_IEXEC)
 
     def add_rprovides(pkg, d):
-        newpkg = d.getVar('PKG_' + pkg, False)
+        newpkg = d.getVar('PKG_' + pkg, True)
         if newpkg and newpkg != pkg:
             provs = (d.getVar('RPROVIDES_' + pkg, True) or "").split()
             if pkg not in provs:




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-12 11:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-12 11:35 [PATCH] debian: Fix superfluous setting for RPROVIDES Richard Purdie

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