[oe-commits] Richard Purdie : debian: Set RPROVIDES to include the original packagename when renaming

git at git.openembedded.org git at git.openembedded.org
Tue Aug 19 19:41:57 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: f948c909c84659b6ae85099a37ba9ec0da1b59b9
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=f948c909c84659b6ae85099a37ba9ec0da1b59b9

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Tue Aug 19 13:40:36 2014 +0100

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.

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

---

 meta/classes/debian.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/debian.bbclass b/meta/classes/debian.bbclass
index 47d3ed8..8fe67c8 100644
--- a/meta/classes/debian.bbclass
+++ b/meta/classes/debian.bbclass
@@ -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: 



More information about the Openembedded-commits mailing list