<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">This causes cargo to fail to build with -j being unrecognized.<div class=""><br class=""></div><div class="">---> Building cargo<br class="">Executing: cd "/opt/local/var/macports/build/_Users_jeremy_src_macports_macports-ports_devel_cargo/cargo/work/cargo-0.25.0" && /opt/local/var/macports/build/_Users_jeremy_src_macports_macports-ports_devel_cargo/cargo/work/cargo-0.24.0-x86_64-apple-darwin/cargo/bin/cargo -j4 --release -j4 <br class="">error: Unknown flag: '-j'<br class=""><br class="">Usage:<br class=""> cargo <command> [<args>...]<br class=""> cargo [options]<br class="">Command failed: cd "/opt/local/var/macports/build/_Users_jeremy_src_macports_macports-ports_devel_cargo/cargo/work/cargo-0.25.0" && /opt/local/var/macports/build/_Users_jeremy_src_macports_macports-ports_devel_cargo/cargo/work/cargo-0.24.0-x86_64-apple-darwin/cargo/bin/cargo -j4 --release -j4 <br class=""><br class=""></div><div class=""><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Mar 26, 2018, at 11:51 PM, Rainer Müller <<a href="mailto:raimue@macports.org" class="">raimue@macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><pre style="margin:0" class="">Rainer Müller (raimue) pushed a commit to branch master
in repository macports-base.
</pre><p class=""><a href="https://github.com/macports/macports-base/commit/d1271bcdd33efd3a64d62cdc9aa35acc9a06cad0" class="">https://github.com/macports/macports-base/commit/d1271bcdd33efd3a64d62cdc9aa35acc9a06cad0</a></p>
<pre style="white-space: pre; background: #F8F8F8" class="">The following commit(s) were added to refs/heads/master by this push:
<span style="display:block; white-space:pre;color:#404040;" class=""> new d1271bc portbuild: Pass -j for parallel builds to cargo
</span>d1271bc is described below
<span style="display:block; white-space:pre;color:#808000;" class="">commit d1271bcdd33efd3a64d62cdc9aa35acc9a06cad0
</span>Author: Rainer Müller <<a href="mailto:raimue@macports.org" class="">raimue@macports.org</a>>
AuthorDate: Tue Mar 27 08:50:41 2018 +0200
<span style="display:block; white-space:pre;color:#404040;" class=""> portbuild: Pass -j for parallel builds to cargo
</span><span style="display:block; white-space:pre;color:#404040;" class="">
</span><span style="display:block; white-space:pre;color:#404040;" class=""> cargo defaults to building in parallel, but this will respect
</span><span style="display:block; white-space:pre;color:#404040;" class=""> buildmakejobs set in macports.conf
</span>---
src/port1.0/portbuild.tcl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
<span style="display:block; white-space:pre;color:#808080;" class="">diff --git a/src/port1.0/portbuild.tcl b/src/port1.0/portbuild.tcl
</span><span style="display:block; white-space:pre;color:#808080;" class="">index a8b84ea..1d2048f 100644
</span><span style="display:block; white-space:pre;background:#e0e0ff;" class="">--- a/src/port1.0/portbuild.tcl
</span><span style="display:block; white-space:pre;background:#e0e0ff;" class="">+++ b/src/port1.0/portbuild.tcl
</span><span style="display:block; white-space:pre;background:#e0e0e0;" class="">@@ -173,7 +173,11 @@ proc portbuild::build_getjobsarg {args} {
</span> return ""
}
<span style="display:block; white-space:pre;background:#ffe0e0;" class="">- if {![exists build.jobs] || !([string match "*make*" [option build.cmd]] || [string match "*ninja*" [option build.cmd]] || [string match "*scons*" [option build.cmd]])} {
</span><span style="display:block; white-space:pre;background:#e0ffe0;" class="">+ if {![exists build.jobs] || \
</span><span style="display:block; white-space:pre;background:#e0ffe0;" class="">+ !([string match "*make*" [option build.cmd]] || \
</span><span style="display:block; white-space:pre;background:#e0ffe0;" class="">+ [string match "*ninja*" [option build.cmd]] || \
</span><span style="display:block; white-space:pre;background:#e0ffe0;" class="">+ [string match "*scons*" [option build.cmd]] || \
</span><span style="display:block; white-space:pre;background:#e0ffe0;" class="">+ [string match "*cargo*" [option build.cmd]])} {
</span> return ""
}
set jobs [option build.jobs]
</pre><pre style="margin:0" class="">
</pre>
</div></blockquote></div><br class=""></div></div></body></html>