From e6f3a10276b5d5601808eac9af64574feb01a919 Mon Sep 17 00:00:00 2001 From: Bjorn Neergaard Date: Thu, 14 Mar 2024 07:18:14 -0600 Subject: [PATCH] debian: add explicit GOARM for raspbian Signed-off-by: Bjorn Neergaard --- deb/common/rules | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deb/common/rules b/deb/common/rules index 9ff055f814..9a4c95229e 100755 --- a/deb/common/rules +++ b/deb/common/rules @@ -6,6 +6,13 @@ TARGET_ARCH = $(shell dpkg-architecture -qDEB_TARGET_ARCH) PKG_REVISION ?= 1 export PKG_REVISION +# FIXME: quick hardcoding of GOARM for raspbian; replace with a holistic +# refactoring of how we handle target architecture +distribution := $(shell . /etc/os-release; echo "$${ID}") +ifeq ($(distribution),raspbian) + export GOARM=6 +endif + # force packages to be built with xz compression, as Ubuntu 21.10 and up use # zstd compression, which is non-standard, and breaks 'dpkg-sig --verify' override_dh_builddeb: