mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 09:32:11 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
e4346e8be5
commit
b5e42005e9
@@ -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)}")
|
||||
|
||||
Reference in New Issue
Block a user