diff --git a/google-go-lang/google-go-lang.SlackBuild b/google-go-lang/google-go-lang.SlackBuild index 3ac3aa5..d6df5c3 100755 --- a/google-go-lang/google-go-lang.SlackBuild +++ b/google-go-lang/google-go-lang.SlackBuild @@ -29,13 +29,14 @@ # SOFTWARE. PRGNAM=google-go-lang -VERSION=${VERSION:-1.24.2} +VERSION=${VERSION:-1.25.1} BOOTSTRAP0_VERSION=1.4-bootstrap-20171003 BOOTSTRAP1_VERSION=1.18.10 BOOTSTRAP2_VERSION=1.21.13 BOOTSTRAP3_VERSION=1.22.10 BOOTSTRAP4_VERSION=1.23.8 -BOOTSTRAP5_VERSION=$VERSION +BOOTSTRAP5_VERSION=1.24.7 +BOOTSTRAP6_VERSION=$VERSION BUILD=${BUILD:-1} TAG=${TAG:-_EXs} @@ -67,7 +68,7 @@ else fi CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} +TMP=${TMP:-/tmp/EXs} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} BOOTSTRAP0_DIR="${TMP}/bootstrap-go${BOOTSTRAP0_VERSION}" @@ -76,6 +77,7 @@ BOOTSTRAP2_DIR="${TMP}/bootstrap-go${BOOTSTRAP2_VERSION}" BOOTSTRAP3_DIR="${TMP}/bootstrap-go${BOOTSTRAP3_VERSION}" BOOTSTRAP4_DIR="${TMP}/bootstrap-go${BOOTSTRAP4_VERSION}" BOOTSTRAP5_DIR="${TMP}/bootstrap-go${BOOTSTRAP5_VERSION}" +BOOTSTRAP6_DIR="${TMP}/bootstrap-go${BOOTSTRAP6_VERSION}" set -e @@ -94,7 +96,7 @@ find -L . \ ORIG_PATH="${PATH}" -export MAKEFLAGS="-j 16" +export MAKEFLAGS="-j $(nproc)" echo "" echo "Building 0-th bootstrap compiler, ${BOOTSTRAP0_VERSION}" @@ -213,14 +215,34 @@ pushd "$BOOTSTRAP5_DIR" popd popd +# Time to build 6-th bootstrap compiler +echo "" +echo "Building 6-th bootstrap compiler, ${BOOTSTRAP6_VERSION}" +mkdir -p "${BOOTSTRAP6_DIR}" +pushd "$BOOTSTRAP6_DIR" + tar xf "${CWD}/go${BOOTSTRAP6_VERSION}.src.tar.gz" + pushd go + chown -R root:root . + export PATH="${BOOTSTRAP5_DIR}/go/bin:${ORIG_PATH}" + unset GOBIN GOPATH GOOS GOARCH CGO_ENABLED + export GOROOT_BOOTSTRAP="$BOOTSTRAP5_DIR/go" + export GOROOT="$(pwd)" + export GOROOT_FINAL="${BOOTSTRAP6_DIR}/go" + pushd src + LC_ALL=C ./make.bash + $GOROOT/bin/go install -buildmode=exe std + popd + popd +popd + # Time to build target compiler echo "" -echo "Building target compiler, ${BOOTSTRAP5_VERSION}" -export PATH="${BOOTSTRAP5_DIR}/go/bin:${PATH}" +echo "Building target compiler, ${BOOTSTRAP6_VERSION}" +export PATH="${BOOTSTRAP6_DIR}/go/bin:${PATH}" cd "$PKG/usr/lib${LIBDIRSUFFIX}/go${VERSION}/go" unset GOBIN GOPATH GOOS GOARCH CGO_ENABLED -export GOROOT_BOOTSTRAP="$BOOTSTRAP5_DIR/go" +export GOROOT_BOOTSTRAP="$BOOTSTRAP6_DIR/go" export GOROOT="$(pwd)" export GOROOT_FINAL="/usr/lib${LIBDIRSUFFIX}/go${VERSION}/go" export GO_LDFLAGS="-s -w" diff --git a/google-go-lang/google-go-lang.info b/google-go-lang/google-go-lang.info index 7bdef19..cf07312 100644 --- a/google-go-lang/google-go-lang.info +++ b/google-go-lang/google-go-lang.info @@ -1,8 +1,8 @@ PRGNAM="google-go-lang" -VERSION="1.24.2" +VERSION="1.25.1" HOMEPAGE="https://go.dev/" -DOWNLOAD="https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz https://go.dev/dl/go1.18.10.src.tar.gz https://go.dev/dl/go1.21.13.src.tar.gz https://go.dev/dl/go1.22.10.src.tar.gz https://go.dev/dl/go1.23.8.src.tar.gz https://go.dev/dl/go1.24.2.src.tar.gz" -MD5SUM="dbf727a4b0e365bf88d97cbfde590016 002b4daec72ab396dc023a5ec445a68a 3454362fc56df5020920e43fee2776ab 49b9eb43b62c1bdd9b5af72f61860e2d e72f3d3ecc20466d7721b1892142d900 c34263bd873e92fa99649fb501223e1f" +DOWNLOAD="https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz https://go.dev/dl/go1.18.10.src.tar.gz https://go.dev/dl/go1.21.13.src.tar.gz https://go.dev/dl/go1.22.10.src.tar.gz https://go.dev/dl/go1.23.8.src.tar.gz https://go.dev/dl/go1.24.7.src.tar.gz https://go.dev/dl/go1.25.1.src.tar.gz" +MD5SUM="dbf727a4b0e365bf88d97cbfde590016 002b4daec72ab396dc023a5ec445a68a 3454362fc56df5020920e43fee2776ab 49b9eb43b62c1bdd9b5af72f61860e2d e72f3d3ecc20466d7721b1892142d900 52eea261435dcd9fe447ce092f156519 86ac635cc05683ae97c77bbeae5bd884" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES=""