-
Story
-
Resolution: Unresolved
-
Normal
-
None
-
rhel-9.6
-
rhel-sst-cs-software-management
-
ssg_core_services
-
None
-
False
-
-
None
-
None
-
-
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.