fix openbsd build by disabling fuse on openbsd

fixes #5334
This commit is contained in:
Steven Allen 2019-07-20 17:17:56 -07:00
parent 55afc478ec
commit 94bbc1ca7c
11 changed files with 26 additions and 10 deletions

View File

@ -1,4 +1,4 @@
// +build !nofuse
// +build !nofuse,!openbsd
package ipns

View File

@ -1,4 +1,4 @@
// +build !nofuse
// +build !nofuse,!openbsd
// package fuse/ipns implements a fuse filesystem that interfaces
// with ipns, the naming system for ipfs.

View File

@ -1,4 +1,4 @@
// +build !nofuse
// +build !nofuse,!openbsd
package ipns

View File

@ -1,5 +1,4 @@
// +build !nofuse
// +build !windows
// +build !nofuse,!windows,!openbsd
package mount

View File

@ -0,0 +1,13 @@
// +build !nofuse
package node
import (
"errors"
core "github.com/ipfs/go-ipfs/core"
)
func Mount(node *core.IpfsNode, fsdir, nsdir string) error {
return errors.New("FUSE not supported on OpenBSD. See #5334 (https://git.io/fjMuC).")
}

View File

@ -1,4 +1,4 @@
// +build !nofuse
// +build !openbsd,!nofuse
package node

View File

@ -1,4 +1,4 @@
// +build !windows,!nofuse
// +build !windows,!openbsd,!nofuse
package node

View File

@ -1,4 +1,4 @@
// +build !nofuse
// +build !nofuse,!openbsd
package readonly

View File

@ -1,4 +1,4 @@
// +build linux darwin freebsd netbsd openbsd
// +build linux darwin freebsd netbsd
// +build !nofuse
package readonly

View File

@ -1,4 +1,4 @@
// +build linux darwin freebsd netbsd openbsd
// +build linux darwin freebsd netbsd
// +build !nofuse
package readonly

View File

@ -20,8 +20,12 @@ SUPPORTED_PLATFORMS += linux-amd64
SUPPORTED_PLATFORMS += darwin-386
SUPPORTED_PLATFORMS += darwin-amd64
SUPPORTED_PLATFORMS += freebsd-386
SUPPORTED_PLATFORMS += freebsd-amd64
SUPPORTED_PLATFORMS += openbsd-386
SUPPORTED_PLATFORMS += openbsd-amd64
space:=
space+=
comma:=,