v2-0001-Fix-use-of-openssl.path-if-openssl-isn-t-found.patch

text/x-patch

Filename: v2-0001-Fix-use-of-openssl.path-if-openssl-isn-t-found.patch
Type: text/x-patch
Part: 0
Message: Re: Fix use of openssl.path() if openssl isn't found

Patch

Format: format-patch
Series: patch v2-0001
Subject: Fix use of openssl.path() if openssl isn't found
File+
src/test/ssl/meson.build 1 1
From 5fc0460b0b85b8f04976182c0f6ec650c40df833 Mon Sep 17 00:00:00 2001
From: Tristan Partin <tristan@neon.tech>
Date: Tue, 7 Nov 2023 15:59:04 -0600
Subject: [PATCH v2] Fix use of openssl.path() if openssl isn't found

openssl(1) is an optional dependency of the Postgres Meson build, but
was inadvertantly required when defining some SSL tests.
---
 src/test/ssl/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/ssl/meson.build b/src/test/ssl/meson.build
index 4cda81f3bc..ed83c438ef 100644
--- a/src/test/ssl/meson.build
+++ b/src/test/ssl/meson.build
@@ -7,7 +7,7 @@ tests += {
   'tap': {
     'env': {
       'with_ssl': ssl_library,
-      'OPENSSL': openssl.path(),
+      'OPENSSL': openssl.found() ? openssl.path : '',
     },
     'tests': [
       't/001_ssltests.pl',
-- 
Tristan Partin
Neon (https://neon.tech)