<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/9577242fe398d5944746aaaa7288ffde76394441">https://github.com/macports/mpbb/commit/9577242fe398d5944746aaaa7288ffde76394441</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 9577242fe398d5944746aaaa7288ffde76394441
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sun Jan 2 20:39:34 2022 +1100
<span style='display:block; white-space:pre;color:#404040;'> dependencies.tcl: check known_fail before building
</span>---
tools/dependencies.tcl | 9 +++++++++
1 file changed, 9 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/tools/dependencies.tcl b/tools/dependencies.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 013a7a0..8846e19 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/tools/dependencies.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/tools/dependencies.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -419,6 +419,15 @@ proc install_dep {ditem} {
</span> # No archive. This should be rare, but can happen in some
# cases. Will build from source.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # The known_fail case should normally be caught before now, but
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # it's quick and easy to check and may save a build.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[info exists depinfo(known_fail)] && [string is true -strict $depinfo(known_fail)]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts stderr "Dependency '$depinfo(name)' with variants '$depinfo(canonical_active_variants)' is known to fail, aborting."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts $::log_status_dependencies {[FAIL] (known_fail)}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts $::log_subports_progress "Building '$::portname' ... \[ERROR\] (dependency '$depinfo(name)' known to fail) maintainers: [get_maintainers $::portname $depinfo(name)]."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exit 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Fetch and checksum the distfiles
# (Bad things happen if you run fetch and checksum separately on the same mport, because
# init functions get called twice and add duplicate distfiles. Yes, that's a bug.)
</pre><pre style='margin:0'>
</pre>