summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2021-07-19 12:26:58 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2021-07-19 15:35:59 -0400
commit65a0c7e5d2368c73c5354412f12643fa815c8073 (patch)
tree3d9fd19e6c91804b559a155696767b1b40b3442a
parent84b59201cc703f025d12c90a0dfdba98e838725d (diff)
[parabola-hackers]: wip - patch broken golang build
-rw-r--r--libre/parabola-hackers/PKGBUILD11
1 files changed, 11 insertions, 0 deletions
diff --git a/libre/parabola-hackers/PKGBUILD b/libre/parabola-hackers/PKGBUILD
index d0230a2ab..6aae5c6ff 100644
--- a/libre/parabola-hackers/PKGBUILD
+++ b/libre/parabola-hackers/PKGBUILD
@@ -62,6 +62,17 @@ prepare() {
mv -v "$srcdir"/LICENSE* .
git submodule update --init
+
+ # FIXME: fix this upstream
+ # GOPATH='/build/parabola-hackers/src/parabola-hackers/go' AR='ar' CC='gcc -std=gnu99' CGO_ENABLED='1' go install nshd
+ # go install: version is required when current directory is not in a module
+ # Try 'go install nshd@latest' to install the latest version
+ # NOTE: this kludge is very brittle - it would (probably) fail if bins_go contained multiple items
+ # luckily, the golang 'nshd' is not likely to ever change
+ sed -i 's|$(go_env) go install $(bins_go)|$(go_env) go install $(bins_go)@latest|' Makefile
+ # FIXME: the above kludge did not work
+ # GOPATH='/build/parabola-hackers/src/parabola-hackers/go' AR='ar' CC='gcc -std=gnu99' CGO_ENABLED='1' go install nshd@latest
+ # go install nshd@latest: malformed module path "nshd": missing dot in first path element
}
build() {