On Fri, Jan 25, 2019 at 07:13:43PM -0000, BLFS Trac wrote:
> #11521: Upgrade rustc for firefox-65.0
> -------------------------+-----------------------
>  Reporter:  ken@…        |       Owner:  ken@…
>      Type:  enhancement  |      Status:  assigned
>  Priority:  normal       |   Milestone:  8.4
> Component:  BOOK         |     Version:  SVN
>  Severity:  normal       |  Resolution:
>  Keywords:               |
> -------------------------+-----------------------
> 
> Comment (by bdubbs):
> 
>  Using input from Ken, I've simplified the proposed rust page:
> 
>  http://www.linuxfromscratch.org/~bdubbs/blfs-book/general/rust.html
> 
>  This is the same location as the previous comment.

Still haven't got round to looking yet, but successful local tests
on this 8.3 system.  Details of my process follow.  But two things
to note:

(i.) When changing the /opt/rustc symlink from one version to
another, delete the old symlink first otherwise things get VERY
confusing (ls -l shows symlinks pointing to themselves if remade
with ln -sfv /opt/rustc-1.xx.y /opt/rustc).

(ii.) When changing the symlink, ldconfig does need to be rerun
otherwise even rustc --version fails.

Test process:

For each version, as root mkdir /opt/rustc-1.xx.y
If desired, symlink /opt/rustc to that now - can also wait until
after the install

Build, install.

Ensure the symlink points to the latest install, run ldconfig.


Things I tested:

Build, test. install 1.32.0 on 8.3. As noted, a few extra test
failures from the old gdb (8.1.1) on that system.

 Use 1.32.0 to build cbindgen, ok.  On this system cairo is still
1.14 so librsvg versions using rust cannot be built.  The installed
cbindgen is too old for firefox-65 so I started the build for 64.0.2
and stopped it when it got to reticulating splines.  Checking the
output, rustc was used as expected.

 And without setting the PATH, the installed rustc-1.29.1 from /usr
is again used.

Then I built and installed 1.31.1 (did not run tests) - the rustc
symlink was still pointing to 1.32.0.  After it had installed, I had
the fun with ln -s. Once /opt/rustc was pointing to 1.31.1, a quick
test showed ldconfig needed to be run (as I expected).

For 1.31.1 I merely tested that cbindgen builds.

Finally, set the symlink back to 1.32.0.  Again, ldconfig.  Tested
firefox-64.0.2 as before, confirmed it was using 1.32.0.

ĸen
-- 

thread 'main' panicked at 'giraffe',
/tmp/rustc-1.32.0-src/src/test/run-fail/while-panic.rs:17:13
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to