<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/4981e70dab73cc23498b4e4990f58524a6fd957b">https://github.com/macports/macports-ports/commit/4981e70dab73cc23498b4e4990f58524a6fd957b</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 4981e70dab7 portgroups: adapt to muniversal changes
</span>4981e70dab7 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 4981e70dab73cc23498b4e4990f58524a6fd957b
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sun Jan 31 07:04:42 2021 +1100
<span style='display:block; white-space:pre;color:#404040;'> portgroups: adapt to muniversal changes
</span>---
_resources/port1.0/group/cargo_fetch-1.0.tcl | 22 +++-------------------
_resources/port1.0/group/octave-1.0.tcl | 20 ++------------------
_resources/port1.0/group/qt5-1.0.tcl | 24 ++++--------------------
3 files changed, 9 insertions(+), 57 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/cargo_fetch-1.0.tcl b/_resources/port1.0/group/cargo_fetch-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 627db66a22a..1c6d23a0dff 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/cargo_fetch-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/cargo_fetch-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -243,7 +243,7 @@ foreach stage {configure build destroot} {
</span>
# do not force all Portfiles to switch from ${stage}.env to ${stage}.env-append
proc cargo.environments {} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- global configure.cc configure.cxx subport build_arch universal_archs merger_configure_env merger_build_env merger_destroot_env worksrcpath
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global configure.cc configure.cxx subport build_arch configure.universal_archs merger_configure_env merger_build_env merger_destroot_env worksrcpath
</span> foreach stage {build destroot} {
${stage}.env-delete CC=${configure.cc} \
CXX=${configure.cxx}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -268,7 +268,7 @@ proc cargo.environments {} {
</span> }
} else {
foreach stage {configure build destroot} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach arch ${universal_archs} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach arch ${configure.universal_archs} {
</span> lappend merger_${stage}_env(${arch}) \
CARGO_BUILD_TARGET=[cargo.rust_platform ${arch}]
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -278,21 +278,5 @@ proc cargo.environments {} {
</span> }
port::register_callback cargo.environments
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# override universal_setup found in portutil.tcl so it uses muniversal PortGroup
</span> # see https://trac.macports.org/ticket/51643 for a similar case
<span style='display:block; white-space:pre;background:#ffe0e0;'>-proc universal_setup {args} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[variant_exists universal]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "universal variant already exists, so not adding the default one"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {[exists universal_variant] && ![option universal_variant]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "universal_variant is false, so not adding the default universal variant"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {[exists use_xmkmf] && [option use_xmkmf]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "using xmkmf, so not adding the default universal variant"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {![exists os.universal_supported] || ![option os.universal_supported]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "OS doesn't support universal builds, so not adding the default universal variant"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {[llength [option supported_archs]] == 1} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "only one arch supported, so not adding the default universal variant"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "adding universal variant via PortGroup muniversal"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- uplevel "PortGroup muniversal 1.0"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup muniversal 1.0
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/octave-1.0.tcl b/_resources/port1.0/group/octave-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 027b5d23d43..57e2ace3ebb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/octave-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/octave-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -20,25 +20,9 @@ default octave.config_h {no}
</span> # some header files from Octave require C++-11
compiler.cxx_standard 2011
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# override universal_setup found in portutil.tcl so it uses muniversal PortGroup
</span> # see https://trac.macports.org/ticket/51643
<span style='display:block; white-space:pre;background:#ffe0e0;'>-proc universal_setup {args} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[variant_exists universal]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "universal variant already exists, so not adding the default one"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {[exists universal_variant] && ![option universal_variant]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "universal_variant is false, so not adding the default universal variant"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {[exists use_xmkmf] && [option use_xmkmf]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "using xmkmf, so not adding the default universal variant"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {![exists os.universal_supported] || ![option os.universal_supported]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "OS doesn't support universal builds, so not adding the default universal variant"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {[llength [option supported_archs]] == 1} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "only one arch supported, so not adding the default universal variant"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "adding universal variant via PortGroup muniversal"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- uplevel "PortGroup muniversal 1.0"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- uplevel "default universal_archs_supported {i386 x86_64}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup muniversal 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default universal_archs_supported {i386 x86_64}
</span>
proc octave.setup {module version} {
global octave.module
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/qt5-1.0.tcl b/_resources/port1.0/group/qt5-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 01214982284..00325a506aa 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/qt5-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/qt5-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -684,30 +684,14 @@ if {[vercmp ${qt5.version} 5.9]>=0} {
</span> # no universal binary support in Qt 5 versions < 5.9
# see http://lists.qt-project.org/pipermail/interest/2012-December/005038.html
# and https://bugreports.qt.io/browse/QTBUG-24952
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # override universal_setup found in portutil.tcl so it uses muniversal PortGroup
</span> # see https://trac.macports.org/ticket/51643
<span style='display:block; white-space:pre;background:#ffe0e0;'>- proc universal_setup {args} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[variant_exists universal]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "universal variant already exists, so not adding the default one"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {[exists universal_variant] && ![option universal_variant]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "universal_variant is false, so not adding the default universal variant"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {[exists use_xmkmf] && [option use_xmkmf]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "using xmkmf, so not adding the default universal variant"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {![exists os.universal_supported] || ![option os.universal_supported]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "OS doesn't support universal builds, so not adding the default universal variant"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {[llength [option supported_archs]] == 1} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "only one arch supported, so not adding the default universal variant"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "adding universal variant via PortGroup muniversal"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- uplevel "PortGroup muniversal 1.0"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- uplevel "default universal_archs_supported {\"i386 x86_64\"}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup muniversal 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default universal_archs_supported {i386 x86_64}
</span>
# standard destroot environment
pre-destroot {
global merger_destroot_env
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if { ![option universal_variant] || ![variant_isset universal] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![variant_exists universal] || ![variant_isset universal]} {
</span> destroot.env-append \
INSTALL_ROOT=${destroot}
} else {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -726,7 +710,7 @@ default qt_qmake_spec {[qt5pg::get_default_spec]}
</span> namespace eval qt5pg {
proc get_default_spec {} {
global configure.build_arch qt_qmake_spec_32 qt_qmake_spec_64
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if { ![option universal_variant] || ![variant_isset universal] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![variant_exists universal] || ![variant_isset universal]} {
</span> if { ${configure.build_arch} eq "i386" } {
return ${qt_qmake_spec_32}
} else {
</pre><pre style='margin:0'>
</pre>