From 3c0ceda536ca017c50a5a3f9743435e11519c2a2 Mon Sep 17 00:00:00 2001 From: Tyson Key Date: Tue, 5 Nov 2024 15:52:45 +0000 Subject: [PATCH 1/2] Add basic support for DragonFlyBSD --- internal/fs/node_noxattr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/fs/node_noxattr.go b/internal/fs/node_noxattr.go index 27bc6913a6f..281a16dbdcb 100644 --- a/internal/fs/node_noxattr.go +++ b/internal/fs/node_noxattr.go @@ -1,5 +1,5 @@ -//go:build aix || netbsd || openbsd -// +build aix netbsd openbsd +//go:build aix || dragonfly || netbsd || openbsd +// +build aix dragonfly netbsd openbsd package fs From dc89aad722fefe28c088c9eac07d7d1eca42c003 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 30 Nov 2024 15:41:43 +0100 Subject: [PATCH 2/2] build dragonflybsd binaries --- changelog/unreleased/issue-5131 | 6 ++++++ helpers/build-release-binaries/main.go | 17 +++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 changelog/unreleased/issue-5131 diff --git a/changelog/unreleased/issue-5131 b/changelog/unreleased/issue-5131 new file mode 100644 index 00000000000..fd38a216dd3 --- /dev/null +++ b/changelog/unreleased/issue-5131 @@ -0,0 +1,6 @@ +Enhancement: Add DragonflyBSD support + +Restic can now be compiled on DragonflyBSD. + +https://github.com/restic/restic/issues/5131 +https://github.com/restic/restic/pull/5138 diff --git a/helpers/build-release-binaries/main.go b/helpers/build-release-binaries/main.go index 81d126b0053..8fe8c24fb9b 100644 --- a/helpers/build-release-binaries/main.go +++ b/helpers/build-release-binaries/main.go @@ -243,14 +243,15 @@ func buildTargets(sourceDir, outputDir string, targets map[string][]string) { } var defaultBuildTargets = map[string][]string{ - "aix": {"ppc64"}, - "darwin": {"amd64", "arm64"}, - "freebsd": {"386", "amd64", "arm"}, - "linux": {"386", "amd64", "arm", "arm64", "ppc64le", "mips", "mipsle", "mips64", "mips64le", "riscv64", "s390x"}, - "netbsd": {"386", "amd64"}, - "openbsd": {"386", "amd64"}, - "windows": {"386", "amd64"}, - "solaris": {"amd64"}, + "aix": {"ppc64"}, + "darwin": {"amd64", "arm64"}, + "dragonfly": {"amd64"}, + "freebsd": {"386", "amd64", "arm"}, + "linux": {"386", "amd64", "arm", "arm64", "ppc64le", "mips", "mipsle", "mips64", "mips64le", "riscv64", "s390x"}, + "netbsd": {"386", "amd64"}, + "openbsd": {"386", "amd64"}, + "windows": {"386", "amd64"}, + "solaris": {"amd64"}, } func downloadModules(sourceDir string) {