Skip to contentSkip to conversation

debian: Set RPROVIDES to include the original packagename when renaming

PATCH New Richard Purdie 1 participant 1 message Aug 19, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 debian: Set RPROVIDES to include the original packagename when renaming

Currently its hard for a packagegroup recipe to depend on something who's name can change unpredictably. We therefore add in RPROVIDES for the original package name so that these are also available to use as dependencies.

meta/classes/debian.bbclass +1 -0
index 47d3ed8..8fe67c8 100644
@@ -113,6 +113,7 @@ python debian_package_name_hook () {
                             newpkg = mlpre + newpkg
                     if newpkg != pkg:
                         d.setVar('PKG_' + pkg, newpkg)
+                        d.appendVar('RPROVIDES_' + pkg, " " + pkg)
 
     # reversed sort is needed when some package is substring of another
     # ie in ncurses we get without reverse sort: