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