<pre style='margin:0'>
Eric A. Borisch (eborisch) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/3a5dc026ec2e59849cc45a4e21d5978b64a989a0">https://github.com/macports/macports-ports/commit/3a5dc026ec2e59849cc45a4e21d5978b64a989a0</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 3a5dc026ec2 pv: Fix detection of stat64 in Apple Silicon. (#9800)
</span>3a5dc026ec2 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 3a5dc026ec2e59849cc45a4e21d5978b64a989a0
</span>Author: mhberger <21727+mhberger@users.noreply.github.com>
AuthorDate: Wed Feb 3 09:11:58 2021 +1300

<span style='display:block; white-space:pre;color:#404040;'>    pv: Fix detection of stat64 in Apple Silicon. (#9800)
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Fixes: https://trac.macports.org/ticket/61784
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Take 7. Tidy up logic when configuring cppflags. Thanks @eborisch.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Co-authored-by: Mark Berger <mark.berger@mhb.nz>
</span>---
 sysutils/pv/Portfile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/pv/Portfile b/sysutils/pv/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e41ea637aae..34fd9caffae 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/pv/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/pv/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -33,7 +33,11 @@ configure.args      --mandir=${prefix}/share/man \
</span> 
 depends_lib         port:gettext
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${os.platform} eq "darwin" && ${os.major} != 9} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${build_arch} eq "arm64"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # For further information on why we redefine these symbols, see the trac ticket
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # https://trac.macports.org/ticket/61784#comment:4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.cppflags-append -Dfstat64=fstat -Dlstat64=lstat -Dstat64=stat
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {${os.platform} eq "darwin" && ${os.major} != 9} {
</span>     # Leopard is the only release where stat64 exists and is not deprecated.
     # Rather than updating a patch to replace each instance, use the deprecated
     # interface as long as it exists, just don't complain about it. (configure
</pre><pre style='margin:0'>

</pre>