Skip to content

Commit

Permalink
Merge pull request #6535 from ipfs/fix/5334
Browse files Browse the repository at this point in the history
fix {net,open}bsd build by disabling fuse on openbsd
  • Loading branch information
Stebalien authored Jul 22, 2019
2 parents 30d4e96 + 90c656d commit 876d5ba
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 10 deletions.
2 changes: 1 addition & 1 deletion fuse/ipns/ipns_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !nofuse
// +build !nofuse,!openbsd,!netbsd

package ipns

Expand Down
2 changes: 1 addition & 1 deletion fuse/ipns/ipns_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !nofuse
// +build !nofuse,!openbsd,!netbsd

// package fuse/ipns implements a fuse filesystem that interfaces
// with ipns, the naming system for ipfs.
Expand Down
2 changes: 1 addition & 1 deletion fuse/ipns/link_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !nofuse
// +build !nofuse,!openbsd,!netbsd

package ipns

Expand Down
3 changes: 1 addition & 2 deletions fuse/mount/fuse.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// +build !nofuse
// +build !windows
// +build !nofuse,!windows,!openbsd,!netbsd

package mount

Expand Down
13 changes: 13 additions & 0 deletions fuse/node/mount_notsupp.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// +build !nofuse,openbsd !nofuse,netbsd

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 or NetBSD. See #5334 (https://git.io/fjMuC).")
}
2 changes: 1 addition & 1 deletion fuse/node/mount_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !nofuse
// +build !openbsd,!nofuse,!netbsd

package node

Expand Down
2 changes: 1 addition & 1 deletion fuse/node/mount_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !windows,!nofuse
// +build !windows,!openbsd,!netbsd,!nofuse

package node

Expand Down
2 changes: 1 addition & 1 deletion fuse/readonly/ipfs_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !nofuse
// +build !nofuse,!openbsd,!netbsd

package readonly

Expand Down
2 changes: 1 addition & 1 deletion fuse/readonly/mount_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux darwin freebsd netbsd openbsd
// +build linux darwin freebsd
// +build !nofuse

package readonly
Expand Down
2 changes: 1 addition & 1 deletion fuse/readonly/readonly_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux darwin freebsd netbsd openbsd
// +build linux darwin freebsd
// +build !nofuse

package readonly
Expand Down
7 changes: 7 additions & 0 deletions mk/util.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,15 @@ 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

SUPPORTED_PLATFORMS += netbsd-386
SUPPORTED_PLATFORMS += netbsd-amd64

space:=
space+=
comma:=,
Expand Down

0 comments on commit 876d5ba

Please sign in to comment.