From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make finding openssl program a configure or meson option
Date: Thu, 20 Oct 2022 19:18:11 +0000
Message-ID: <E1olb3S-0002of-VV@gemulon.postgresql.org> (raw)
Make finding openssl program a configure or meson option
Various test suites use the "openssl" program as part of their setup.
There isn't a way to override which openssl program is to be used,
other than by fiddling with the path, perhaps. This has gotten
increasingly problematic because different versions of openssl have
different capabilities and do different things by default.
This patch checks for an openssl binary in configure and meson setup,
with appropriate ways to override it. This is similar to how "lz4"
and "zstd" are handled, for example. The meson build system actually
already did this, but the result was only used in some places. This
is now applied more uniformly.
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/flat/dc638b75-a16a-007d-9e1c-d16ed6cf0ad2%40enterprisedb.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c8e4030d1bddc1120fd1c3f17db5b86a729df4b6
Modified Files
--------------
configure | 55 ++++++++++++++++++++++
configure.ac | 1 +
doc/src/sgml/install-windows.sgml | 9 ++++
meson.build | 1 +
meson_options.txt | 3 ++
src/Makefile.global.in | 1 +
src/test/ldap/Makefile | 1 +
src/test/ldap/meson.build | 5 +-
src/test/ldap/t/001_auth.pl | 8 ++--
src/test/modules/ssl_passphrase_callback/Makefile | 4 +-
.../modules/ssl_passphrase_callback/meson.build | 2 -
src/test/ssl/Makefile | 2 +-
src/test/ssl/meson.build | 5 +-
src/test/ssl/sslfiles.mk | 34 ++++++-------
src/test/ssl/t/001_ssltests.pl | 4 +-
src/tools/msvc/vcregress.pl | 1 +
16 files changed, 107 insertions(+), 29 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org
Subject: Re: pgsql: Make finding openssl program a configure or meson option
In-Reply-To: <E1olb3S-0002of-VV@gemulon.postgresql.org>
References: <E1olb3S-0002of-VV@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox