UmVirt LFS Package info
DB commit: 34a83c7a68a930f721bd7a7f9cb2c2ac41e76ba8
APP commit: 0bd167a48557b5a14ac68d0229893245aacc7f12
mrustc
Mutabah's Rust Compiler is in-progress alternative rust compiler. Capable of building a fully-working copy of rustc, but not suitable for everyday use (due to terrible error messages).Package info
Template:
Codename: mrustc
Source file: mrustc-0.12.0.tar.gz
Source directory: mrustc-0.12.0
Package URL: mrustc-0.12.0.tar.gz
Package md5-checksum URL: mrustc-0.12.0.tar.gz.md5sum
Dependances: git.
Dependance of: *** NO PACKAGES FOUND ***
Patches: mrustc-minicargo.patch.
Addons: rustc-1.90.0-src.tar.xz.
Nestings *** NO NESTINGS FOUND ***
Configuration script:
#copy rustc source
cp -v ../rustc-1.90.0-src.tar.xz .
#speedup
sed "s/PARLEVEL ?= 1/PARLEVEL ?= `nproc`/" -i minicargo.mk
sed "s/LLVM_TARGETS ?= X86;ARM;AArch64#;Mips;PowerPC;SystemZ;JSBackend;MSP430;Sparc;NVPTX/LLVM_TARGETS ?= X86/" -i minicargo.mk
sed "s/LLVM_TARGETS ?= X86;ARM;AArch64#;Mips;PowerPC;SystemZ;JSBackend;MSP430;Sparc;NVPTX/LLVM_TARGETS ?= X86/" -i run_rustc/Makefile
sed "s/PARLEVEL ?= 1/PARLEVEL ?= `nproc`/" -i run_rustc/Makefile
#build std library
echo "LIBGIT2_SYS_USE_PKG_CONFIG=1 make -C run_rustc \$@" >> build-1.90.0.sh
#fix archive extension
sed -e "s/-src.tar.gz/-src.tar.xz/" -i minicargo.mk
#fix archive extraction
sed -e "s/tar -xzf/tar -xf/" -i minicargo.mk
Build script:
./build-1.90.0.sh
Install script:
#create directories
install -vdm755 /opt/mrustc
install -vdm755 /opt/mrustc/bin
install -vdm755 /opt/mrustc/lib
#install binaries
install -v -m555 output-1.90.0/rustc /opt/mrustc/bin
install -v -m555 output-1.90.0/cargo /opt/mrustc/bin
#install libraries
install -v -m644 run_rustc/output-1.90.0/prefix/lib/rustlib/`uname -m`-unknown-linux-gnu/lib/*.rlib /opt/mrustc/lib
cat > /etc/profile.d/rustc.sh << "EOF"
# Begin /etc/profile.d/rustc.sh
pathprepend /opt/mrustc/bin PATH
# End /etc/profile.d/rustc.sh
EOF