<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/b97b8e205166375985c296b988b54b5ab24f04e8">https://github.com/macports/macports-base/commit/b97b8e205166375985c296b988b54b5ab24f04e8</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 b97b8e2 Set cxx_stdlib in registry when updating base
</span>b97b8e2 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit b97b8e205166375985c296b988b54b5ab24f04e8
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Wed May 9 16:22:28 2018 +1000
<span style='display:block; white-space:pre;color:#404040;'> Set cxx_stdlib in registry when updating base
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Best to do this for all ports after installing base, then we know the
</span><span style='display:block; white-space:pre;color:#404040;'> information is in the registry for all users right away.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Moving the rev-upgrade code that does this to a separate proc so it can
</span><span style='display:block; white-space:pre;color:#404040;'> be called separately.
</span>---
src/cxx_stdlib_overridden.tcl.in | 7 +++++
src/macports1.0/macports.tcl | 66 ++++++++++++++++++++++++----------------
2 files changed, 46 insertions(+), 27 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/cxx_stdlib_overridden.tcl.in b/src/cxx_stdlib_overridden.tcl.in
</span><span style='display:block; white-space:pre;color:#808080;'>index 7c116ec..1774947 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/cxx_stdlib_overridden.tcl.in
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/cxx_stdlib_overridden.tcl.in
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -47,4 +47,11 @@ foreach portname $known_ports {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Update all other ports in case the user turned off revupgrade_autorun
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[info exists macports::ui_options(progress_generic)]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ macports::revupgrade_update_cxx_stdlib yes $macports::ui_options(progress_generic)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ macports::revupgrade_update_cxx_stdlib no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> exit 0
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/macports1.0/macports.tcl b/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 85bcd01..eaac98d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4670,34 +4670,14 @@ proc macports::revupgrade_update_binary {fancy_output {revupgrade_progress ""}}
</span> }
##
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# Helper function for rev-upgrade. Do not consider this to be part of public
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# API. Use macports::revupgrade instead.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Helper function for rev-upgrade. Sets the 'cxx_stdlib' flag to the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# appropriate value for ports in the registry that don't have it set.
</span> #
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# @param broken_port_counts_name
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# The name of a Tcl array that's being used to store the number of times
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# a port has been rebuilt so far.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# @param opts
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# A serialized version of a Tcl array that contains options for
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# MacPorts. Options used by this method are
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# ports_rev-upgrade_id-loadcmd-check, a boolean indicating whether the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# ID loadcommand of binaries should also be checked during rev-upgrade
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# and ports_dryrun, a boolean indicating whether no action should be
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# taken.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# @return 1 if ports were rebuilt and this function should be called again,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# 0 otherwise.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-proc macports::revupgrade_scanandrebuild {broken_port_counts_name opts} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- upvar $broken_port_counts_name broken_port_counts
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- array set options $opts
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set fancy_output [expr {![macports::ui_isset ports_debug] && [info exists macports::ui_options(progress_generic)]}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {$fancy_output} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set revupgrade_progress $macports::ui_options(progress_generic)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set revupgrade_progress ""
</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:#ffe0e0;'>- revupgrade_update_binary $fancy_output $revupgrade_progress
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# @param fancy_output
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Boolean, whether to use a progress display callback
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# @param revupgrade_progress
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Progress display callback name
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc macports::revupgrade_update_cxx_stdlib {fancy_output {revupgrade_progress ""}} {
</span> set maybe_cxx_ports [registry::entry search state installed cxx_stdlib -null]
set maybe_cxx_len [llength $maybe_cxx_ports]
if {$maybe_cxx_len > 0} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4725,6 +4705,38 @@ proc macports::revupgrade_scanandrebuild {broken_port_counts_name opts} {
</span> $revupgrade_progress finish
}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+##
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Helper function for rev-upgrade. Do not consider this to be part of public
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# API. Use macports::revupgrade instead.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# @param broken_port_counts_name
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# The name of a Tcl array that's being used to store the number of times
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# a port has been rebuilt so far.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# @param opts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# A serialized version of a Tcl array that contains options for
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# MacPorts. Options used by this method are
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# ports_rev-upgrade_id-loadcmd-check, a boolean indicating whether the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# ID loadcommand of binaries should also be checked during rev-upgrade
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# and ports_dryrun, a boolean indicating whether no action should be
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# taken.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# @return 1 if ports were rebuilt and this function should be called again,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# 0 otherwise.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc macports::revupgrade_scanandrebuild {broken_port_counts_name opts} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ upvar $broken_port_counts_name broken_port_counts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ array set options $opts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set fancy_output [expr {![macports::ui_isset ports_debug] && [info exists macports::ui_options(progress_generic)]}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$fancy_output} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set revupgrade_progress $macports::ui_options(progress_generic)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set revupgrade_progress ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revupgrade_update_binary $fancy_output $revupgrade_progress
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revupgrade_update_cxx_stdlib $fancy_output $revupgrade_progress
</span>
set broken_files {}
set binaries [registry::file search active 1 binary 1]
</pre><pre style='margin:0'>
</pre>