Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix {net,open}bsd build by disabling fuse on openbsd #6535

Merged
merged 2 commits into from
Jul 22, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix openbsd build by disabling fuse on openbsd
fixes #5334
  • Loading branch information
Stebalien committed Jul 22, 2019
commit 94bbc1ca7cb0503bb4d1797d03f32d55bb978cdf
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

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

// 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

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

package mount

Expand Down
13 changes: 13 additions & 0 deletions fuse/node/mount_openbsd.go
Original file line number Diff line number Diff line change
@@ -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).")
}
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

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,!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

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 netbsd
// +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 netbsd
// +build !nofuse

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