1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/architecture.mk
NO_PIE_ARCHS := mips64el mipsel riscv64
BUILDFLAGS = $(if $(filter $(DEB_HOST_ARCH),$(NO_PIE_ARCHS)),,-buildmode=pie) \
-ldflags "-X main.Version=$(DEB_VERSION_UPSTREAM)"
%:
dh $@ --builddirectory=debian/_build --buildsystem=golang
override_dh_auto_build:
dh_auto_build -- $(BUILDFLAGS)
# riscv64: panic: test timed out after 10m0s
# https://buildd.debian.org/status/fetch.php?pkg=age&arch=riscv64&ver=1.3.1-1&stamp=1773127362&raw=0
# https://ci.debian.net/packages/a/age/testing/riscv64/69641367/
# 2705s panic: test timed out after 30m0s
override_dh_auto_test:
dh_auto_test $(DH_BUILD_OPTS) -- -timeout 75m
|