Re: [PATCH] test/ssl: rework the sslfiles Makefile target

From: Jacob Champion <pchampion(at)vmware(dot)com>
To: "daniel(at)yesql(dot)se" <daniel(at)yesql(dot)se>, "tgl(at)sss(dot)pgh(dot)pa(dot)us" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, "andrew(at)dunslane(dot)net" <andrew(at)dunslane(dot)net>
Subject: Re: [PATCH] test/ssl: rework the sslfiles Makefile target
Date: 2021-07-30 15:11:49
Message-ID: 7316398fbce3fdc0192c3b9c5aa1011e32e7f88e.camel@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 2021-07-28 at 23:09 +0200, Daniel Gustafsson wrote:
> > On 28 Jul 2021, at 23:02, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> > Jacob Champion <pchampion(at)vmware(dot)com> writes:
> > > As long as the .SECONDARYEXPANSION magic is clear enough to others, I'm
> > > happy.
> >
> > After reading the gmake docs about that, I'd have to say it's likely to be next
> > door to unmaintainable.
>
> Personally, I don’t think it’s that bad, but mileage varies. It’s obviously a
> show-stopper if maintainers don’t feel comfortable with it.
>
> > And, AFAICT, it's not in 3.80.
>
> That however, is a very good point that I missed. I think it’s a good tool,
> but probably not enough to bump the requirement.

No worries, it's easy enough to unroll the expansion manually. The
annoyances without secondary expansion are the duplicated lines for
each individual CA and the need to introduce .INTERMEDIATE targets so
that cleanup works as intended.

Attached is a v3 that does that, and introduces a fallback in case
openssl isn't on the PATH. I also missed a Makefile dependency on
cas.config the first time through, which has been fixed. The patch you
pulled out earlier is 0001 in the set.

--Jacob

Attachment Content-Type Size
since-v2.diff.txt text/plain 5.3 KB
v3-0001-Remove-unused-regression-test-certificate-server-.patch text/x-patch 5.6 KB
v3-0002-test-ssl-rework-the-sslfiles-Makefile-target.patch text/x-patch 92.9 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-07-30 15:22:43 Re: Segment fault when excuting SPI function On PG with commit 41c6a5be
Previous Message Daniel Gustafsson 2021-07-30 15:10:30 Re: Segment fault when excuting SPI function On PG with commit 41c6a5be