<pre style='margin:0'>
MarcusCalhoun-Lopez pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/6d7a72a0b8befafc8c04cc814092c5c23b0f3c7b">https://github.com/macports/macports-ports/commit/6d7a72a0b8befafc8c04cc814092c5c23b0f3c7b</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 6d7a72a0b8befafc8c04cc814092c5c23b0f3c7b
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Thu Jan 12 03:00:10 2017 -0700
<span style='display:block; white-space:pre;color:#404040;'> qmake5 PG: allow override of cache file location
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Cache file .qmake.cache must be at "top level."
</span><span style='display:block; white-space:pre;color:#404040;'> ${configure.dir} is a good guess but might be wrong.
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes https://trac.macports.org/ticket/53248
</span>---
_resources/port1.0/group/qmake5-1.0.tcl | 5 +++--
aqua/qt5/Portfile | 3 +++
aqua/qt55/Portfile | 3 +++
3 files changed, 9 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/qmake5-1.0.tcl b/_resources/port1.0/group/qmake5-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index a0f2a53..1953560 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/qmake5-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/qmake5-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -37,9 +37,10 @@
</span> PortGroup qt5 1.0
PortGroup active_variants 1.1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-options qt5.add_spec qt5.debug_variant
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options qt5.add_spec qt5.debug_variant qt5.top_level
</span> default qt5.add_spec yes
default qt5.debug_variant yes
<span style='display:block; white-space:pre;background:#e0ffe0;'>+default qt5.top_level {${configure.dir}}
</span>
# with the -r option, the examples do not install correctly (no source code)
# the install_sources target is not created in the Makefile(s)
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -80,7 +81,7 @@ pre-configure {
</span> # 2) some ports (e.g. py-pyqt5 py-qscintilla2) call qmake indirectly and
# do not pass on the configure.args values
#
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set cache [open "${configure.dir}/.qmake.cache" w 0644]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cache [open "${qt5.top_level}/.qmake.cache" w 0644]
</span> puts ${cache} "if(${qt_qmake_spec_64}) {"
puts ${cache} " QT_ARCH=x86_64"
puts ${cache} " QT_TARGET_ARCH=x86_64"
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/qt5/Portfile b/aqua/qt5/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 7a1d663..5c99290 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/aqua/qt5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/qt5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1292,6 +1292,9 @@ foreach {sql_names sql_info} [array get sql_plugins] {
</span> configure.dir ${worksrcpath}/src/plugins/sqldrivers/${driver}
build.dir ${configure.dir}
destroot.dir ${configure.dir}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # see https://trac.macports.org/ticket/53248
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ qt5.top_level ${worksrcpath}
</span> }
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/qt55/Portfile b/aqua/qt55/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8eab5a2..c1c8fc8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/aqua/qt55/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/qt55/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1305,6 +1305,9 @@ foreach {sql_names sql_info} [array get sql_plugins] {
</span> build.dir ${configure.dir}
destroot.dir ${configure.dir}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # see https://trac.macports.org/ticket/53248
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ qt5.top_level ${worksrcpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # see #52200
# see https://codereview.qt-project.org/#/c/164673/
patchfiles-append patch-xcrun.diff
</pre><pre style='margin:0'>
</pre>