Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove all darwin specific files and use more generic _unsupported with build tags. #3857
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
many big +1s |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tianon
Jan 30, 2014
Member
If you swap !linux with !linux,amd64 we can probably enable cross compiling for i386 and arm even.
|
If you swap |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
done |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tianon
Jan 30, 2014
Member
Shoot, I told you wrong - reading the docs it should be !linux !amd64 (I think) - http://golang.org/pkg/go/build/#hdr-Build_Constraints
My brain is fried I think; can someone else verify my broken logic?
|
Shoot, I told you wrong - reading the docs it should be My brain is fried I think; can someone else verify my broken logic? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tianon
Jan 31, 2014
Member
Closes #2544
(in which I had already figured out the necessary flags - I'm updating the files here to actually compile properly and include cross-compiling for linux/arm and linux/i386, and will black-market PR my changes when I'm finished)
|
Closes #2544 (in which I had already figured out the necessary flags - I'm updating the files here to actually compile properly and include cross-compiling for linux/arm and linux/i386, and will black-market PR my changes when I'm finished) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tianon
Jan 31, 2014
Member
---> Making bundle: binary (in bundles/0.7.6-dev/binary)
Created binary: /go/src/github.com/dotcloud/docker/bundles/0.7.6-dev/binary/docker-0.7.6-dev
---> Making bundle: cross (in bundles/0.7.6-dev/cross)
Created symlinks: /go/src/github.com/dotcloud/docker/bundles/0.7.6-dev/cross/linux/amd64/docker-0.7.6-dev
Created binary: /go/src/github.com/dotcloud/docker/bundles/0.7.6-dev/cross/linux/386/docker-0.7.6-dev
Created binary: /go/src/github.com/dotcloud/docker/bundles/0.7.6-dev/cross/linux/arm/docker-0.7.6-dev
Created binary: /go/src/github.com/dotcloud/docker/bundles/0.7.6-dev/cross/darwin/amd64/docker-0.7.6-dev
Created binary: /go/src/github.com/dotcloud/docker/bundles/0.7.6-dev/cross/darwin/386/docker-0.7.6-dev
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
See creack#4 for the black-market PR >:) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
unclejack
Jan 31, 2014
Contributor
@creack I'm getting this when running make.sh:
---> Making bundle: binary (in bundles/0.7.6-dev/binary)
# github.com/dotcloud/docker/pkg/mount
pkg/mount/flags_unsupported.go:4: parseOptions redeclared in this block
previous declaration at pkg/mount/flags_linux.go:10
pkg/mount/mounter_unsupported.go:4: mount redeclared in this block
previous declaration at pkg/mount/mounter_linux.go:7
pkg/mount/mounter_unsupported.go:8: unmount redeclared in this block
previous declaration at pkg/mount/mounter_linux.go:19
# github.com/dotcloud/docker/pkg/netlink
pkg/netlink/netlink_unsupported.go:9: NetworkGetRoutes redeclared in this block
previous declaration at pkg/netlink/netlink_linux.go:476
pkg/netlink/netlink_unsupported.go:13: NetworkLinkAdd redeclared in this block
previous declaration at pkg/netlink/netlink_linux.go:445
pkg/netlink/netlink_unsupported.go:17: NetworkLinkUp redeclared in this block
previous declaration at pkg/netlink/netlink_linux.go:334
pkg/netlink/netlink_unsupported.go:21: NetworkLinkAddIp redeclared in this block
previous declaration at pkg/netlink/netlink_linux.go:389
pkg/netlink/netlink_unsupported.go:25: AddDefaultGw redeclared in this block
previous declaration at pkg/netlink/netlink_linux.go:301
pkg/netlink/netlink_unsupported.go:30: NetworkSetMTU redeclared in this block
previous declaration at pkg/netlink/netlink_linux.go:356
# github.com/dotcloud/docker/utils
utils/uname_unsupported.go:8: Utsname redeclared in this block
previous declaration at utils/uname_linux.go:7
utils/uname_unsupported.go:12: uname redeclared in this block
previous declaration at utils/uname_linux.go:9
|
@creack I'm getting this when running make.sh:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
@unclejack you should test it again now |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
LGTM |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
LGTM tested on mac and linux |
creack commentedJan 30, 2014
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes guillaume.charmes@docker.com (github: creack)