mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
package_rpm.bbclass: make architecture-independent .rpm packages "noarch" instead of "all"
Too many places in dnf/rpm4 stack make that assumption; let's not fight against it. (From OE-Core rev: 341810aff923ace6b1cc1e15e19383c4f8773b51) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f033bba14a
commit
cf7e0baffa
@@ -684,7 +684,9 @@ python do_package_rpm () {
|
||||
rpmbuild = d.getVar('RPMBUILD')
|
||||
targetsys = d.getVar('TARGET_SYS')
|
||||
targetvendor = d.getVar('HOST_VENDOR')
|
||||
package_arch = (d.getVar('PACKAGE_ARCH') or "").replace("-", "_")
|
||||
# Too many places in dnf stack assume that arch-independent packages are "noarch".
|
||||
# Let's not fight against this.
|
||||
package_arch = (d.getVar('PACKAGE_ARCH') or "").replace("-", "_").replace("all", "noarch")
|
||||
sdkpkgsuffix = (d.getVar('SDKPKGSUFFIX') or "nativesdk").replace("-", "_")
|
||||
if package_arch not in "all any noarch".split() and not package_arch.endswith(sdkpkgsuffix):
|
||||
ml_prefix = (d.getVar('MLPREFIX') or "").replace("-", "_")
|
||||
|
||||
Reference in New Issue
Block a user