UmVirt LFS Package info

📦Package info

🔙Parent Directory  -

DB commit: c9dd8835b9e79548f70e25c8ffb9d09430f622a0
APP commit:
[ BASH | XML | JSON ]

rustc

rustc is the compiler for the Rust programming language. It compiles Rust source code into executable binaries or libraries.

Package info

Codename: rustc
Source file: rustc-1.81.0-src.tar.xz
Source directory: rustc-1.81.0-src
Package URL: rustc-1.81.0-src.tar.xz
Package md5-checksum URL: rustc-1.81.0-src.tar.xz.md5sum
Dependances: curl, git, cmake.
Dependance of: *** NO PACKAGES FOUND ***
Patches: *** NO PATCHES FOUND ***
Addons: *** NO ADDONS FOUND ***
Nestings *** NO NESTINGS FOUND ***
Configuration script:
mkdir -pv /opt/rustc-1.81.0      &&
ln -svfn rustc-1.81.0 /opt/rustc

cat << EOF > config.toml
# see config.toml.example for more possible options.
# Tell x.py the editors have reviewed the content of this file
# and updated it to follow the major changes of the building system,
# so x.py will not warn us to do such a review.
change-id = 127866

[llvm]
targets = "X86"

# When using system llvm prefer shared libraries
link-shared = true

[build]
# omit docs to save time and space (default is to build them)
docs = false

# install extended tools: cargo, clippy, etc
extended = true

# Do not query new versions of dependencies online.
locked-deps = true

# Specify which extended tools (those from the default install).
tools = ["cargo", "clippy", "rustdoc", "rustfmt"]

# Use the source code shipped in the tarball for the dependencies.
# The combination of this and the "locked-deps" entry avoids downloading
# many crates from Internet, and makes the Rustc build more stable.
vendor = true

[install]
prefix = "/opt/rustc-1.81.0"
docdir = "share/doc/rustc-1.81.0"

[rust]
channel = "stable"
description = "for GLFS #47e0"

# Uncomment if FileCheck has been installed.
#codegen-tests = false

# Enable the same optimizations as the official upstream build.
lto = "thin"
codegen-units = 1

[target.x86_64-unknown-linux-gnu]
llvm-config = "/usr/bin/llvm-config"

[target.i686-unknown-linux-gnu]
llvm-config = "/usr/bin/llvm-config"
EOF

sed '/CondBitmap/,/^}/s/LLVM_VERSION.*/& \&\& LLVM_VERSION_LT(19, 0)/' \
    -i compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp &&
rm -v tests/coverage/mcdc/{cond*,if,inline*,nest*,non_*}.rs

Build script:
python3 x.py build

Install script:
python3 x.py install rustc std &&
python3 x.py install --stage=1 cargo clippy rustfmt

if [[ "\\$ULFS_PKG_TEST" == "YES" ]]
then
    rm -fv /opt/rustc-1.81.0/share/doc/rustc-1.81.0/*.old   &&
    install -vm644 README.md                                \
                   /opt/rustc-1.81.0/share/doc/rustc-1.81.0
fi

install -vdm755 /usr/share/zsh/site-functions      &&
ln -sfv /opt/rustc/share/zsh/site-functions/_cargo \
        /usr/share/zsh/site-functions
    
mv -v /etc/bash_completion.d/cargo \
      /usr/share/bash-completion/completions

cat > /etc/profile.d/rustc.sh << "EOF"
# Begin /etc/profile.d/rustc.sh

pathappend /opt/rustc/bin           PATH

# End /etc/profile.d/rustc.sh
EOF

source /etc/profile.d/rustc.sh

Arch specific instructions

lib32_amd64

Dependances: *** NO DEPENDANCES FOUND ***
Configuration script:
mkdir -pv /opt/rustc-1.81.0      &&
ln -svfn rustc-1.81.0 /opt/rustc

cat << EOF > config.toml
# see config.toml.example for more possible options.
# Tell x.py the editors have reviewed the content of this file
# and updated it to follow the major changes of the building system,
# so x.py will not warn us to do such a review.
change-id = 127866

[llvm]
# When using system llvm prefer shared libraries
link-shared = true

[build]
# Enable which targets to build.
target = [
  "x86_64-unknown-linux-gnu",
  "i686-unknown-linux-gnu",
]

# omit docs to save time and space (default is to build them)
docs = false

# install extended tools: cargo, clippy, etc
extended = true

# Do not query new versions of dependencies online.
locked-deps = true

# Specify which extended tools (those from the default install).
tools = ["cargo", "clippy", "rustdoc", "rustfmt"]

# Use the source code shipped in the tarball for the dependencies.
# The combination of this and the "locked-deps" entry avoids downloading
# many crates from Internet, and makes the Rustc build more stable.
vendor = true

[install]
prefix = "/opt/rustc-1.81.0"
docdir = "share/doc/rustc-1.81.0"

[rust]
channel = "stable"
description = "for GLFS #47e0"

# Uncomment if FileCheck has been installed.
#codegen-tests = false

# Enable the same optimizations as the official upstream build.
lto = "thin"
codegen-units = 1

[target.x86_64-unknown-linux-gnu]
cc = "/usr/bin/gcc"
cxx = "/usr/bin/g++"
ar = "/usr/bin/gcc-ar"
ranlib = "/usr/bin/gcc-ranlib"
llvm-config = "/usr/bin/llvm-config"

[target.i686-unknown-linux-gnu]
cc = "/usr/bin/gcc"
cxx = "/usr/bin/g++"
ar = "/usr/bin/gcc-ar"
ranlib = "/usr/bin/gcc-ranlib"
EOF

sed '/CondBitmap/,/^}/s/LLVM_VERSION.*/& \&\& LLVM_VERSION_LT(19, 0)/' \
    -i compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp &&
rm -v tests/coverage/mcdc/{cond*,if,inline*,nest*,non_*}.rs

Build script:
python3 x.py build

Install script:
python3 x.py install rustc std &&
python3 x.py install --stage=1 cargo clippy rustfmt

if [[ "\\\$ULFS_PKG_TEST" == "YES" ]]
then
    rm -fv /opt/rustc-1.81.0/share/doc/rustc-1.81.0/*.old   &&
    install -vm644 README.md                                \
                   /opt/rustc-1.81.0/share/doc/rustc-1.81.0
fi

install -vdm755 /usr/share/zsh/site-functions      &&
ln -sfv /opt/rustc/share/zsh/site-functions/_cargo \
        /usr/share/zsh/site-functions
    
mv -v /etc/bash_completion.d/cargo \
      /usr/share/bash-completion/completions

cat > /etc/profile.d/rustc.sh << "EOF"
# Begin /etc/profile.d/rustc.sh

pathappend /opt/rustc/bin           PATH

# End /etc/profile.d/rustc.sh
EOF

source /etc/profile.d/rustc.sh


Comments:

  1. architectures_packages WHERE id = 265


Apache/2.4.62 (Debian) Server at ulfs.org Port 443