Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-67161

Backport "Allow parametric macros to opt out of option processing" to RPM 4.16

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-9.6
    • rpm
    • rhel-sst-cs-software-management
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • 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.

              packaging-team-maint packaging-team-maint
              mhroncok@redhat.com Miro HronĨok
              packaging-team-maint packaging-team-maint
              Software Management QE Software Management QE
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: