# uv/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. By default, if this package is built, it: (a) doesn't delete the "rustlocal" package tree (b) doesn't delete previously cached build objects (c) downloads sources for some Rust libraries and programs un- less they're already present (d) builds some Rust libraries and programs in the "rustlocal" package tree To force actual as opposed to cached compiles, delete the following cache directory tree first: $PRODTREE/rustlocal/rusthome/sccache/ To force a full rebuild from scratch, delete the following package directory tree instead: $PRODTREE/rustlocal/ This will both (a) download updated sources and (b) rebuild from scra- tch. If you do this, you'll need to rebuild the following packages in dir- ectory name order: /src/*_rust/* except for "0010_rustc" /src/*/_rusthigh For a rebuild from scratch, Internet access is required. The results of this type of build are unpredictable. This type of build may very well fail. #--------------------------------------------------------------------- 2. The following procedure: export RUSTOFFLINE=true makelac uv --force rebuilds the same libraries and programs using the same sources. It shouldn't access the Internet. This mode requires that a full build from scratch have been done previously. Cached build objects may be used unless the following cache tree is deleted first: $PRODTREE/rustlocal/rusthome/sccache/ #--------------------------------------------------------------------- 3. In the default mode, this package requires Internet access to bui- ld. Builds are also non-repeatable; i.e., the results may be differ- ent each time and builds may not work at all. This is one of relatively few packages of this type that Laclin sup- ports. #--------------------------------------------------------------------- 4. This package doesn't modify the Rust compiler directory tree at: $PRODTREE/rustc/ #--------------------------------------------------------------------- [buildtimes] 00.27 hours (or 016.00 minutes) - 2023 dedi Xeon E3-1200 v3 4x2 32GB RAM - rustc 1.87.0 + clang 20.1.5 + uv 0.7.8 - loaded sccache 00.31 hours (or 018.48 minutes) - 2023 dedi Xeon E3-1200 v3 4x2 32GB RAM - rustc 1.87.0 + clang 20.1.5 + uv 0.7.7 - from scratch w/o loaded sccache #--------------------------------------------------------------------- [settings] compiler = clang configure = none defer = glibc64 license = tbd proddir = none purge = no shareddir = yes strip = no unpack = none setpaths = rustc #--------------------------------------------------------------------- [depends] python rustc sccache xorg #--------------------------------------------------------------------- [build] export RUSTC_BOOTSTRAP=1 OFFLINESW="" if [ "@$RUSTOFFLINE" == "@1" ]; then RUSTOFFLINE=true ; fi if [ "@$RUSTOFFLINE" == "@yes" ]; then RUSTOFFLINE=true ; fi if [ "@$RUSTOFFLINE" == "@true" ]; then OFFLINESW=--offline ; fi HERE=`pwd` PP=$PRODTREE/rustlocal BINDIR=$PP/bin TGTDIR=$HERE/target RUSTOFFLINE=$RUSTOFFLINE rm -fr $TGTDIR mkdir -p $BINDIR $TGTDIR cd $PP mkdir -p rusthome cd rusthome export HOME=`pwd` export CARGO_TARGET_DIR=$TGTDIR #--------------------------------------------------------------------- export SCCACHE_CACHE_SIZE="5G" export SCCACHE_DIR=$HOME/sccache export RUSTC_WRAPPER=$BINDIR/sccache mkdir -p $SCCACHE_DIR pkill --full /bin/sccache || true sleep 1 sccache rustc || unset RUSTC_WRAPPER #--------------------------------------------------------------------- PKGLIST=" " #--------------------------------------------------------------------- for pkg in $PKGLIST; do ERR=false echo ==== `date` \ cargo install $OFFLINESW --force $pkg cargo install $OFFLINESW --force $pkg || ERR=true if [ "@$ERR" == "@true" ]; then echo Error: $pkg failed exit 1 fi done #--------------------------------------------------------------------- GITPKG="uv" #--------------------------------------------------------------------- for pkg in $GITPKG do echo ==== `date` build of $pkg start cd $HERE deco $PKGDIR_SPECIAL/$pkg-git*.tar* cd $pkg-git* if [ "@$RUSTOFFLINE" \!= "@true" ]; then cargo fetch fi cargo build $OFFLINESW --release cd $CARGO_TARGET_DIR/release/ mv $pkg $BINDIR/ for x in * do trueifexe $x && mv $x $BINDIR/ done cd $HERE echo ==== `date` build of $pkg end done #--------------------------------------------------------------------- badlinks -d $HOME/.cargo/bin/ || true strip $HOME/.cargo/bin/* || true upx --lzma $HOME/.cargo/bin/* || true ln -nsf $HOME/.cargo/bin/* $BINDIR/ badlinks -d $BINDIR/ || true echo ==== `date` instreplinks -d $BINDIR/ /usr/bin/ instreplinks -d $BINDIR/ /usr/bin/ rm -fr $CARGO_TARGET_DIR #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = tbd url_home = tbd url_lfs = tbd url_tarball = n/a #--------------------------------------------------------------------- [history] 241126 Added "uv" to "rustmore" 241128 Updated "uv" to 0.5.5 241215 Updated "uv" to 0.5.8 250111 Updated "uv" to 0.5.18 250202 Updated "uv" to 0.5.26 250307 Updated "uv" to 0.6.5 250330 Moved "uv" to its own package 250330 Updated to 0.6.11 250407 Updated to 0.6.12 250525 Updated to 0.7.8 250601 Updated to 0.7.9 250606 Updated to 0.7.12 250623 Updated to 0.7.14 250627 Updated to 0.7.15