<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/9e5c3a0e82e17ea879e1c12af936d6c8df7a33e8">https://github.com/macports/macports-ports/commit/9e5c3a0e82e17ea879e1c12af936d6c8df7a33e8</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 9e5c3a0e82e clamav: tweak older systems patch
</span>9e5c3a0e82e is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 9e5c3a0e82e17ea879e1c12af936d6c8df7a33e8
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Sat Sep 18 10:56:27 2021 -0700

<span style='display:block; white-space:pre;color:#404040;'>    clamav: tweak older systems patch
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    and remove two new switches from included unrar build
</span><span style='display:block; white-space:pre;color:#404040;'>    that are not supported on older gcc versions
</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/63505
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    no PR as this change only affects very old macOS systems
</span><span style='display:block; white-space:pre;color:#404040;'>    that few can test.
</span>---
 sysutils/clamav/Portfile | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/clamav/Portfile b/sysutils/clamav/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8a35cec0ea8..5ac811a57f8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/clamav/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/clamav/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -46,15 +46,22 @@ depends_lib             port:libiconv \
</span>                   port:libtool
 
 ## older systems support
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# use linux version of openssl cert util on systems < 10.7 that don't support the macOS version
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# ./shared/linux/cert_util_linux.c -> ./shared/mac/cert_util_mac.m
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# passes all tests. See: https://trac.macports.org/ticket/59168
</span> post-extract {
  if { ${os.platform} eq "darwin" && ${os.major} < 11 } {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   # use linux version of openssl cert util on systems < 10.7 that don't support the macOS version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   # ./common/linux/cert_util_linux.c -> ./common/mac/cert_util_mac.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   # passes all tests. See: https://trac.macports.org/ticket/59168
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     ui_msg "replacing mac security with linux security"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    delete ${worksrcpath}/shared/mac/cert_util_mac.m
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    copy   ${worksrcpath}/shared/linux/cert_util_linux.c \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-           ${worksrcpath}/shared/mac/cert_util_mac.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    delete ${worksrcpath}/common/mac/cert_util_mac.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    copy   ${worksrcpath}/common/linux/cert_util_linux.c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+           ${worksrcpath}/common/mac/cert_util_mac.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # remove two switchs not supported by the older gcc versions often used on these systems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace "s/-Wno-logical-op-parentheses//g" ${worksrcpath}/libclamunrar/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace "s/-Wno-dangling-else//g"          ${worksrcpath}/libclamunrar/CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>   }
 }
 
</pre><pre style='margin:0'>

</pre>