Skip to content

Commit eda90f6

Browse files
committed
Remove gccgo support
Since Go 1.7, s390x uses upstream Go, so we have no reason to support gccgo any more. Signed-off-by: Justin Cormack <[email protected]>
1 parent a110512 commit eda90f6

10 files changed

+8
-212
lines changed

Dockerfile.gccgo

-104
This file was deleted.

Makefile

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: all binary build build-gccgo cross deb docs gccgo help init-go-pkg-cache install manpages rpm run shell test test-docker-py test-integration-cli tgz test-unit validate win
1+
.PHONY: all binary build cross deb docs help init-go-pkg-cache install manpages rpm run shell test test-docker-py test-integration-cli tgz test-unit validate win
22

33
# set the graph driver as the current graphdriver if not set
44
DOCKER_GRAPHDRIVER := $(if $(DOCKER_GRAPHDRIVER),$(DOCKER_GRAPHDRIVER),$(shell docker info 2>&1 | grep "Storage Driver" | sed 's/.*: //'))
@@ -80,9 +80,6 @@ binary: build ## build the linux binaries
8080
build: bundles init-go-pkg-cache
8181
docker build ${DOCKER_BUILD_ARGS} -t "$(DOCKER_IMAGE)" -f "$(DOCKERFILE)" .
8282

83-
build-gccgo: bundles init-go-pkg-cache
84-
docker build ${DOCKER_BUILD_ARGS} -t "$(DOCKER_IMAGE)-gccgo" -f Dockerfile.gccgo .
85-
8683
bundles:
8784
mkdir bundles
8885

@@ -104,9 +101,6 @@ deb: build ## build the deb packages
104101
docs: ## build the docs
105102
$(MAKE) -C docs docs
106103

107-
gccgo: build-gccgo ## build the gcc-go linux binaries
108-
$(DOCKER_FLAGS) "$(DOCKER_IMAGE)-gccgo" hack/make.sh gccgo
109-
110104
install: ## install the linux binaries
111105
KEEPBUNDLE=1 hack/make.sh install-binary
112106

hack/make/.integration-daemon-start

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# see test-integration-cli for example usage of this script
44

55
base="$ABS_DEST/.."
6-
export PATH="$base/binary-client:$base/binary-daemon:$base/dynbinary-client:$base/dynbinary-daemon:$base/gccgo:$base/dyngccgo:$PATH"
6+
export PATH="$base/binary-client:$base/binary-daemon:$base/dynbinary-client:$base/dynbinary-daemon:$PATH"
77

88
if ! command -v docker &> /dev/null; then
99
echo >&2 'error: binary-client or dynbinary-client must be run before .integration-daemon-start'

hack/make/dyngccgo

-11
This file was deleted.

hack/make/gccgo

-68
This file was deleted.

hack/make/test-unit

+2-6
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,9 @@ bundle_test_unit() {
3434
| grep -v github.com/docker/docker/vendor \
3535
| grep -v github.com/docker/docker/man \
3636
| grep -v github.com/docker/docker/integration-cli)
37-
go test $COVER $GCCGOFLAGS -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS $pkg_list
37+
go test $COVER -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS $pkg_list
3838
}
3939

40+
COVER=-cover
4041

41-
if [[ "$(go version)" == *"gccgo"* ]]; then
42-
GCCGOFLAGS=-gccgoflags="-lpthread"
43-
else
44-
COVER=-cover
45-
fi
4642
bundle_test_unit 2>&1 | tee -a "$DEST/test.log"

integration-cli/docker_cli_events_unix_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (s *DockerSuite) TestEventsRedirectStdout(c *check.C) {
4747
}
4848

4949
func (s *DockerSuite) TestEventsOOMDisableFalse(c *check.C) {
50-
testRequires(c, DaemonIsLinux, oomControl, memoryLimitSupport, NotGCCGO, swapMemorySupport)
50+
testRequires(c, DaemonIsLinux, oomControl, memoryLimitSupport, swapMemorySupport)
5151

5252
errChan := make(chan error)
5353
go func() {
@@ -77,7 +77,7 @@ func (s *DockerSuite) TestEventsOOMDisableFalse(c *check.C) {
7777
}
7878

7979
func (s *DockerSuite) TestEventsOOMDisableTrue(c *check.C) {
80-
testRequires(c, DaemonIsLinux, oomControl, memoryLimitSupport, NotGCCGO, NotArm, swapMemorySupport)
80+
testRequires(c, DaemonIsLinux, oomControl, memoryLimitSupport, NotArm, swapMemorySupport)
8181

8282
errChan := make(chan error)
8383
observer, err := newEventObserver(c)

integration-cli/docker_cli_run_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3507,7 +3507,7 @@ func (s *DockerSuite) TestPtraceContainerProcsFromHost(c *check.C) {
35073507

35083508
func (s *DockerSuite) TestAppArmorDeniesPtrace(c *check.C) {
35093509
// Not applicable on Windows as uses Unix specific functionality
3510-
testRequires(c, SameHostDaemon, Apparmor, DaemonIsLinux, NotGCCGO)
3510+
testRequires(c, SameHostDaemon, Apparmor, DaemonIsLinux)
35113511

35123512
// Run through 'sh' so we are NOT pid 1. Pid 1 may be able to trace
35133513
// itself, but pid>1 should not be able to trace pid1.

integration-cli/docker_cli_run_unix_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,7 @@ func (s *DockerSuite) TestRunOOMExitCode(c *check.C) {
611611
errChan := make(chan error)
612612
go func() {
613613
defer close(errChan)
614-
//changing memory to 40MB from 4MB due to an issue with GCCGO that test fails to start the container.
615-
out, exitCode, _ := dockerCmdWithError("run", "-m", "40MB", "busybox", "sh", "-c", "x=a; while true; do x=$x$x$x$x; done")
614+
out, exitCode, _ := dockerCmdWithError("run", "-m", "4MB", "busybox", "sh", "-c", "x=a; while true; do x=$x$x$x$x; done")
616615
if expected := 137; exitCode != expected {
617616
errChan <- fmt.Errorf("wrong exit code for OOM container: expected %d, got %d (output: %q)", expected, exitCode, out)
618617
}

integration-cli/requirements.go

-10
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,6 @@ var (
153153
},
154154
"Test requires support for IPv6",
155155
}
156-
NotGCCGO = testRequirement{
157-
func() bool {
158-
out, err := exec.Command("go", "version").Output()
159-
if err == nil && strings.Contains(string(out), "gccgo") {
160-
return false
161-
}
162-
return true
163-
},
164-
"Test requires native Golang compiler instead of GCCGO",
165-
}
166156
UserNamespaceInKernel = testRequirement{
167157
func() bool {
168158
if _, err := os.Stat("/proc/self/uid_map"); os.IsNotExist(err) {

0 commit comments

Comments
 (0)