From 865a26cedcfebdaeaba36ce83ea5cf687e56fefd Mon Sep 17 00:00:00 2001 From: Alex Band Date: Wed, 3 Jul 2024 10:43:14 +0200 Subject: [PATCH] Remove CentOS 6 instructions --- doc/manual/source/building-from-source.rst | 49 +++++++--------------- 1 file changed, 16 insertions(+), 33 deletions(-) diff --git a/doc/manual/source/building-from-source.rst b/doc/manual/source/building-from-source.rst index e66ec7d8..e99f9621 100644 --- a/doc/manual/source/building-from-source.rst +++ b/doc/manual/source/building-from-source.rst @@ -11,9 +11,8 @@ Rust """" The Rust compiler runs on, and compiles to, a great number of platforms, -though not all of them are equally supported. The official `Rust -Platform Support `_ -page provides an overview of the various support levels. +though not all of them are equally supported. The official `Rust Platform +Support`_ page provides an overview of the various support levels. While some system distributions include Rust as system packages, Krill relies on a relatively new version of Rust, currently |rustversion| or @@ -35,19 +34,22 @@ You can update your Rust installation later by running: rustup update -For some platforms, :command:`rustup` cannot provide binary releases to install -directly. The `Rust Platform Support -`_ page lists -several platforms where official binary releases are not available, -but Rust is still guaranteed to build. For these platforms, automated -tests are not run so it’s not guaranteed to produce a working build, but -they often work to quite a good degree. +Platform Specific Instructions +------------------------------ -One such example that is especially relevant for the routing community -is OpenBSD. On this platform, `patches +For some platforms, :program:`rustup` cannot provide binary releases to +install directly. The `Rust Platform Support`_ page lists +several platforms where official binary releases are not available, but Rust +is still guaranteed to build. For these platforms, automated tests are not +run so it’s not guaranteed to produce a working build, but they often work to +quite a good degree. + +.. _Rust Platform Support: https://doc.rust-lang.org/nightly/rustc/platform-support.html + +On OpenBSD, `patches `_ are -required to get Rust running correctly, but these are well maintained -and offer the latest version of Rust quite quickly. +required to get Rust running correctly, but these are well maintained and +offer the latest version of Rust quite quickly. Rust can be installed on OpenBSD by running: @@ -55,25 +57,6 @@ Rust can be installed on OpenBSD by running: pkg_add rust -Another example where the standard installation method does not work is -CentOS 6, where you will end up with a long list of error messages about -missing assembler instructions. This is because the assembler shipped with -CentOS 6 is too old. - -You can get the necessary version by installing the `Developer Toolset 6 -`_ from the -`Software Collections -`_ repository. On -a virgin system, you can install Rust using these steps: - -.. code-block:: bash - - sudo yum install centos-release-scl - sudo yum install devtoolset-6 - scl enable devtoolset-6 bash - curl https://sh.rustup.rs -sSf | sh - source $HOME/.cargo/env - C Toolchain """""""""""