[Rpm-maint] [rpm-software-management/rpm] Allow parametric macros to opt out of option processing (#547) (#1392)

Panu Matilainen notifications at github.com
Fri Oct 9 11:56:54 UTC 2020


Macros might want to pass along options meant for others while perhaps modifying some of them, without exposing it all to users.
    
Have "-" as the parametric macro opts string disable all options processing in rpm, allowing the macro to handle the raw argument list as they place.
    
Fixes: #547

The first two commits are infrastructure pre-requisites.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1392

-- Commit Summary --

  * Wrap getopt() usage into internal helper
  * Don't muck with parametric macro arguments of cli defines
  * Allow parametric macros to opt out of option processing (#547)

-- File Changes --

    M doc/manual/macros.md (3)
    M lib/poptALL.c (2)
    M rpmio/Makefile.am (2)
    M rpmio/macro.c (84)
    A rpmio/rgetopt.c (44)
    M rpmio/rpmlua.c (41)
    M rpmio/rpmmacro_internal.h (4)
    M tests/rpmmacro.at (12)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1392.patch
https://github.com/rpm-software-management/rpm/pull/1392.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1392
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201009/29952ee9/attachment.html>


More information about the Rpm-maint mailing list