Bug 2089020

Summary: rpmbuild can't parse %elif, %elifarch, %elifos on RHEL 8.6
Product: Red Hat Enterprise Linux 8 Reporter: Istiak Ferdous <hello>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED WONTFIX QA Contact: swm-qe
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.6CC: germano.massullo, germano.massullo, pmatilai
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-23 06:46:12 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:

Description Istiak Ferdous 2022-05-22 14:01:27 UTC
Description of problem:
Currently rpmbuild can't parse %elif, %elifarch, %elifos on RHEL 8.6.

Version-Release number of selected component (if applicable):
RPM version 4.14.3

How reproducible:
100% reproducible

Steps to Reproduce:
1.Create a spec file with %elif, %elifarch, %elifos
2.Try to build SRPMS rpmbuild -bs ~/rpmbuild/SPECS/package.spec

Actual results:
error: line 15: Unknown tag: %elif


Expected results:
Parse %elif, %elifarch, %elifos


Additional info:
Is it possible to backport this patch:

https://github.com/rpm-software-management/rpm/commit/1c4b238840d0995344d0d0381a0561b213429203

Or upgrade RPM to minimum rpm-4.15.0-release ?

Comment 1 Panu Matilainen 2022-05-23 06:46:12 UTC
This has been requested before. The above patch is not free-standing but depends on a pile of changes that together were considered too invasive and thus risky for backporting.

Within a distro release, rpm is only ever rebased to different newer micro releases of the same major.minor branch, updates like 4.14 -> 4.15 are out of the question entirely because those are effectively major versions when it comes to rpm.