diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-07-20 16:48:12 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-21 08:44:25 +0100 |
commit | b5e42005e96d0c3ed5da72007f6c41722332afe6 (patch) | |
tree | d8f2b939252054b86919133ccc53c0e620ba029a | |
parent | e4346e8be5f451d5cfe0b68a272abd15b0951831 (diff) | |
download | poky-b5e42005e96d0c3ed5da72007f6c41722332afe6.tar.gz |
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.
(From OE-Core rev: 2f31f1795bc0c85b1646bc7d9596bbe778cb84e5)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/base.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 27a28b8b8c..9c40e017f4 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -632,8 +632,8 @@ python () { | |||
632 | d.appendVarFlag('do_unpack', 'depends', ' unzip-native:do_populate_sysroot') | 632 | d.appendVarFlag('do_unpack', 'depends', ' unzip-native:do_populate_sysroot') |
633 | 633 | ||
634 | # file is needed by rpm2cpio.sh | 634 | # file is needed by rpm2cpio.sh |
635 | elif path.endswith('.src.rpm'): | 635 | elif path.endswith('.rpm'): |
636 | d.appendVarFlag('do_unpack', 'depends', ' file-native:do_populate_sysroot') | 636 | d.appendVarFlag('do_unpack', 'depends', ' xz-native:do_populate_sysroot') |
637 | 637 | ||
638 | if needsrcrev: | 638 | if needsrcrev: |
639 | d.setVar("SRCPV", "${@bb.fetch2.get_srcrev(d)}") | 639 | d.setVar("SRCPV", "${@bb.fetch2.get_srcrev(d)}") |