<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/6346d572f5916a33ea7a1657243870f3ca17f688">https://github.com/macports/macports-ports/commit/6346d572f5916a33ea7a1657243870f3ca17f688</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 6346d572f59 mysql: Fix zlib link in mysql_config Fixes a bug in mysql8 and mysql8.1 which incorrecly puts a link to zlib and not libz or lz in mysql_config
</span>6346d572f59 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 6346d572f5916a33ea7a1657243870f3ca17f688
</span>Author: jhoyt4 <john.hoyt@gmail.com>
AuthorDate: Sun Aug 27 16:05:55 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> mysql: Fix zlib link in mysql_config
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes a bug in mysql8 and mysql8.1 which incorrecly puts
</span><span style='display:block; white-space:pre;color:#404040;'> a link to zlib and not libz or lz in mysql_config
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://bugs.mysql.com/bug.php?id=111011
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/68002
</span>---
databases/mysql8/Portfile | 8 ++++++--
databases/mysql81/Portfile | 8 ++++++--
2 files changed, 12 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/mysql8/Portfile b/databases/mysql8/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 4d64bf881fb..d2ba3873e44 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/mysql8/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/mysql8/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -15,8 +15,8 @@ maintainers {gmail.com:herby.gillot @herbygillot} \
</span> openmaintainer
# Set revision_client and revision_server to 0 on version bump.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set revision_client 3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set revision_server 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set revision_client 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set revision_server 2
</span>
set name_mysql ${name}
set version_branch [join [lrange [split ${version} .] 0 1] .]
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -220,6 +220,10 @@ if {$subport eq $name} {
</span> ln -s -f ../mysql/libprotobuf-lite.3.19.4.dylib \
${destroot}${prefix}/lib/${name_mysql}/plugin/libprotobuf-lite.3.19.4.dylib
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Work around bad zlib linker flags in `mysql_config`.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://bugs.mysql.com/bug.php?id=111011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/68002
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q "s|-lzlib|-lz|g" ${destroot}${prefix}/lib/${name_mysql}/bin/mysql_config
</span> }
post-install {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/mysql81/Portfile b/databases/mysql81/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2705871fdbf..d47941812cd 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/mysql81/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/mysql81/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -15,8 +15,8 @@ maintainers {gmail.com:herby.gillot @herbygillot} \
</span> openmaintainer
# Set revision_client and revision_server to 0 on version bump.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set revision_client 3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set revision_server 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set revision_client 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set revision_server 2
</span>
set name_mysql ${name}
set version_branch [join [lrange [split ${version} .] 0 1] .]
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -220,6 +220,10 @@ if {$subport eq $name} {
</span> ln -s -f ../mysql/libprotobuf-lite.3.19.4.dylib \
${destroot}${prefix}/lib/${name_mysql}/plugin/libprotobuf-lite.3.19.4.dylib
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Work around bad zlib linker flags in `mysql_config`.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://bugs.mysql.com/bug.php?id=111011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/68002
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -q "s|-lzlib|-lz|g" ${destroot}${prefix}/lib/${name_mysql}/bin/mysql_config
</span> }
post-install {
</pre><pre style='margin:0'>
</pre>