mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user