From 4be45de1c213c12914f3056b07bea883d558d4d3 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 27 Oct 2023 19:52:14 +0200 Subject: [PATCH] Restore support for ARMv5 platforms --- changelog/unreleased/issue-4540 | 9 +++++++++ helpers/build-release-binaries/main.go | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 changelog/unreleased/issue-4540 diff --git a/changelog/unreleased/issue-4540 b/changelog/unreleased/issue-4540 new file mode 100644 index 000000000..5cac99b47 --- /dev/null +++ b/changelog/unreleased/issue-4540 @@ -0,0 +1,9 @@ +Bugfix: Restore ARMv5 support for ARM binaries + +The official release binaries for restic 0.16.1 were accidentally built to +require ARMv7. We have updated the build process to restore support for ARMv5. + +Please note that restic 0.17.0 will drop support for ARMv5 and require at least +ARMv6. + +https://github.com/restic/restic/issues/4540 diff --git a/helpers/build-release-binaries/main.go b/helpers/build-release-binaries/main.go index f14f60db6..169e1e001 100644 --- a/helpers/build-release-binaries/main.go +++ b/helpers/build-release-binaries/main.go @@ -125,6 +125,9 @@ func build(sourceDir, outputDir, goos, goarch string) (filename string) { "GOOS="+goos, "GOARCH="+goarch, ) + if goarch == "arm" { + c.Env = append(c.Env, "GOARM=5") + } verbose("run %v %v in %v", "go", c.Args, c.Dir) err := c.Run()