Skip to content

Commit

Permalink
Merge pull request restic#5138 from vmlemon/issue-5131
Browse files Browse the repository at this point in the history
Implement basic DragonFlyBSD support
  • Loading branch information
MichaelEischer authored Nov 30, 2024
2 parents 9a674ec + dc89aad commit 0bf8af7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/issue-5131
Original file line number Diff line number Diff line change
@@ -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
17 changes: 9 additions & 8 deletions helpers/build-release-binaries/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions internal/fs/node_noxattr.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 0bf8af7

Please sign in to comment.