<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/aa39eadc5f6042613c38e2fac7fbd9814063eecb">https://github.com/macports/macports-ports/commit/aa39eadc5f6042613c38e2fac7fbd9814063eecb</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 aa39eadc5f6 php*-openssl: Fix build conflict with openssl
</span>aa39eadc5f6 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit aa39eadc5f6042613c38e2fac7fbd9814063eecb
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Thu Nov 25 15:33:12 2021 -0600
<span style='display:block; white-space:pre;color:#404040;'> php*-openssl: Fix build conflict with openssl
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/63921
</span>---
lang/php/Portfile | 33 +++++++++-------------
.../files/patch-php52-ext-openssl-config.m4.diff | 13 ---------
.../files/patch-php53-ext-openssl-config.m4.diff | 13 ---------
.../files/patch-php54-ext-openssl-config.m4.diff | 13 ---------
.../files/patch-php55-ext-openssl-config.m4.diff | 13 ---------
.../files/patch-php56-ext-openssl-config.m4.diff | 13 ---------
6 files changed, 14 insertions(+), 84 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/php/Portfile b/lang/php/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 52d8d62e313..f4d750b64b9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/php/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/php/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1607,9 +1607,6 @@ if {[vercmp ${branch} 5.5] >= 0} {
</span> }
subport ${php}-openssl {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PortGroup conflicts_build 1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> switch -- ${version} {
5.2.17 {revision 3}
5.3.29 {revision 3}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1642,27 +1639,25 @@ subport ${php}-openssl {
</span>
configure.args-append --with-kerberos=${prefix}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Look in OpenSSL directories before the main include directory.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {[vercmp ${branch} 5.6] <= 0} {
openssl.branch 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {[vercmp ${branch} 8.1] <= 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ openssl.branch 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ openssl.branch 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # This patch is for reordering -I and -L flags during the build to make
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # openssl-1.0 directories appear before others
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles-append patch-${php}-ext-openssl-config.m4.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/ext/openssl/config.m4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[vercmp ${branch} 5.6] <= 0} {
</span> configure.args-append --with-openssl=shared
<span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- openssl.branch 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {[vercmp ${branch} 7.4] < 0} {
</span> configure.args-append --with-openssl=[openssl::install_area]
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Despite above explicit configuration, will not build if openssl shim port
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # is active as it is found in preference to the specified version.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Until the build configuration can be comnvinced to use the configured openssl
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # in preference to whatever it might find in the primary prefix, declare a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # build conflict so the user is given clear instructions how to deal with it.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- conflicts_build openssl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-openssl
</span> }
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/php/files/patch-php52-ext-openssl-config.m4.diff b/lang/php/files/patch-php52-ext-openssl-config.m4.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index eaa5d1c04f8..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/php/files/patch-php52-ext-openssl-config.m4.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,13 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- ext/openssl/config.m4.orig 2019-01-09 17:54:13.000000000 +0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ ext/openssl/config.m4 2019-05-11 16:52:27.000000000 +0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -32,4 +32,10 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ INCLUDES=`echo "$INCLUDES" | sed "s|-I@PREFIX@/include ||g"`
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ INCLUDES="$INCLUDES -I@PREFIX@/include"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ LDFLAGS=`echo "$LDFLAGS" | sed "s|-L@PREFIX@/lib ||g"`
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -L@PREFIX@/lib"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/php/files/patch-php53-ext-openssl-config.m4.diff b/lang/php/files/patch-php53-ext-openssl-config.m4.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index eaa5d1c04f8..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/php/files/patch-php53-ext-openssl-config.m4.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,13 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- ext/openssl/config.m4.orig 2019-01-09 17:54:13.000000000 +0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ ext/openssl/config.m4 2019-05-11 16:52:27.000000000 +0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -32,4 +32,10 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ INCLUDES=`echo "$INCLUDES" | sed "s|-I@PREFIX@/include ||g"`
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ INCLUDES="$INCLUDES -I@PREFIX@/include"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ LDFLAGS=`echo "$LDFLAGS" | sed "s|-L@PREFIX@/lib ||g"`
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -L@PREFIX@/lib"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/php/files/patch-php54-ext-openssl-config.m4.diff b/lang/php/files/patch-php54-ext-openssl-config.m4.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index eaa5d1c04f8..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/php/files/patch-php54-ext-openssl-config.m4.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,13 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- ext/openssl/config.m4.orig 2019-01-09 17:54:13.000000000 +0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ ext/openssl/config.m4 2019-05-11 16:52:27.000000000 +0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -32,4 +32,10 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ INCLUDES=`echo "$INCLUDES" | sed "s|-I@PREFIX@/include ||g"`
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ INCLUDES="$INCLUDES -I@PREFIX@/include"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ LDFLAGS=`echo "$LDFLAGS" | sed "s|-L@PREFIX@/lib ||g"`
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -L@PREFIX@/lib"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/php/files/patch-php55-ext-openssl-config.m4.diff b/lang/php/files/patch-php55-ext-openssl-config.m4.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index eaa5d1c04f8..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/php/files/patch-php55-ext-openssl-config.m4.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,13 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- ext/openssl/config.m4.orig 2019-01-09 17:54:13.000000000 +0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ ext/openssl/config.m4 2019-05-11 16:52:27.000000000 +0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -32,4 +32,10 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ], [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ INCLUDES=`echo "$INCLUDES" | sed "s|-I@PREFIX@/include ||g"`
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ INCLUDES="$INCLUDES -I@PREFIX@/include"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ LDFLAGS=`echo "$LDFLAGS" | sed "s|-L@PREFIX@/lib ||g"`
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -L@PREFIX@/lib"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/php/files/patch-php56-ext-openssl-config.m4.diff b/lang/php/files/patch-php56-ext-openssl-config.m4.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index b88cdd8704f..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/php/files/patch-php56-ext-openssl-config.m4.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,13 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- ext/openssl/config.m4.orig 2019-01-09 17:54:13.000000000 +0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ ext/openssl/config.m4 2019-05-11 16:52:27.000000000 +0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -32,4 +32,10 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if test "$PHP_SYSTEM_CIPHERS" != "no"; then
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_DEFINE(USE_OPENSSL_SYSTEM_CIPHERS,1,[ Use system default cipher list instead of hardcoded value ])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ INCLUDES=`echo "$INCLUDES" | sed "s|-I@PREFIX@/include ||g"`
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ INCLUDES="$INCLUDES -I@PREFIX@/include"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ LDFLAGS=`echo "$LDFLAGS" | sed "s|-L@PREFIX@/lib ||g"`
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -L@PREFIX@/lib"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span></pre><pre style='margin:0'>
</pre>