dt/headscale/gotosocial: pass -checklinkname=0 to linker to unbreak build

with go 1.23

This isn't a good solution, but it's currently still working. For the
non-dead probject this will hopefully resolve itself over time.
(just like rust-openssl usage...)
This commit is contained in:
tb
2024-08-15 14:11:06 +00:00
parent 968a5ccb9d
commit 786a5cc7b8
3 changed files with 10 additions and 1 deletions
+5
View File
@@ -18,6 +18,11 @@ PERMIT_PACKAGE = Yes
MODULES = lang/go
# disable https://go.dev/doc/go1.23#linker to unbreak with go-1.23.
# remove once upstream unhibernates and updates the outdated x/net
# or once we can finally patch go ports.
MODGO_LDFLAGS += -checklinkname=0
post-extract:
rm -rf ${WRKSRC}/vendor
+4
View File
@@ -24,6 +24,10 @@ MODULES = lang/go
MODGO_LDFLAGS += -X ${MODGO_MODNAME}/cmd/headscale/cli.Version=$\
${MODGO_VERSION:S/v//}
# disable https://go.dev/doc/go1.23#linker to unbreak with go-1.23.
# XXX check if this is still needed in future updates
MODGO_LDFLAGS += -checklinkname=0
# for patches to apply
WRKDIST = ${WRKSRC}
+1 -1
View File
@@ -35,7 +35,7 @@ MODGO_FLAGS += -mod=mod
# remove either if codeberg.org/gruf/go-fastcopy is fixed, or "existing
# usages of //go:linkname found in a large open-source code corpus
# remain supported" is extended.
#MODGO_LDFLAGS += -checklinkname=0
MODGO_LDFLAGS += -checklinkname=0
TEST_ENV += GTS_DB_ADDRESS=":memory:" \
GTS_DB_TYPE="sqlite"