diff options
Diffstat (limited to 'recipes-containers/docker/files/0001-libnetwork-use-GO-instead-of-go.patch')
| -rw-r--r-- | recipes-containers/docker/files/0001-libnetwork-use-GO-instead-of-go.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/recipes-containers/docker/files/0001-libnetwork-use-GO-instead-of-go.patch b/recipes-containers/docker/files/0001-libnetwork-use-GO-instead-of-go.patch new file mode 100644 index 00000000..c623b260 --- /dev/null +++ b/recipes-containers/docker/files/0001-libnetwork-use-GO-instead-of-go.patch | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | From 04c07804930faad708218a3134c81de06a9c742a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Bruce Ashfield <bruce.ashfield@windriver.com> | ||
| 3 | Date: Fri, 6 Apr 2018 23:58:22 -0400 | ||
| 4 | Subject: [PATCH] libnetwork: use $(GO) instead of go | ||
| 5 | |||
| 6 | Ensure that the libnetwork makefile uses the go cross flags and | ||
| 7 | utilities. | ||
| 8 | |||
| 9 | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> | ||
| 10 | --- | ||
| 11 | Makefile | 14 +++++++------- | ||
| 12 | 1 file changed, 7 insertions(+), 7 deletions(-) | ||
| 13 | |||
| 14 | Index: git/libnetwork/Makefile | ||
| 15 | =================================================================== | ||
| 16 | --- git.orig/libnetwork/Makefile | ||
| 17 | +++ git/libnetwork/Makefile | ||
| 18 | @@ -45,9 +45,9 @@ | ||
| 19 | build-local: | ||
| 20 | @echo "🐳 $@" | ||
| 21 | @mkdir -p "bin" | ||
| 22 | - go build -tags experimental -o "bin/dnet" ./cmd/dnet | ||
| 23 | - go build -o "bin/docker-proxy" ./cmd/proxy | ||
| 24 | - CGO_ENABLED=0 go build -o "bin/diagnosticClient" ./cmd/diagnostic | ||
| 25 | + $(GO) build -tags experimental -o "bin/dnet" ./cmd/dnet | ||
| 26 | + $(GO) build -o "bin/proxy" ./cmd/proxy | ||
| 27 | + CGO_ENABLED=0 $(GO) build -o "bin/diagnosticClient" ./cmd/diagnostic | ||
| 28 | CGO_ENABLED=0 go build -o "bin/testMain" ./cmd/networkdb-test/testMain.go | ||
| 29 | |||
| 30 | build-images: | ||
| 31 | @@ -82,8 +82,8 @@ | ||
| 32 | |||
| 33 | cross-local: | ||
| 34 | @echo "🐳 $@" | ||
| 35 | - go build -o "bin/dnet-$$GOOS-$$GOARCH" ./cmd/dnet | ||
| 36 | - go build -o "bin/docker-proxy-$$GOOS-$$GOARCH" ./cmd/proxy | ||
| 37 | + @$(GO) build -linkshared $(GOBUILDFLAGS) -o "bin/docker-proxy-$$GOOS-$$GOARCH" ./cmd/proxy | ||
| 38 | + @$(GO) build -linkshared $(GOBUILDFLAGS) -o "bin/dnet-$$GOOS-$$GOARCH" ./cmd/dnet | ||
| 39 | |||
| 40 | # Rebuild protocol buffers. | ||
| 41 | # These may need to be rebuilt after vendoring updates, so .proto files are declared .PHONY so they are always rebuilt. | ||
| 42 | @@ -130,7 +130,7 @@ | ||
| 43 | if ls $$dir/*.go &> /dev/null; then \ | ||
| 44 | pushd . &> /dev/null ; \ | ||
| 45 | cd $$dir ; \ | ||
| 46 | - go test ${INSIDECONTAINER} -test.parallel 5 -test.v -covermode=count -coverprofile=./profile.tmp ; \ | ||
| 47 | + $(GO) test ${INSIDECONTAINER} -test.parallel 5 -test.v -covermode=count -coverprofile=./profile.tmp ; \ | ||
| 48 | ret=$$? ;\ | ||
| 49 | if [ $$ret -ne 0 ]; then exit $$ret; fi ;\ | ||
| 50 | popd &> /dev/null; \ | ||
| 51 | @@ -145,7 +145,7 @@ | ||
| 52 | # Depends on binaries because vet will silently fail if it can not load compiled imports | ||
| 53 | vet: ## run go vet | ||
| 54 | @echo "🐳 $@" | ||
| 55 | - @test -z "$$(go vet ${PACKAGES} 2>&1 | grep -v 'constant [0-9]* not a string in call to Errorf' | egrep -v '(timestamp_test.go|duration_test.go|exit status 1)' | tee /dev/stderr)" | ||
| 56 | + @test -z "$$($(GO) vet ${PACKAGES} 2>&1 | grep -v 'constant [0-9]* not a string in call to Errorf' | egrep -v '(timestamp_test.go|duration_test.go|exit status 1)' | tee /dev/stderr)" | ||
| 57 | |||
| 58 | misspell: | ||
| 59 | @echo "🐳 $@" | ||
