{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/rkt/issues/2797","repository_url":"https://api.github.com/repos/coreos/rkt","labels_url":"https://api.github.com/repos/coreos/rkt/issues/2797/labels{/name}","comments_url":"https://api.github.com/repos/coreos/rkt/issues/2797/comments","events_url":"https://api.github.com/repos/coreos/rkt/issues/2797/events","html_url":"https://github.com/coreos/rkt/issues/2797","id":160192641,"number":2797,"title":"rkt: doesn't build under OSX","user":{"login":"philips","id":33544,"avatar_url":"https://avatars.githubusercontent.com/u/33544?v=3","gravatar_id":"","url":"https://api.github.com/users/philips","html_url":"https://github.com/philips","followers_url":"https://api.github.com/users/philips/followers","following_url":"https://api.github.com/users/philips/following{/other_user}","gists_url":"https://api.github.com/users/philips/gists{/gist_id}","starred_url":"https://api.github.com/users/philips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philips/subscriptions","organizations_url":"https://api.github.com/users/philips/orgs","repos_url":"https://api.github.com/users/philips/repos","events_url":"https://api.github.com/users/philips/events{/privacy}","received_events_url":"https://api.github.com/users/philips/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coreos/rkt/labels/area/developer%20tooling","name":"area/developer tooling","color":"bfe5bf"},{"url":"https://api.github.com/repos/coreos/rkt/labels/priority/Pmaybe","name":"priority/Pmaybe","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/coreos/rkt/milestones/22","html_url":"https://github.com/coreos/rkt/milestones/vfuture","labels_url":"https://api.github.com/repos/coreos/rkt/milestones/22/labels","id":1343142,"number":22,"title":"vfuture","description":"Issues to be addressed at an as-now-unspecified point in the future.","creator":{"login":"jonboulle","id":2601015,"avatar_url":"https://avatars.githubusercontent.com/u/2601015?v=3","gravatar_id":"","url":"https://api.github.com/users/jonboulle","html_url":"https://github.com/jonboulle","followers_url":"https://api.github.com/users/jonboulle/followers","following_url":"https://api.github.com/users/jonboulle/following{/other_user}","gists_url":"https://api.github.com/users/jonboulle/gists{/gist_id}","starred_url":"https://api.github.com/users/jonboulle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonboulle/subscriptions","organizations_url":"https://api.github.com/users/jonboulle/orgs","repos_url":"https://api.github.com/users/jonboulle/repos","events_url":"https://api.github.com/users/jonboulle/events{/privacy}","received_events_url":"https://api.github.com/users/jonboulle/received_events","type":"User","site_admin":false},"open_issues":71,"closed_issues":10,"state":"open","created_at":"2015-10-07T17:26:58Z","updated_at":"2016-06-30T13:05:19Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2016-06-14T14:16:00Z","updated_at":"2016-07-05T16:33:13Z","closed_at":null,"body":"```\r\n$ go get github.com/coreos/rkt/rkt\r\n../../coreos/rkt/rkt/fetch.go:21:2: no buildable Go source files in /Users/philips/src/github.com/coreos/rkt/common/apps\r\n../../coreos/rkt/rkt/api_service.go:35:2: no buildable Go source files in /Users/philips/src/github.com/coreos/rkt/common/cgroup\r\n../../coreos/rkt/rkt/main.go:20:2: no buildable Go source files in /Users/philips/src/github.com/coreos/rkt/pkg/multicall\r\n```\r\n\r\nThere are many useful rkt subcommands like fetch, image, etc that should work under OS X. We should make sure rkt compiles and the subcommands that don't work simply error out."},"comment":{"url":"https://api.github.com/repos/coreos/rkt/issues/comments/230531061","html_url":"https://github.com/coreos/rkt/issues/2797#issuecomment-230531061","issue_url":"https://api.github.com/repos/coreos/rkt/issues/2797","id":230531061,"user":{"login":"discordianfish","id":275966,"avatar_url":"https://avatars.githubusercontent.com/u/275966?v=3","gravatar_id":"","url":"https://api.github.com/users/discordianfish","html_url":"https://github.com/discordianfish","followers_url":"https://api.github.com/users/discordianfish/followers","following_url":"https://api.github.com/users/discordianfish/following{/other_user}","gists_url":"https://api.github.com/users/discordianfish/gists{/gist_id}","starred_url":"https://api.github.com/users/discordianfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discordianfish/subscriptions","organizations_url":"https://api.github.com/users/discordianfish/orgs","repos_url":"https://api.github.com/users/discordianfish/repos","events_url":"https://api.github.com/users/discordianfish/events{/privacy}","received_events_url":"https://api.github.com/users/discordianfish/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T16:33:13Z","updated_at":"2016-07-05T16:33:13Z","body":"I cleaned up some more things and rkt now can be build via the regular autogen/configure/make. But building stage1_fly fails and fixing this looks a bit more involved:\r\n\r\n```\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:181: undefined: syscall.MS_BIND\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:186: undefined: syscall.MS_REC\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:186: undefined: syscall.MS_SHARED\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:195: undefined: syscall.MS_REMOUNT\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:195: undefined: syscall.MS_RDONLY\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:263: undefined: syscall.MS_REC\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:263: undefined: syscall.MS_SHARED\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:264: undefined: syscall.MS_BIND\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:264: undefined: syscall.MS_REC\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:266: undefined: syscall.MS_REC\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:266: too many errors\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:181: undefined: syscall.MS_BIND\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:186: undefined: syscall.MS_REC\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:186: undefined: syscall.MS_SHARED\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:195: undefined: syscall.MS_REMOUNT\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:195: undefined: syscall.MS_RDONLY\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:263: undefined: syscall.MS_REC\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:263: undefined: syscall.MS_SHARED\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:264: undefined: syscall.MS_BIND\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:264: undefined: syscall.MS_REC\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:266: undefined: syscall.MS_REC\r\nbuild-rkt-1.9.1+git/gopath/src/github.com/coreos/rkt/stage1_fly/run/main.go:266: too many errors\r\n```\r\n\r\nSo it looks like MS_RD, MS_REC and MS_SHARED flags are required.\r\n\r\n- MS_RD: This should be simply called MNT_RDONLY\r\n- MS_REC and MS_SHARED are linux only, found some good docs here: https://lwn.net/Articles/159092/\r\n\r\nIt doesn't look like there is any drop-in replacement in the darwin world. There is http://bindfs.org/ but using fuse for this seems ugly, so do network filesystem based solutions. So this leads me to a few questions:\r\n\r\n1) Should I clean up what I have and submit it as a PR? That should make stage0 run on darwin and we can look into stage1 aftwards.\r\n\r\n2) Do you think it makes sense to add support for darwin to stage1_fly or would it make more sense to build a new, osx specific stage1?"}}
{"actor":{"display_login":"discordianfish"}}