aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-11-25 20:08:10 +0000
committerJakub Jirutka <jakub@jirutka.cz>2017-11-25 21:12:12 +0100
commit21aacef06d810f197031d0acddc06080e4d28226 (patch)
treefec3d6854a104671777de8c007ce76b7fe94ffbd
parent679b40abdc9a568dc5fa2a8eff8525eec0b4d129 (diff)
downloadaports-21aacef06d810f197031d0acddc06080e4d28226.tar.bz2
aports-21aacef06d810f197031d0acddc06080e4d28226.tar.xz
testing/git-lfs: fix test failures on armhf and aarch64 builders
-rw-r--r--testing/git-lfs/APKBUILD15
1 files changed, 11 insertions, 4 deletions
diff --git a/testing/git-lfs/APKBUILD b/testing/git-lfs/APKBUILD
index 0339c7f431..f89dd47e97 100644
--- a/testing/git-lfs/APKBUILD
+++ b/testing/git-lfs/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=git-lfs
pkgver=2.3.4
-pkgrel=0
+pkgrel=1
pkgdesc="Git extension for versioning large files"
url="https://git-lfs.github.io/"
arch="all"
@@ -36,13 +36,13 @@ build() {
cd -
# Build git-lfs executable.
- go build -v -o bin/$pkgname
+ _gobuild -o bin/$pkgname
# Build test executables.
local file; for file in test/cmd/*.go; do
- go build -v -o bin/$(basename $file .go) $file
+ _gobuild -o bin/$(basename $file .go) $file
done
- go build -v -o bin/git-lfs-test-server-api \
+ _gobuild -o bin/git-lfs-test-server-api \
test/git-lfs-test-server-api/*.go
}
@@ -69,6 +69,13 @@ package() {
rm -r "$docdir"/api/schemas
}
+_gobuild() {
+ # netcgo - use system's DNS resolver by default. Go's built-in DNS
+ # resolver is buggy; it resolved localhost to totally wrong IP
+ # address on ARM builders and so caused test failures.
+ go build -tags netcgo -v "$@"
+}
+
sha512sums="97174dc9346979777c3951baa86cfc07c85e2df04f13a50114e016facbb3fd5fde08d38825493d4e7ff149a13c87ae44e9e40350cd4950f27fe309ef62b6724a git-lfs-2.3.4.tar.gz
66927aa462cb7b5061442e5ffaf7c9e4a5d97179482dc00de3f4abfad5959a9c55df3e88c211067bf15b5b0ea3ef29b249ca32290cc9839280266de5c6854b3f fix-test-locks.patch
408f30bd047dc6bc502c37698615067b6496966e3c0d76e2c36d2eff50d87567aac9b9cbd3bb683566ffdd534a76d7e193ed6338b06c81dc358330de9f7f7903 wait-longer.patch"