base.bbclass: pull in file-native for src.rpm
Unpacking an src.rpm uses rpm2cpio.sh, which requires 'file'. Without this, builds of rpm on a host without 'file' installed will fail with very strange messages. (From OE-Core master rev: 97e1d84e2d1a74791ce6af88ddc27963bc0e1bec) (From OE-Core rev: a4ae70638314a88c3abfcca0d29e1c425f86bea0) Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
5b4c3955f0
commit
64909c693a
|
@ -582,6 +582,10 @@ python () {
|
|||
if ".zip" in srcuri:
|
||||
d.appendVarFlag('do_unpack', 'depends', ' unzip-native:do_populate_sysroot')
|
||||
|
||||
# file is needed by rpm2cpio.sh
|
||||
if ".src.rpm" in srcuri:
|
||||
d.appendVarFlag('do_unpack', 'depends', ' file-native:do_populate_sysroot')
|
||||
|
||||
set_packagetriplet(d)
|
||||
|
||||
# 'multimachine' handling
|
||||
|
|
Loading…
Reference in New Issue