<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/f7e92413e69a4e84bf2d2fb2c53671e4df282e12">https://github.com/macports/macports-ports/commit/f7e92413e69a4e84bf2d2fb2c53671e4df282e12</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 f7e92413e69 python*: preserve mtime of sysconfig data
</span>f7e92413e69 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit f7e92413e69a4e84bf2d2fb2c53671e4df282e12
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Thu Aug 20 18:40:48 2020 +1000

<span style='display:block; white-space:pre;color:#404040;'>    python*: preserve mtime of sysconfig data
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    This should prevent rebuilding things unnecessarily in the destroot
</span><span style='display:block; white-space:pre;color:#404040;'>    phase.
</span>---
 lang/python27/Portfile       | 5 +++++
 lang/python34/Portfile       | 5 +++++
 lang/python35/Portfile       | 5 +++++
 lang/python36/Portfile       | 5 +++++
 lang/python37/Portfile       | 5 +++++
 lang/python38/Portfile       | 5 +++++
 lang/python39-devel/Portfile | 5 +++++
 7 files changed, 35 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python27/Portfile b/lang/python27/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 90c0eb76a54..496820b7056 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python27/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python27/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -150,6 +150,9 @@ platform darwin {
</span> 
     post-build {
         set buildlibdir [lindex [glob -directory ${worksrcpath}/build lib.*-*-*-${branch}] 0]
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        # preserve mtime of _sysconfigdata.py to avoid rebuilding things after changing it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        set oldmtime [file mtime ${buildlibdir}/_sysconfigdata.py]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>         # change LINKFORSHARED to support dependents that incorrectly use it
         system -W ${buildlibdir} "awk -F : \
             \"/'LINKFORSHARED'/ {printf \\\"%s: '-L${framewdir}/lib/python${branch}/config\
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -161,6 +164,8 @@ platform darwin {
</span>         # remove -arch flags from the config
         reinplace -E {s|-arch [a-z0-9_]+||g} \
             ${buildlibdir}/_sysconfigdata.py
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        file mtime ${buildlibdir}/_sysconfigdata.py $oldmtime
</span>     }
 
     post-destroot {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python34/Portfile b/lang/python34/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 80beb86d5c7..98bc205afd4 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python34/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python34/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -116,6 +116,9 @@ platform darwin {
</span>     }
     post-build {
         set buildlibdir [lindex [glob -directory ${worksrcpath}/build lib.*-*-*-${branch}] 0]
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        # preserve mtime of sysconfig data file to avoid rebuilding things after changing it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        set oldmtime [file mtime ${buildlibdir}/_sysconfigdata.py]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>         # Without this, LINKFORSHARED is set to
         # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
         # (this becomes Python.framework/Versions/3.4/Python) which doesn't
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -136,6 +139,8 @@ platform darwin {
</span>         # also remove gettext overlinking
         reinplace "s|-lintl||" \
            ${buildlibdir}/_sysconfigdata.py
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        file mtime ${buildlibdir}/_sysconfigdata.py $oldmtime
</span>     }
     post-destroot {
         foreach dir { Headers Resources Python Versions/Current } {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python35/Portfile b/lang/python35/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2ab58892c61..60172a4e571 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python35/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python35/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -112,6 +112,9 @@ platform darwin {
</span>     }
     post-build {
         set buildlibdir [lindex [glob -directory ${worksrcpath}/build lib.*-*-*-${branch}] 0]
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        # preserve mtime of sysconfig data file to avoid rebuilding things after changing it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        set oldmtime [file mtime ${buildlibdir}/_sysconfigdata.py]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>         # Without this, LINKFORSHARED is set to
         # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
         # (this becomes Python.framework/Versions/3.5/Python) which doesn't
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -132,6 +135,8 @@ platform darwin {
</span>         # also remove gettext overlinking
         reinplace "s|-lintl||" \
            ${buildlibdir}/_sysconfigdata.py
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        file mtime ${buildlibdir}/_sysconfigdata.py $oldmtime
</span>     }
     post-destroot {
         foreach dir { Headers Resources Python Versions/Current } {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python36/Portfile b/lang/python36/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b70aeeadef0..37fda26361f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python36/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python36/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -104,6 +104,9 @@ platform darwin {
</span>     }
     post-build {
         set buildlibdir [lindex [glob -directory ${worksrcpath}/build lib.*-*-*-${branch}] 0]
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        # preserve mtime of sysconfig data file to avoid rebuilding things after changing it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        set oldmtime [file mtime ${buildlibdir}/_sysconfigdata_m_darwin_darwin.py]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>         # Without this, LINKFORSHARED is set to
         # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
         # (this becomes Python.framework/Versions/3.6/Python) which doesn't
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -124,6 +127,8 @@ platform darwin {
</span>         # also remove gettext overlinking
         reinplace "s|-lintl||" \
            ${buildlibdir}/_sysconfigdata_m_darwin_darwin.py
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        file mtime ${buildlibdir}/_sysconfigdata_m_darwin_darwin.py $oldmtime
</span>     }
     post-destroot {
         foreach dir { Headers Resources Python Versions/Current } {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python37/Portfile b/lang/python37/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a0339e43d26..d9a81dfde87 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python37/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python37/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -102,6 +102,9 @@ platform darwin {
</span> 
     post-build {
         set buildlibdir [lindex [glob -directory ${worksrcpath}/build lib.*-*-*-${branch}] 0]
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        # preserve mtime of sysconfig data file to avoid rebuilding things after changing it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        set oldmtime [file mtime ${buildlibdir}/_sysconfigdata_m_darwin_darwin.py]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>         # Without this, LINKFORSHARED is set to
         # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
         # (this becomes Python.framework/Versions/3.7/Python) which doesn't
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -122,6 +125,8 @@ platform darwin {
</span>         # also remove gettext overlinking
         reinplace "s|-lintl||" \
             ${buildlibdir}/_sysconfigdata_m_darwin_darwin.py
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        file mtime ${buildlibdir}/_sysconfigdata_m_darwin_darwin.py $oldmtime
</span>     }
 
     post-destroot {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python38/Portfile b/lang/python38/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 71f991d8370..ad3ae41c38c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python38/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python38/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -113,6 +113,9 @@ platform darwin {
</span> 
     post-build {
         set buildlibdir [lindex [glob -directory ${worksrcpath}/build lib.*-*-*-${branch}] 0]
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        # preserve mtime of sysconfig data file to avoid rebuilding things after changing it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        set oldmtime [file mtime ${buildlibdir}/_sysconfigdata__darwin_darwin.py]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>         # Without this, LINKFORSHARED is set to
         # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
         # (this becomes Python.framework/Versions/3.8/Python) which doesn't
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -133,6 +136,8 @@ platform darwin {
</span>         # also remove gettext overlinking
         reinplace "s|-lintl||" \
             ${buildlibdir}/_sysconfigdata__darwin_darwin.py
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        file mtime ${buildlibdir}/_sysconfigdata__darwin_darwin.py $oldmtime
</span>     }
 
     post-destroot {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python39-devel/Portfile b/lang/python39-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0edaed2e583..8c117302488 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python39-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python39-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -102,6 +102,9 @@ platform darwin {
</span> 
     post-build {
         set buildlibdir [lindex [glob -directory ${worksrcpath}/build lib.*-*-*-${branch}] 0]
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        # preserve mtime of sysconfig data file to avoid rebuilding things after changing it
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        set oldmtime [file mtime ${buildlibdir}/_sysconfigdata__darwin_darwin.py]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>         # Without this, LINKFORSHARED is set to
         # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
         # (this becomes Python.framework/Versions/3.9/Python) which doesn't
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -122,6 +125,8 @@ platform darwin {
</span>         # also remove gettext overlinking
         reinplace "s|-lintl||" \
             ${buildlibdir}/_sysconfigdata__darwin_darwin.py
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        file mtime ${buildlibdir}/_sysconfigdata__darwin_darwin.py $oldmtime
</span>     }
 
     post-destroot {
</pre><pre style='margin:0'>

</pre>