# rclone-shuttle/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 dir- ectory name order: /src/*_rust/* except for "0010_rustc" /src/*/*_rclone-shuttle /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 rclone-shuttle --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/ #--------------------------------------------------------------------- 5. The source tarball used by this package was created based on "git" upstream sources. The sources were obtained as follows: ocgitfetch --run rclone-shuttle \ --checkout=0.1.8 \ https://github.com/pieterdd/RcloneShuttle.git #--------------------------------------------------------------------- 6. "rclone-shuttle" releases newer than 0.1.8 will require an update to "rustc" 0.92 or higher [depending on the exact release]. #--------------------------------------------------------------------- [buildtimes] #--------------------------------------------------------------------- [settings] compiler = clang configure = none defer = glibc64 proddir = none purge = no shareddir = yes strip = no setpaths = \ appstream gtkcore libadwaita nspr \ nss rustc xorg \ appstream-glib #--------------------------------------------------------------------- [depends] appstream appstream-glib brotli bzip2 cairo cryptsetup curl eudev expat fontconfig freetype2 fribidi graphene graphite2 gstreamer gtkcore jpeg jsonc libadwaita libbsd libffi libgudev libicu libidn2 liblzo2 libpng libpsl librtmp libsasl libssh2 libunistring libwebp libxml2 libxmlb libyaml lvm2 ncurses nghttp2 nspr nss openldap openssl openssl3 pcre2 rustc snowball tiff util-linux wayland xorg xzutils zlib zstd #--------------------------------------------------------------------- [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 #--------------------------------------------------------------------- cd $HERE git checkout 0.1.8 if [ "@$RUSTOFFLINE" \!= "@true" ]; then cargo fetch fi cargo build $OFFLINESW --release cd $CARGO_TARGET_DIR/release/ EXE=rclone-shuttle strip $EXE mv $EXE $BINDIR/ cd $BINDIR/ mkdir -p ../xbin/ mv $EXE ../xbin/ cp -p $PKGDIR_SPECIAL/$EXE.wrapper.in $EXE chmod 755 $EXE cd $HERE #--------------------------------------------------------------------- badlinks -d $HOME/.cargo/bin/ || true ln -nsf $HOME/.cargo/bin/* $BINDIR/ 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 = git # See "technotes" in "cfg" file #--------------------------------------------------------------------- [history] 260501 Added package 260501 Started with c1ad4fbb0 - same as 0.1.8