mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-15 22:40:32 +00:00
Upgraded rustc-bootstrap from 1.72.0 to 1.73.0
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
#! /bin/bash
|
||||
|
||||
# rustc bootstrap (Chimera Linux) 1.72.0
|
||||
# Source: https://repo.chimera-linux.org/distfiles/rustc-1.72.0-x86_64-chimera-linux-musl.tar.xz
|
||||
# Source: https://repo.chimera-linux.org/distfiles/rust-std-1.72.0-x86_64-chimera-linux-musl.tar.xz
|
||||
# rustc bootstrap (Chimera Linux) 1.73.0
|
||||
# Source: https://repo.chimera-linux.org/distfiles/rustc-1.73.0-x86_64-chimera-linux-musl.tar.xz
|
||||
# Source: https://repo.chimera-linux.org/distfiles/rust-std-1.73.0-x86_64-chimera-linux-musl.tar.xz
|
||||
#
|
||||
# $BUILD = Directory to temporarily install
|
||||
# $PKGS = Directory to store built packages
|
||||
#
|
||||
# DEPS
|
||||
# Required: patchelf ncurses gcc
|
||||
# Required: patchelf ncurses gcc curl
|
||||
# Recommended: NONE
|
||||
# Optional: NONE
|
||||
|
||||
@ -22,30 +22,26 @@
|
||||
|
||||
|
||||
# Unpack all both packages
|
||||
tar xf pkgs/rustc-1.72.0-x86_64-chimera-linux-musl.tar.xz
|
||||
tar xf pkgs/rust-std-1.72.0-x86_64-chimera-linux-musl.tar.xz
|
||||
tar xf pkgs/rustc-1.73.0-x86_64-chimera-linux-musl.tar.xz
|
||||
tar xf pkgs/rust-std-1.73.0-x86_64-chimera-linux-musl.tar.xz
|
||||
|
||||
# Install rustc
|
||||
cd rustc-1.72.0-x86_64-chimera-linux-musl
|
||||
cd rustc-1.73.0-x86_64-chimera-linux-musl
|
||||
sudo ./install.sh --prefix=/opt/rustc --destdir=$BUILD
|
||||
cd -
|
||||
|
||||
# Install rust-std
|
||||
cd rust-std-1.72.0-x86_64-chimera-linux-musl
|
||||
cd rust-std-1.73.0-x86_64-chimera-linux-musl
|
||||
sudo ./install.sh --prefix=/opt/rustc --destdir=$BUILD
|
||||
cd -
|
||||
|
||||
# Download minimal rust toolchain from www.rust-lang.org
|
||||
# select minimal, no change in user's PATH
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||
|
||||
# Clean up
|
||||
rm -rf rust-std-1.72.0-x86_64-chimera-linux-musl \
|
||||
rustc-1.72.0-x86_64-chimera-linux-musl \
|
||||
rm -rf rust-std-1.73.0-x86_64-chimera-linux-musl \
|
||||
rustc-1.73.0-x86_64-chimera-linux-musl \
|
||||
|
||||
# Setup link to change rustc versions
|
||||
sudo mv -v $BUILD/opt/rustc $BUILD/opt/rustc-1.72.0
|
||||
sudo ln -sv rustc-1.72.0 $BUILD/opt/rustc
|
||||
sudo mv -v $BUILD/opt/rustc $BUILD/opt/rustc-1.73.0
|
||||
sudo ln -sv rustc-1.73.0 $BUILD/opt/rustc
|
||||
|
||||
# Add runtime path to use ncurses in /opt/ncurses
|
||||
sudo patchelf --set-rpath /opt/ncurses/lib $BUILD/opt/rustc/lib/librustc_driver-*
|
||||
@ -70,14 +66,18 @@ rustc-bootstrap:
|
||||
rustc-bootstrap:
|
||||
EOF
|
||||
sudo -S mv -v /tmp/slack-desc install/ &&
|
||||
sudo -S makepkg -l y -c n $PKGS/rustc-bootstrap-1.72.0-$(uname -m)-chimera.txz &&
|
||||
sudo -S makepkg -l y -c n $PKGS/rustc-bootstrap-1.73.0-$(uname -m)-chimera.txz &&
|
||||
sudo -S rm -rf ${BUILD}/*
|
||||
|
||||
cd $BUILD
|
||||
sudo mkdir -pv $BUILD/opt/rustc-1.72.0/bin
|
||||
sudo mkdir -pv $BUILD/opt/rustc-1.73.0/bin
|
||||
|
||||
# Download minimal rust toolchain from www.rust-lang.org
|
||||
# select minimal, no change in user's PATH
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||
|
||||
# Install static cargo
|
||||
sudo cp -va $HOME/.cargo/bin/cargo $BUILD/opt/rustc-1.72.0/bin/
|
||||
sudo cp -va $HOME/.cargo/bin/cargo $BUILD/opt/rustc-1.73.0/bin/
|
||||
|
||||
# Create the link for static cargo:
|
||||
sudo mkdir -pv $BUILD/usr/lib
|
||||
@ -92,12 +92,12 @@ cat > /tmp/slack-desc << "EOF"
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
cargo-bootstrap: cargo bootstrap
|
||||
cargo-bootstrap:
|
||||
cargo-bootstrap: Chimera Linux built cargo, repacked as a package for bootstrapping
|
||||
cargo-bootstrap: Rust-lang.org prebuilt cargo, repacked as a package for bootstrapping
|
||||
cargo-bootstrap: build of cargo & rustc.
|
||||
cargo-bootstrap:
|
||||
cargo-bootstrap: https://repo.chimera-linux.org/distfiles
|
||||
cargo-bootstrap: www.rust-lang.org
|
||||
cargo-bootstrap:
|
||||
EOF
|
||||
sudo -S mv -v /tmp/slack-desc install/
|
||||
sudo -S makepkg -l y -c n $PKGS/cargo-bootstrap-1.72.0-$(uname -m)-chimera.txz
|
||||
sudo -S makepkg -l y -c n $PKGS/cargo-bootstrap-1.73.0-$PSUFFIX
|
||||
sudo -S rm -rf ${BUILD}/*
|
||||
|
Reference in New Issue
Block a user