mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
go: use go1.12-bootstrap, disable ppc* BE, disable cross-libc
This commit is contained in:
parent
2d00eb9536
commit
b09d6b8779
1 changed files with 11 additions and 5 deletions
|
@ -4,14 +4,13 @@ version=1.13.4
|
||||||
revision=1
|
revision=1
|
||||||
create_wrksrc=yes
|
create_wrksrc=yes
|
||||||
build_wrksrc=go
|
build_wrksrc=go
|
||||||
hostmakedepends="go1.4-bootstrap"
|
hostmakedepends="go1.12-bootstrap"
|
||||||
short_desc="Go Programming Language"
|
short_desc="Go Programming Language"
|
||||||
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
homepage="http://golang.org/"
|
homepage="http://golang.org/"
|
||||||
distfiles="https://golang.org/dl/go${version}.src.tar.gz"
|
distfiles="https://golang.org/dl/go${version}.src.tar.gz"
|
||||||
checksum=95dbeab442ee2746b9acf0934c8e2fc26414a0565c008631b04addb8c02e7624
|
checksum=95dbeab442ee2746b9acf0934c8e2fc26414a0565c008631b04addb8c02e7624
|
||||||
|
|
||||||
nostrip=yes
|
nostrip=yes
|
||||||
noverifyrdeps=yes
|
noverifyrdeps=yes
|
||||||
|
|
||||||
|
@ -21,20 +20,27 @@ case "${XBPS_TARGET_MACHINE}" in
|
||||||
mips*) _goarch=mips ;;
|
mips*) _goarch=mips ;;
|
||||||
i686*) _goarch=386 ;;
|
i686*) _goarch=386 ;;
|
||||||
x86_64*) _goarch=amd64 ;;
|
x86_64*) _goarch=amd64 ;;
|
||||||
|
ppc64le*) _goarch=ppc64le ;;
|
||||||
|
ppc64*) broken="Upstream does not support ELFv2 for big endian ppc64";;
|
||||||
|
ppc*) broken="Upstream does not support 32-bit ppc";;
|
||||||
*) _goarch=${XBPS_TARGET_MACHINE} ;;
|
*) _goarch=${XBPS_TARGET_MACHINE} ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
if [ "${XBPS_MACHINE%%-musl}" = "${XBPS_TARGET_MACHINE%%-musl}" ]; then
|
||||||
|
broken="Cross-compiling to different libc is not supported"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
unset GCC CC CXX LD CFLAGS
|
unset GCC CC CXX LD CFLAGS
|
||||||
# FIXME: work around leaking go build-style vars when built as a
|
# FIXME: work around leaking go build-style vars when built as a
|
||||||
# dependency
|
# dependency
|
||||||
unset CGO_CXXFLAGS CGO_CFLAGS CGO_ENABLED
|
unset CGO_CXXFLAGS CGO_CFLAGS CGO_ENABLED
|
||||||
|
|
||||||
|
export GOROOT_BOOTSTRAP="/usr/lib/go1.12"
|
||||||
export GOCACHE=off
|
|
||||||
export GOROOT=$PWD
|
export GOROOT=$PWD
|
||||||
export GOROOT_FINAL="/usr/lib/go"
|
export GOROOT_FINAL="/usr/lib/go"
|
||||||
export GOROOT_BOOTSTRAP="/usr/lib/go1.4"
|
|
||||||
export GOARCH=${_goarch}
|
export GOARCH=${_goarch}
|
||||||
|
|
||||||
cd "src"
|
cd "src"
|
||||||
|
|
Loading…
Add table
Reference in a new issue