<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository mpbb.
</pre>
<p><a href="https://github.com/macports/mpbb/commit/7b83efacea6da737715f33c345bc67f3f48f8341">https://github.com/macports/mpbb/commit/7b83efacea6da737715f33c345bc67f3f48f8341</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 7b83efa mpbb-cleanup: only uninstall ports in watcher builds
</span>7b83efa is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 7b83efacea6da737715f33c345bc67f3f48f8341
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Mon Dec 27 15:00:45 2021 +1100
<span style='display:block; white-space:pre;color:#404040;'> mpbb-cleanup: only uninstall ports in watcher builds
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> It's reasonably common for ports to have a number of dependencies that
</span><span style='display:block; white-space:pre;color:#404040;'> aren't used by anything else. Installing one of these ports for the
</span><span style='display:block; white-space:pre;color:#404040;'> first time performs very poorly when ports with one or less dependents
</span><span style='display:block; white-space:pre;color:#404040;'> are uninstalled between every build, as many of the deps that are
</span><span style='display:block; white-space:pre;color:#404040;'> built are immediately uninstalled, only to be installed (and
</span><span style='display:block; white-space:pre;color:#404040;'> uninstalled) again and again in subsequent builds.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Only uninstalling these ports as part of portwatcher builds should
</span><span style='display:block; white-space:pre;color:#404040;'> greatly mitigate this effect.
</span>---
mpbb-cleanup | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mpbb-cleanup b/mpbb-cleanup
</span><span style='display:block; white-space:pre;color:#808080;'>index 4684bc5..b9768b8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/mpbb-cleanup
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mpbb-cleanup
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -84,11 +84,14 @@ cleanup() {
</span> if [ -n "$("${option_prefix}/bin/port" -q echo active)" ]; then
"${option_prefix}/bin/port" -fp deactivate active
fi
<span style='display:block; white-space:pre;background:#ffe0e0;'>- echo
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- echo "----> Uninstalling unneeded ports"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # $thisdir is set by mpbb and points to the directory in which this script resides
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # shellcheck disable=SC2154
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "${option_prefix}/bin/port-tclsh" "${thisdir}/tools/uninstall-unneeded-ports.tcl"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if [[ ${BUILDBOT_BUILDERNAME:-unknown} == *-watcher ]]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "----> Uninstalling unneeded ports"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # $thisdir is set by mpbb and points to the directory in which this script resides
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # shellcheck disable=SC2154
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${option_prefix}/bin/port-tclsh" "${thisdir}/tools/uninstall-unneeded-ports.tcl"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span> if [ ! -L "${option_prefix}/var/macports/distfiles" ]; then
echo
echo "----> Deleting distfiles"
</pre><pre style='margin:0'>
</pre>