[Slackbuilds-users] Building rust with LOCAL_BOOTSTRAP=yes fails

Andrzej Telszewski atelszewski at gmail.com
Thu Jun 15 23:24:59 UTC 2017


On 16/06/17 01:03, Andrew Clemons wrote:
> I can reproduce. For me, removing `--verbose` in the call to `x.py
> build` allows the build to complete. If that also works for you, I'll
> submit an update which this change, although it's not clear to me from
> a cursory read of the source why this should cause it to use the wrong
> path to cargo.
> 
> Thanks,
> Andrew

I just managed to build with the following change:

diff --git a/development/rust/rust.SlackBuild 
b/development/rust/rust.SlackBuild
index 013687e..06a510f 100644
--- a/development/rust/rust.SlackBuild
+++ b/development/rust/rust.SlackBuild
@@ -108,6 +108,8 @@ EOF

  if [ "$LOCAL_BOOTSTRAP" = "yes" ] ; then
    sed -i "s|^\(vendor = true\)$|\1\nrustc = \"/usr/bin/rustc\"\ncargo 
= \"/usr/bin/cargo\"|" config.toml
+  mkdir -p build/x86_64-unknown-linux-gnu/stage0/bin
+  (cd build/x86_64-unknown-linux-gnu/stage0/bin && ln -s /usr/bin/cargo )
  fi

  chown -R root:root .


But I have no idea it that's correct solution ;-)


-- 
Best regards,
Andrzej Telszewski


More information about the SlackBuilds-users mailing list