# cabal2400/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. This package installs "cabal" 2.4.0.0. The executable-file name "cabal2400" is used. This package should never be updated to a new upstream release. Newer releases of "cabal" should be treated as separate packages. #--------------------------------------------------------------------- 2. If everything is working correctly, it should be possible to build this package offline. In other words, the build procedure shouldn't try to download any files. In fact, it's probably best that DNS be turned off while this package is being built. This will prevent most attempts by the "build" proce- dure to go online. To turn DNS off: sudo killany dnsmasq To turn DNS back on: sudo service dnsmasq restart #--------------------------------------------------------------------- [buildtimes] 00.12 hours (or 006.93 minutes) - 2023 dedi Xeon E3-1200 v3 4x2 32GB RAM 00.15 hours (or 008.93 minutes) - 2021 L.A. dedi box: 6x2 CPU 32GB RAM #--------------------------------------------------------------------- [settings] configure = none defer = glibc64 license = See "license*.txt" in "$PRODTREE/ghc0865/doc/" nosyslinks = yes proddir = none purge = no shareddir = yes strip = no tmpsize = 507M unpack = relaxed setpaths = \ gcc ghc0865 libffi libgmp libicu ncurses numactl zlib #--------------------------------------------------------------------- [depends] ghc0865:strict libffi libgmp libicu ncurses numactl zlib #--------------------------------------------------------------------- [build] export LD=ld PP=$PRODTREE/ghc0865 BINDIR=$PP/bin DOCDIR=$PP/doc LOCDIR=$PP/local LOCBIN=$LOCDIR/bin MODHOME=$PP/home mkdir -p $BINDIR $DOCDIR $LOCBIN $MODHOME #--------------------------------------------------------------------- cp -p LICENSE $DOCDIR/license-$EXEWORD.txt export HOME=$MODHOME mkdir -p $MODHOME pushd $MODHOME rm -fr .cabal .ghc mkdir .cabal cd .cabal echo .cabal is at `pwd` popd #--------------------------------------------------------------------- rm -fr /usr/local/bin/cabal* rm -fr $BINDIR/cabal* rm -fr $LOCBIN/cabal* rm -fr $MODHOME/.cabal/bin/cabal* #--------------------------------------------------------------------- cp -p $PKGDIR_SPECIAL/dep2400/*.tar.gz . sed -e "s@/usr/local@$LOCDIR@" -i bootstrap.sh bash ./bootstrap.sh -j --global cd $BINDIR cp -p ../local/bin/cabal \ cabal2400 strip cabal2400 upx --lzma cabal2400 || true hash cabal2400 #--------------------------------------------------------------------- # 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 = https://downloads.haskell.org/~cabal/\ cabal-install-2.4.0.0/cabal-install-2.4.0.0.tar.gz #--------------------------------------------------------------------- [history] 180318 Added package. Started with 2.0.0.1. 181012 Updated to 2.4.0.0 210620 Additional work. It wasn't pretty. 211027 Split "cabal2400" off into its own package