[oe-commits] [openembedded-core] 06/39: classes/base: set do_unpack dependencies for rpm files

git at git.openembedded.org git at git.openembedded.org
Thu Jul 20 16:29:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 3db76a1a99e76e1e0f840bb8dfad3122dfc9c664
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Thu Jul 20 16:48:12 2017 +0200

    classes/base: set do_unpack dependencies for rpm files
    
    If we're unpacking any rpm (not just .src.rpm) then we'll need to call
    rpm2cpio.sh. As of OE-Core rev a7da1aade118d1ccf1b286f82556cd9f706bd2a4
    that script no longer uses file-native, but there is a chance that the
    rpm file will be compressed internally using xz (for example, rpms from
    Fedora) and therefore the script will need xzcat provided xz-native.
    
    Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/base.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 27a28b8..9c40e01 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -632,8 +632,8 @@ python () {
             d.appendVarFlag('do_unpack', 'depends', ' unzip-native:do_populate_sysroot')
 
         # file is needed by rpm2cpio.sh
-        elif path.endswith('.src.rpm'):
-            d.appendVarFlag('do_unpack', 'depends', ' file-native:do_populate_sysroot')
+        elif path.endswith('.rpm'):
+            d.appendVarFlag('do_unpack', 'depends', ' xz-native:do_populate_sysroot')
 
     if needsrcrev:
         d.setVar("SRCPV", "${@bb.fetch2.get_srcrev(d)}")

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list