Re: [Rpm-maint] [rpm-software-management/rpm] RFE: add some syntax to specify a macro should not fail when used with a flag not declared to rpm argument parsing (#547)

2020-10-19 Thread Panu Matilainen
Closed #547 via #1392. -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/547#event-3892043975___ Rpm-maint mailing list Rpm-maint@lists.rpm.org

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: add some syntax to specify a macro should not fail when used with a flag not declared to rpm argument parsing (#547)

2020-10-08 Thread Panu Matilainen
Pulled that part out of #1383 for now to avoid piling on. In the meanwhile I've been pondering about that '..' syntax which is as arbitrary as anything. Maybe a better syntax would be a wildcard '*' instead, ie ``` %foo(*) { } ``` Thoughts? -- You are receiving this because you commented.

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: add some syntax to specify a macro should not fail when used with a flag not declared to rpm argument parsing (#547)

2020-10-06 Thread Panu Matilainen
Implemented in PR #1383, but not specific to Lua despite the PR title. Simply pass '..' as the option string, eg `%foo(..)`. This will skip option processing in rpm, and any options that a macro might receive are simply passed as raw string arguments. -- You are receiving this because you

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: add some syntax to specify a macro should not fail when used with a flag not declared to rpm argument parsing (#547)

2020-03-20 Thread Panu Matilainen
One possibility might be giving this power only to Lua macros via the native argument mechanism (ie the proof-of-concept stuff in #1063) -- You are receiving this because you commented. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: add some syntax to specify a macro should not fail when used with a flag not declared to rpm argument parsing (#547)

2018-09-28 Thread nim-nim
> Since you asked, here's a small proposal and a possible alternative. > > Proposal: In a macro definition, using an argument string of `-` (as in > `%define macro(-)`) indicates > that getopt processing should not be done at all, and all supplied arguments > and options should be > delivered

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: add some syntax to specify a macro should not fail when used with a flag not declared to rpm argument parsing (#547)

2018-09-28 Thread Panu Matilainen
@nim-nim, @jasontibbitts okay I see now, thanks for the explanations. -- You are receiving this because you commented. Reply to this email directly or view it on GitHub:

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: add some syntax to specify a macro should not fail when used with a flag not declared to rpm argument parsing (#547)

2018-09-27 Thread Jeff Johnson
First: use a macro file, not a %define, to hide abc...XYZ. If you must have package specific macro overrides, the use %{load:...} and bury the override in a SourceN: directive. The most important reason to use a macrofile is readability: you can split a definition over multiple lines, unlike a

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: add some syntax to specify a macro should not fail when used with a flag not declared to rpm argument parsing (#547)

2018-09-27 Thread Jason Tibbitts
What we're trying to get around is having to do `%define foo(abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ)` so that the macro can just handle parsing `%**` itself, and then still not being able to handle anything that looks like a long option. That hack allows repeated arguments,

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: add some syntax to specify a macro should not fail when used with a flag not declared to rpm argument parsing (#547)

2018-09-27 Thread Jeff Johnson
That is indeed the case that some flags are handled by the macro processor, while others are passed along, when -- is used to stop getopt(3) option processing. Long options would need a means to be specified in the macro definition, and multiple duplicated options, and or arg types, would also

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: add some syntax to specify a macro should not fail when used with a flag not declared to rpm argument parsing (#547)

2018-09-27 Thread nim-nim
But that exposes to the macro user that some flags are handled by the rpm argument parser and others by something else. And that forces the macro user to use a specific flag order. The macro user does not care about all this – that's a macro implementation detail -- You are receiving this

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: add some syntax to specify a macro should not fail when used with a flag not declared to rpm argument parsing (#547)

2018-09-21 Thread Jeff Johnson
RPM already has support for %(...) shell diversions and %{lua:...} embedding, both of which are well known programming paradigms that should be used instead of macros wherever you find your efforts limited by lack of a failure message from a macro option/argument. -- You are receiving this

[Rpm-maint] [rpm-software-management/rpm] RFE: add some syntax to specify a macro should not fail when used with a flag not declared to rpm argument parsing (#547)

2018-09-21 Thread nim-nim
rpm macro argument parsing is ancient and limitating, it can not handle full-word flags, it can not handle repeated flags, and so on please add a syntax to specify a macro should not fail when used with a flag not declared to rpm argument parsing, so all those new forms of arguments can be