mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
databases/pgpool-II-33: Fix build with LibreSSL
The build was broken after the latest update of the port, but only on amd64, not i386. PR: 226099 Submitted by: w.schwarzenfeld@utanet.at Reported by: dewayne@heuristicsystems.com.au
This commit is contained in:
parent
66dba53e54
commit
642e64ff30
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=470211
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= pgpool-II
|
||||
PORTVERSION= 3.3.20
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= http://www.pgpool.net/mediawiki/images/
|
||||
PKGNAMESUFFIX= 33
|
||||
|
11
databases/pgpool-II-33/files/patch-main.c
Normal file
11
databases/pgpool-II-33/files/patch-main.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- main.c.orig 2018-02-22 11:15:58 UTC
|
||||
+++ main.c
|
||||
@@ -360,7 +360,7 @@ int main(int argc, char **argv)
|
||||
|
||||
#ifdef USE_SSL
|
||||
/* global ssl init */
|
||||
- #if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
|
||||
+ #if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
OPENSSL_init_ssl(0, NULL);
|
||||
else
|
||||
SSL_library_init();
|
11
databases/pgpool-II-33/files/patch-pool__config.l
Normal file
11
databases/pgpool-II-33/files/patch-pool__config.l
Normal file
@ -0,0 +1,11 @@
|
||||
--- pool_config.l.orig 2018-02-22 11:24:41 UTC
|
||||
+++ pool_config.l
|
||||
@@ -2871,7 +2871,7 @@ int pool_get_config(char *confpath, POOL
|
||||
pool_config->backend_desc->num_backends = local_num_backends;
|
||||
|
||||
pool_debug("num_backends: %d total_weight: %f",
|
||||
- pool_config->backend_desc->num_backends, total_weight);
|
||||
+ (long) pool_config->backend_desc->num_backends, total_weight);
|
||||
/*
|
||||
* Normalize load balancing weights. What we are doing here is,
|
||||
* assign 0 to RAND_MAX to each backend's weight according to the
|
20
databases/pgpool-II-33/files/patch-wd__packet.c
Normal file
20
databases/pgpool-II-33/files/patch-wd__packet.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- watchdog/wd_packet.c.orig 2018-02-22 00:06:40 UTC
|
||||
+++ watchdog/wd_packet.c
|
||||
@@ -1211,7 +1211,7 @@ static void calculate_hmac_sha256(const
|
||||
unsigned int res_len = WD_AUTH_HASH_LEN;
|
||||
HMAC_CTX *ctx = NULL;
|
||||
|
||||
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
|
||||
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
ctx = HMAC_CTX_new();
|
||||
HMAC_CTX_reset(ctx);
|
||||
#else
|
||||
@@ -1222,7 +1222,7 @@ static void calculate_hmac_sha256(const
|
||||
HMAC_Init_ex(ctx, key, strlen(key), EVP_sha256(), NULL);
|
||||
HMAC_Update(ctx, (unsigned char*)data, len);
|
||||
HMAC_Final(ctx, (unsigned char*)str, &res_len);
|
||||
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
|
||||
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
HMAC_CTX_reset(ctx);
|
||||
HMAC_CTX_free(ctx);
|
||||
#else
|
Loading…
Reference in New Issue
Block a user