[Rpm-ecosystem] Fwd: [Rpm-maint] Fixing macro scoping

Neal Gompa ngompa13 at gmail.com
Fri Feb 3 13:37:51 UTC 2017

On Fri, Feb 3, 2017 at 7:35 AM, Panu Matilainen
<pmatilai at laiskiainen.org> wrote:
> On 02/03/2017 02:22 PM, Neal Gompa wrote:
> [...snip...]
>> Sorry if I sound stupid about this, but I've read this email at least
>> four times now, and I'm still not quite sure what you're trying to
>> describe...
> Right, quite possibly the question got lost in the rpm internals
> mumble-jungle.
> So forget the all the technical mumbling about scoping levels etc for now.
> What would you expect the following snippet to output (full reproducer spec
> is at https://bugzilla.redhat.com/show_bug.cgi?id=552944)?
> %{!?foo: %define foo bar}
> %define dofoo() true
> echo 1: %{foo}
> %dofoo
> echo 2: %{foo}

I would expect that would expand each time. My expectation is that it
should evaluate and expand correctly on each invocation.

真実はいつも一つ!/ Always, there's only one truth!

More information about the Rpm-ecosystem mailing list