From 8f44cdc284477e0dacaca7d38305b9749e945c88 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Sun, 1 Nov 2020 10:23:50 +0100 Subject: [PATCH] build: rpm: don't strip binaries fixes build failure for aarch64 ``` make rpm-docker GOARCH=arm64 GOOS=linux + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip /usr/bin/strip: Unable to recognise the format of the input file `/build/src/artifacts/rpmbuild/BUILDROOT/zrepl-v0.3.0.38.g53028ed5-1.aarch64/usr/bin/zrepl' error: Bad exit status from /var/tmp/rpm-tmp.g8Fdbs (%install) Bad exit status from /var/tmp/rpm-tmp.g8Fdbs (%install) ``` --- packaging/rpm/zrepl.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packaging/rpm/zrepl.spec b/packaging/rpm/zrepl.spec index 82c158e..5cdaad5 100644 --- a/packaging/rpm/zrepl.spec +++ b/packaging/rpm/zrepl.spec @@ -12,6 +12,8 @@ zrepl is a one-stop, integrated solution for ZFS replication.} %define _source_payload w9.gzdio %define _binary_payload w9.gzdio +# don't strip pre-built binaries +%define __strip /usr/bin/true Name: zrepl Release: 1