- 
    
Story
 - 
    Resolution: Done-Errata
 - 
    
Major
 - 
    rhel-9.5
 
- 
        rpm-4.16.1.3-37.el9
 - 
        None
 
- 
        rhel-swm
 - 
        ssg_core_services
 
- 
        22
 - 
        26
 - 
        5
 - 
        False
 - 
        False
 - 
        
 - 
        None
 - 
        None
 
- 
        
 - 
        Pass
 - 
        None
 
- 
        Release Note Not Required
 
- 
        
 - 
        All
 
- 
        None
 
Goal
- As a RPM macros maintainer, I want be able to define parametric macros which opt out of option processing, so that I can backport a macro from Fedora that uses this feature.
 
Acceptance criteria
This should work:
$ rpm --define 'mymacro(-) ... %{?**}' --eval '%mymacro -a' ... -a
As it currently does not work with rpm-4.16.1.3-34.el9:
$ rpm --define 'mymacro(-) ... %{?**}' --eval '%mymacro -a' mymacro: invalid option -- 'a' error: Unknown option a in mymacro(-)
Upstream PR (for RPM 4.17): https://github.com/rpm-software-management/rpm/pull/1392
I have a backport ready at https://gitlab.com/redhat/centos-stream/rpms/rpm/-/merge_requests/60
- links to
 - 
                    
        
        RHBA-2024:142383
        rpm bug fix and enhancement update