# rustmore/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 download updated sources, in most but not all cases, and rebuild from scratch. If you do this, you'll need to rebuild the following packages in the order shown here: rustlocal rustmore maturin py-polars polars-cli 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 rustmore --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.53 hours (or 031.82 minutes) - 2023 dedi Xeon E3-1200 v3 4x2 32GB RAM 00.60 hours (or 035.88 minutes) - ThinkPad W530 i7 4x2 32GB RAM #--------------------------------------------------------------------- [settings] defer = glibc64 configure = none proddir = none purge = no shareddir = yes strip = no unpack = none setpaths = libpcap rustc #--------------------------------------------------------------------- [depends] alsa # May not be needed eudev # Ditto gtkcore # Ditto libpcap # For "dnspeep" python:strict # Rust "dog" replaces Python* "dog" python3-core:strict rustc xorg #--------------------------------------------------------------------- [build] rustc HERE=`pwd` PP=$PRODTREE/rustlocal BINDIR=$PP/bin TGTDIR=$HERE/target RUSTOFFLINE=$RUSTOFFLINE rm -fr $TGTDIR mkdir -p $BINDIR $TGTDIR cd $PP pkill --full /bin/sccache || true OFFLINESW="" if [ "@$RUSTOFFLINE" == "@1" ]; then RUSTOFFLINE=true ; fi if [ "@$RUSTOFFLINE" == "@yes" ]; then RUSTOFFLINE=true ; fi if [ "@$RUSTOFFLINE" == "@true" ]; then OFFLINESW=--offline ; fi mkdir -p rusthome cd rusthome export HOME=`pwd` export CARGO_TARGET_DIR=$TGTDIR export RUSTC_WRAPPER=$BINDIR/sccache ls $RUSTC_WRAPPER export SCCACHE_DIR=$HOME/sccache mkdir -p $SCCACHE_DIR echo SCCACHE_DIR is $SCCACHE_DIR export SCCACHE_CACHE_SIZE="10G" #--------------------------------------------------------------------- PKGLIST=" coreutils htmlq macchina mdbook mdcat monolith names qrtool rustracer smartcat ss3 vsd xq zet " #--------------------------------------------------------------------- for pkg in $PKGLIST; do if [ \! -f $RUSTC_WRAPPER ]; then echo ==== `date` Error-0015: Disappeared: $RUSTC_WRAPPER exit 1 fi echo ==== `date` \ cargo install $OFFLINESW --force $pkg cargo install $OFFLINESW --force $pkg \ || echo $pkg failed done if [ \! -f $RUSTC_WRAPPER ]; then echo ==== `date` Error-0187: Disappeared: $RUSTC_WRAPPER exit 1 fi #--------------------------------------------------------------------- rm -fr $PRODTREE/python*/bin/dog for pkg in dnspeep dog uv 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 mv $CARGO_TARGET_DIR/release/$pkg $BINDIR/ cd $HERE echo ==== `date` build of $pkg end done #--------------------------------------------------------------------- pkg=oneio echo ==== `date` \ cargo install $OFFLINESW --force $pkg --features=cli cargo install $OFFLINESW --force $pkg --features=cli \ || echo $pkg failed #--------------------------------------------------------------------- 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/ if [ \! -f $RUSTC_WRAPPER ]; then echo ==== `date` Error-0224: Disappeared: $RUSTC_WRAPPER exit 1 fi rm -fr $CARGO_TARGET_DIR if [ \! -f $RUSTC_WRAPPER ]; then echo ==== `date` Error-0227: Disappeared: $RUSTC_WRAPPER exit 1 fi #--------------------------------------------------------------------- # 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] 240728 Added package 241125 Updated to latest sources 241126 Added "uv" 241128 Updated "uv" to 0.5.5