# go/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. The source tarball used by this package has been renamed. #--------------------------------------------------------------------- 2. 32-bit "go" needs to be built in a 32-bit copy of the distro. Cross-compilation from 64 to 32 bits doesn't work. #--------------------------------------------------------------------- 3. The "go" package needs a previous binary copy of "go" in order to build. For 64-bit Laclin: The previous binary copy should be stored in a tarball named as fol- lows: oldgo-exe64.tar.bz2 The tarball goes into the package's source resource tree "special" subdirectory. The tarball should contain a directory named "oldgo-exe64" which con- tains the standard "go" sub-directories "api", "bin", "doc", "lib", etc. For 32-bit Laclin, it's similar, but "64" is replaced with "32". The previous binary copy should be compatible with the architecture that "go" is being built for. #--------------------------------------------------------------------- 4. "libguestfs" is important and some releases of "go" break it. So, "go" shouldn't be updated to a new release until the new release's compatibility with "libguestfs" has been confirmed. #--------------------------------------------------------------------- [buildtimes] 00.02 hours (or 001.25 minutes) - HP EliteBook 8560w 32GB RAM 00.03 hours (or 001.87 minutes) - ThinkPad E540 i7 4x2 16GB RAM #--------------------------------------------------------------------- [settings] altpkg = yes configure = none strip = no tmpsize = 1000M unpack = relaxed #--------------------------------------------------------------------- [depends] postgnome sdl # Dependencies are actually unknown #--------------------------------------------------------------------- [build] PROGDIR=$PKGDIR_PROD/program export GOROOT=$PROGDIR export GOROOT_FINAL=$GOROOT mkdir -p $PROGDIR if [ $LACBITS == 64 ]; then tar jxf $PKGDIR_SPECIAL/oldgo-exe64.tar.bz2 pushd oldgo-exe64 else tar jxf $PKGDIR_SPECIAL/oldgo-exe32.tar.bz2 pushd oldgo-exe32 fi export GOROOT_BOOTSTRAP=`pwd` cd bin BOOTBIN=`pwd` PATH=`pwd`:$PATH popd CURDIR=`pwd` cat << END export GOROOT=$PROGDIR export GOROOT_FINAL=$GOROOT export GOROOT_BOOTSTRAP=$GOROOT_BOOTSTRAP PATH=$BOOTBIN:\$PATH echo pwd is $CURDIR END cd src ./make.bash cd .. rm -fr oldgo-exe* cp -a * $GOROOT/ cd $PKGDIR_PROD ln -nsf $PROGDIR/bin . #--------------------------------------------------------------------- # 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://dl.google.com/go/go1.22.9.src.tar.gz #--------------------------------------------------------------------- [history] 180311 Added package. Started with 1.9.4. 180418 Updated to 1.10.1 180502 Updated to 1.10.2 180608 Updated to 1.10.3 180825 Updated to 1.10.4 181215 Updated to 1.10.5 190126 Updated to 1.10.8 190315 Updated to 1.11.6 190412 Updated to 1.12.4 190507 Updated to 1.12.5 190617 Updated to 1.12.6 190713 Updated to 1.12.7 190818 Updated to 1.12.9 190929 Updated to 1.12.10 210202 Updated to 1.14.4 210508 Updated to 1.15.12 210604 Updated to 1.15.13 210616 Updated to 1.16.5 210713 Updated to 1.16.6 210807 Updated to 1.16.7 210911 Updated to 1.16.8 211008 Updated to 1.16.9 211104 Updated to 1.16.10 211203 Updated to 1.16.11 211209 Updated to 1.16.12 220108 Updated to 1.16.13 220221 Updated to 1.16.14 220809 Updated to 1.18.5 230730 Updated to 1.20.6 240702 Updated to 1.22.5 241004 Updated to 1.22.8 241112 Updated to 1.22.9