<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/37f86c2e717fbbbb34d786927d9c354a7cfacbc8">https://github.com/macports/macports-ports/commit/37f86c2e717fbbbb34d786927d9c354a7cfacbc8</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 37f86c2e717 perl5: avoid rebuilding in destroot phase
</span>37f86c2e717 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 37f86c2e717fbbbb34d786927d9c354a7cfacbc8
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Thu Jul 1 23:04:18 2021 +1000
<span style='display:block; white-space:pre;color:#404040;'> perl5: avoid rebuilding in destroot phase
</span>---
lang/perl5/Portfile | 10 ++++++++++
1 file changed, 10 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/perl5/Portfile b/lang/perl5/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 6d2f5864f0a..275ad63a5c1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/perl5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/perl5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -207,6 +207,12 @@ foreach {perl5.v perl5.subversion perl5.revision perl5.rmd160 perl5.sha256 perl5
</span> }
post-build {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # preserve file mtimes to avoid rebuilding
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set mtime_files [list config.h lib/Config_heavy.pl lib/Config.pm]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f $mtime_files {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set oldmtimes($f) [file mtime ${worksrcpath}/${f}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> reinplace -E {s/-arch [a-z0-9_]+//g} \
${worksrcpath}/lib/Config_heavy.pl
reinplace -E {s/-mmacosx-version-min=[0-9.]+//g} \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -220,6 +226,10 @@ foreach {perl5.v perl5.subversion perl5.revision perl5.rmd160 perl5.sha256 perl5
</span> ${worksrcpath}/config.h
reinplace -E {s|-Wl,-syslibroot,[^[:space:]]+\.sdk||g} \
${worksrcpath}/lib/Config_heavy.pl
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f $mtime_files {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file mtime ${worksrcpath}/${f} $oldmtimes($f)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
test.run yes
</pre><pre style='margin:0'>
</pre>