From 2b6af55142487bd7d64bd69cc0f0d3cc0078aad3 Mon Sep 17 00:00:00 2001 From: Denis Fondras Date: Tue, 13 Apr 2021 21:45:04 +0200 Subject: [PATCH] Allow to compile Kopia cli on OpenBSD (#983) * allow to compile Kopia cli on OpenBSD --- .goreleaser.yml | 2 ++ fs/localfs/local_fs_32bit.go | 2 +- fs/localfs/local_fs_64bit.go | 2 +- internal/fusemount/fusefs.go | 2 +- internal/mount/mount_fuse.go | 2 +- internal/mount/mount_posix_webdav_helper.go | 2 +- internal/mount/mount_unsupported.go | 2 +- internal/ospath/ospath_xdg.go | 2 +- snapshot/restore/local_fs_output_unix.go | 2 +- 9 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 9669bfa9b..4e811eeed 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -9,6 +9,7 @@ builds: goos: - linux - freebsd + - openbsd goarch: - amd64 - arm @@ -26,6 +27,7 @@ archives: linux: linux windows: windows freebsd: freebsd-experimental + openbsd: openbsd-experimental amd64: x64 name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}" wrap_in_directory: true diff --git a/fs/localfs/local_fs_32bit.go b/fs/localfs/local_fs_32bit.go index 4ab847842..391dfed2a 100644 --- a/fs/localfs/local_fs_32bit.go +++ b/fs/localfs/local_fs_32bit.go @@ -1,5 +1,5 @@ // +build !windows -// +build !amd64,!arm64,!arm darwin +// +build !amd64,!arm64,!arm darwin openbsd package localfs diff --git a/fs/localfs/local_fs_64bit.go b/fs/localfs/local_fs_64bit.go index 156f85ff1..da221d923 100644 --- a/fs/localfs/local_fs_64bit.go +++ b/fs/localfs/local_fs_64bit.go @@ -1,4 +1,4 @@ -// +build !windows +// +build !windows,!openbsd // +build !darwin // +build amd64 arm64 arm diff --git a/internal/fusemount/fusefs.go b/internal/fusemount/fusefs.go index 69b19c33e..8eb97d61d 100644 --- a/internal/fusemount/fusefs.go +++ b/internal/fusemount/fusefs.go @@ -1,4 +1,4 @@ -// +build !windows +// +build !windows,!openbsd // Package fusemount implements FUSE filesystem nodes for mounting contents of filesystem stored in repository. // diff --git a/internal/mount/mount_fuse.go b/internal/mount/mount_fuse.go index 839c54389..bc28d5e5b 100644 --- a/internal/mount/mount_fuse.go +++ b/internal/mount/mount_fuse.go @@ -1,4 +1,4 @@ -// +build !windows,!freebsd +// +build !windows,!freebsd,!openbsd package mount diff --git a/internal/mount/mount_posix_webdav_helper.go b/internal/mount/mount_posix_webdav_helper.go index 9d4ac777f..09014ba9e 100644 --- a/internal/mount/mount_posix_webdav_helper.go +++ b/internal/mount/mount_posix_webdav_helper.go @@ -1,4 +1,4 @@ -// +build !windows,!freebsd +// +build !windows,!freebsd,!openbsd package mount diff --git a/internal/mount/mount_unsupported.go b/internal/mount/mount_unsupported.go index 6374e5d94..cf40c3265 100644 --- a/internal/mount/mount_unsupported.go +++ b/internal/mount/mount_unsupported.go @@ -1,4 +1,4 @@ -// +build freebsd +// +build freebsd openbsd package mount diff --git a/internal/ospath/ospath_xdg.go b/internal/ospath/ospath_xdg.go index 237765339..8ae463168 100644 --- a/internal/ospath/ospath_xdg.go +++ b/internal/ospath/ospath_xdg.go @@ -1,4 +1,4 @@ -// +build !windows,!darwin +// +build !windows,!darwin,!openbsd package ospath diff --git a/snapshot/restore/local_fs_output_unix.go b/snapshot/restore/local_fs_output_unix.go index 9c4da7e01..25339884a 100644 --- a/snapshot/restore/local_fs_output_unix.go +++ b/snapshot/restore/local_fs_output_unix.go @@ -1,4 +1,4 @@ -// +build linux freebsd +// +build linux freebsd openbsd package restore