Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1679283

Summary: newer 32-bit ARM processors missing from RPM detection/macros
Product: [Fedora] Fedora Reporter: Jeremy Linton <jeremy.linton>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: igor.raits, mjw, packaging-team-maint, pbrobinson, pmatilai, pmoravco, pwhalen, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: aarch64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-13 12:52:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 245418    

Description Jeremy Linton 2019-02-20 19:26:09 UTC
Description of problem: It appears that the .rpm version being used in fedora is missing commits:

b1f81b837 Add armv8* arch variants to rpmrc.in and %arm macro
7f0e0b5be Fix %arm macro to include newer processor types
8c3a7b8fa Improve ARM detection

(due to them not being the in the latest release AFAIK)

This means that when run on a more recent processor (in a container) rpm fails to detect the platform correctly.

Version-Release number of selected component (if applicable): 4.14.2.1


Steps to Reproduce:
1. Running a 64-bit/aarch64 distro, install the 32-bit/armv7 container
2. note the platform name with uname
3. it should be something like `armv8l`
4. Attempt to build rpm's which have ${arm} macros


Actual results: The ${arm} sections are skipped


Expected results: The ${arm} sections are honored

Comment 1 Jeremy Linton 2019-02-20 19:31:00 UTC
Although possibly unrelated, it might be possible that this fixes the need to do `dnf --forcearch armv7hl` when running dnf in this enviroment too.

Comment 2 Panu Matilainen 2019-03-05 11:14:42 UTC
Moving to POST to indicate it's already fixed upstream.

Comment 3 Panu Matilainen 2019-06-13 12:52:22 UTC
Fixed in rawhide as of rpm >= 4.14.90.

This might get backported to older Fedoras in time.