diff options
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 1deaf832da..a428d30641 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -646,9 +646,13 @@ python do_package_rpm () { | |||
646 | rpmbuild = d.getVar('RPMBUILD') | 646 | rpmbuild = d.getVar('RPMBUILD') |
647 | targetsys = d.getVar('TARGET_SYS') | 647 | targetsys = d.getVar('TARGET_SYS') |
648 | targetvendor = d.getVar('HOST_VENDOR') | 648 | targetvendor = d.getVar('HOST_VENDOR') |
649 | |||
649 | # Too many places in dnf stack assume that arch-independent packages are "noarch". | 650 | # Too many places in dnf stack assume that arch-independent packages are "noarch". |
650 | # Let's not fight against this. | 651 | # Let's not fight against this. |
651 | package_arch = (d.getVar('PACKAGE_ARCH') or "").replace("-", "_").replace("all", "noarch") | 652 | package_arch = (d.getVar('PACKAGE_ARCH') or "").replace("-", "_") |
653 | if package_arch == "all": | ||
654 | package_arch = "noarch" | ||
655 | |||
652 | sdkpkgsuffix = (d.getVar('SDKPKGSUFFIX') or "nativesdk").replace("-", "_") | 656 | sdkpkgsuffix = (d.getVar('SDKPKGSUFFIX') or "nativesdk").replace("-", "_") |
653 | d.setVar('PACKAGE_ARCH_EXTEND', package_arch) | 657 | d.setVar('PACKAGE_ARCH_EXTEND', package_arch) |
654 | pkgwritedir = d.expand('${PKGWRITEDIRRPM}/${PACKAGE_ARCH_EXTEND}') | 658 | pkgwritedir = d.expand('${PKGWRITEDIRRPM}/${PACKAGE_ARCH_EXTEND}') |