Re: fix: propagate M4 env variable to flex subprocess

From: "J(dot) Javier Maestro" <jjmaestro(at)ieee(dot)org>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: fix: propagate M4 env variable to flex subprocess
Date: 2025-05-28 18:42:38
Message-ID: CABvji04eiFuFPTH+pJyenSOZRxvu6404aD4UMOzwgWsrRmiH8A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, May 28, 2025 at 6:08 PM Andres Freund <andres(at)anarazel(dot)de> wrote:

> Hi,
>
> On 2025-05-17 23:32:24 -0400, J. Javier Maestro wrote:
> > On Tue, May 13, 2025 at 11:54 AM Andres Freund <andres(at)anarazel(dot)de>
> wrote:
> > > Bilal, I think you wrote this originally, do you recall?
> > >
> > > It seems like an issue beyond just M4...
> > >
> >
> > IIRC the rest of the tools in the environment have ways to be specified
> via
> > Meson options (BISON, FLEX, PERL) so the only issue I see is Flex not
> being
> > able to find the specific m4 binary. What other issue(s) are you
> > considering?
>
> PATH, LD_LIBRARY_PATH, ...
>
> I think this really should just add to the environment, rather than
> supplant
> it.

Ah, understood. That definitely looks like a better option.

> Do you want to write a patch like that? Otherwise I can.
>

Sure, I've attached the new patch. Let me know what you think, and if it's
OK, what are the next steps to get the patch merged in main!

Thanks,

Javier

Attachment Content-Type Size
0001-fix-pgflex-propagate-environment-to-flex-subprocess.patch application/octet-stream 1.5 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2025-05-28 18:54:29 Re: PG 18 release notes draft committed
Previous Message Shubhankar Anand Kulkarni 2025-05-28 18:23:46 Re: Expression push down from Join Node to below node.