<pre style='margin:0'>
Jeremy Huddleston Sequoia (jeremyhu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f9592c255bc1cecf55bf0f54806aeea3b1f12aaf">https://github.com/macports/macports-ports/commit/f9592c255bc1cecf55bf0f54806aeea3b1f12aaf</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new f9592c2 openldap: Fix build failure when using libressl
</span>f9592c2 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit f9592c255bc1cecf55bf0f54806aeea3b1f12aaf
</span>Author: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
AuthorDate: Sun Jun 25 02:02:45 2017 -0700
<span style='display:block; white-space:pre;color:#404040;'> openldap: Fix build failure when using libressl
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
</span>---
databases/openldap/Portfile | 3 +-
databases/openldap/files/libressl.patch | 65 +++++++++++++++++++++++++++++++++
2 files changed, 67 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/openldap/Portfile b/databases/openldap/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c5c127b..7067017 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/openldap/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/openldap/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -29,7 +29,8 @@ depends_lib path:bin/perl:perl5 \
</span> port:db48 \
port:icu
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-ltmain
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-ltmain \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ libressl.patch
</span>
configure.env-append LANG=C
configure.cppflags-append -I${prefix}/include/db48 -I${prefix}/include/openssl -DBIND_8_COMPAT
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/openldap/files/libressl.patch b/databases/openldap/files/libressl.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..bb25bcb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/openldap/files/libressl.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,65 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libraries/libldap/tls_o.c.orig 2017-06-25 01:54:29.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libraries/libldap/tls_o.c 2017-06-25 02:00:48.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -47,7 +47,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <ssl.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if OPENSSL_VERSION_NUMBER >= 0x10100000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define ASN1_STRING_data(x) ASN1_STRING_get0_data(x)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -157,7 +157,7 @@ tlso_init( void )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (void) tlso_seed_PRNG( lo->ldo_tls_randfile );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if OPENSSL_VERSION_NUMBER < 0x10100000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if (OPENSSL_VERSION_NUMBER < 0x10100000) || defined(LIBRESSL_VERSION_NUMBER)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SSL_load_error_strings();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SSL_library_init();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OpenSSL_add_all_digests();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -205,7 +205,7 @@ static void
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tlso_ctx_ref( tls_ctx *ctx )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tlso_ctx *c = (tlso_ctx *)ctx;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if OPENSSL_VERSION_NUMBER < 0x10100000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if (OPENSSL_VERSION_NUMBER < 0x10100000) || defined(LIBRESSL_VERSION_NUMBER)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SSL_CTX_up_ref(ctx) CRYPTO_add( &(ctx->references), 1, CRYPTO_LOCK_SSL_CTX )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SSL_CTX_up_ref( c );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -464,7 +464,7 @@ tlso_session_my_dn( tls_session *sess, s
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (!x) return LDAP_INVALID_CREDENTIALS;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xn = X509_get_subject_name(x);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if OPENSSL_VERSION_NUMBER < 0x10100000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if (OPENSSL_VERSION_NUMBER < 0x10100000) || defined(LIBRESSL_VERSION_NUMBER)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ der_dn->bv_len = i2d_X509_NAME( xn, NULL );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ der_dn->bv_val = xn->bytes->data;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -500,7 +500,7 @@ tlso_session_peer_dn( tls_session *sess,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return LDAP_INVALID_CREDENTIALS;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xn = X509_get_subject_name(x);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if OPENSSL_VERSION_NUMBER < 0x10100000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if (OPENSSL_VERSION_NUMBER < 0x10100000) || defined(LIBRESSL_VERSION_NUMBER)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ der_dn->bv_len = i2d_X509_NAME( xn, NULL );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ der_dn->bv_val = xn->bytes->data;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -721,7 +721,7 @@ struct tls_data {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Sockbuf_IO_Desc *sbiod;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ };
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if OPENSSL_VERSION_NUMBER < 0x10100000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if (OPENSSL_VERSION_NUMBER < 0x10100000) || defined(LIBRESSL_VERSION_NUMBER)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define BIO_set_init(b, x) b->init = x
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define BIO_set_data(b, x) b->ptr = x
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define BIO_clear_flags(b, x) b->flags &= ~(x)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -822,7 +822,7 @@ tlso_bio_puts( BIO *b, const char *str )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return tlso_bio_write( b, str, strlen( str ) );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if OPENSSL_VERSION_NUMBER >= 0x10100000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if (OPENSSL_VERSION_NUMBER >= 0x10100000) && !defined(LIBRESSL_VERSION_NUMBER)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct bio_method_st {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int type;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const char *name;
</span></pre><pre style='margin:0'>
</pre>