my fancy setting of ONLY_FOR_ARCHS to the intersection of GO_ARCHS and

LP64_ARCHS didn't work (GO_ARCHS/LP64_ARCHS aren't available until after
the mk files are pulled in which cause ONLY_FOR_ARCHS to be checked) so
just hardcode amd64 instead.
This commit is contained in:
sthen 2019-06-12 14:58:15 +00:00
parent 4590ca47f2
commit 29a43d43c3

View File

@ -1,4 +1,8 @@
# $OpenBSD: Makefile,v 1.2 2019/06/08 12:02:01 sthen Exp $
# $OpenBSD: Makefile,v 1.3 2019/06/12 14:58:15 sthen Exp $
# XXX intersection of GO_ARCHS and LP64_ARCHS
# providers/octodns/octoyaml/read.go:265:17: constant 4294967295 overflows int
ONLY_FOR_ARCHS = amd64
COMMENT = manage DNS configuration across any number of DNS hosts
@ -20,14 +24,6 @@ MODULES = lang/go
MODGO_FLAGS += -tags nosystemd
MODGO_TEST_FLAGS += -provider BIND
.include <bsd.port.arch.mk>
# providers/octodns/octoyaml/read.go:265:17: constant 4294967295 overflows int
ONLY_FOR_ARCHS =
.for i in ${GO_ARCHS}
ONLY_FOR_ARCHS += ${LP64_ARCHS:M$i}
.endfor
do-build:
cd ${WRKSRC} && ${MODGO_CMD} generate
cd ${WRKSRC} && ${MODGO_CMD} build