From 65a0c7e5d2368c73c5354412f12643fa815c8073 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Mon, 19 Jul 2021 12:26:58 -0400 Subject: [parabola-hackers]: wip - patch broken golang build --- libre/parabola-hackers/PKGBUILD | 11 +++++++++++ 1 file changed, 11 insertions(+) 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() { -- cgit v1.2.2