From: Bruce Ashfield <[email protected]>

With this, we build and package docker without QA warnings due to
references to TMPDIR.

Signed-off-by: Bruce Ashfield <[email protected]>
---
 ...i-use-external-GO111MODULE-and-cross-compiler.patch |  2 +-
 .../files/0001-dynbinary-use-go-cross-compiler.patch   |  2 +-
 .../files/0001-libnetwork-use-GO-instead-of-go.patch   | 10 +++++-----
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/recipes-containers/docker/files/0001-cli-use-external-GO111MODULE-and-cross-compiler.patch
 
b/recipes-containers/docker/files/0001-cli-use-external-GO111MODULE-and-cross-compiler.patch
index 16b5f9e..d68de1c 100644
--- 
a/recipes-containers/docker/files/0001-cli-use-external-GO111MODULE-and-cross-compiler.patch
+++ 
b/recipes-containers/docker/files/0001-cli-use-external-GO111MODULE-and-cross-compiler.patch
@@ -19,6 +19,6 @@ Index: git/cli/scripts/build/binary
 -export GO111MODULE=auto
  
 -go build -o "${TARGET}" -tags "${GO_BUILDTAGS}" --ldflags "${GO_LDFLAGS}" 
${GO_BUILDMODE} "${SOURCE}"
-+${GO} build -o "${TARGET}" -tags "${GO_BUILDTAGS}" --ldflags "${GO_LDFLAGS}" 
${GO_BUILDMODE} "${SOURCE}"
++${GO} build -trimpath -o "${TARGET}" -tags "${GO_BUILDTAGS}" --ldflags 
"${GO_LDFLAGS}" ${GO_BUILDMODE} "${SOURCE}"
  
  ln -sf "$(basename "${TARGET}")" "$(dirname "${TARGET}")/docker"
diff --git 
a/recipes-containers/docker/files/0001-dynbinary-use-go-cross-compiler.patch 
b/recipes-containers/docker/files/0001-dynbinary-use-go-cross-compiler.patch
index 971c60d..c6edaf4 100644
--- a/recipes-containers/docker/files/0001-dynbinary-use-go-cross-compiler.patch
+++ b/recipes-containers/docker/files/0001-dynbinary-use-go-cross-compiler.patch
@@ -17,7 +17,7 @@ Index: git/src/import/hack/make/.binary
        echo "Building: $DEST/$BINARY_FULLNAME"
        echo "GOOS=\"${GOOS}\" GOARCH=\"${GOARCH}\" GOARM=\"${GOARM}\""
 -      go build \
-+      ${GO} build \
++      ${GO} build -trimpath \
                -o "$DEST/$BINARY_FULLNAME" \
                "${BUILDFLAGS[@]}" \
                -ldflags "
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
index c623b26..d4f84e3 100644
--- 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
@@ -22,9 +22,9 @@ Index: git/libnetwork/Makefile
 -      go build -tags experimental -o "bin/dnet" ./cmd/dnet
 -      go build -o "bin/docker-proxy" ./cmd/proxy
 -      CGO_ENABLED=0 go build -o "bin/diagnosticClient" ./cmd/diagnostic
-+      $(GO) build -tags experimental -o "bin/dnet" ./cmd/dnet
-+      $(GO) build -o "bin/proxy" ./cmd/proxy
-+      CGO_ENABLED=0 $(GO) build -o "bin/diagnosticClient" ./cmd/diagnostic
++      $(GO) build -trimpath -tags experimental -o "bin/dnet" ./cmd/dnet
++      $(GO) build -trimpath -o "bin/proxy" ./cmd/proxy
++      CGO_ENABLED=0 $(GO) build -trimpath -o "bin/diagnosticClient" 
./cmd/diagnostic
        CGO_ENABLED=0 go build -o "bin/testMain" 
./cmd/networkdb-test/testMain.go
  
  build-images:
@@ -34,8 +34,8 @@ Index: git/libnetwork/Makefile
        @echo "🐳 $@"
 -      go build -o "bin/dnet-$$GOOS-$$GOARCH" ./cmd/dnet
 -      go build -o "bin/docker-proxy-$$GOOS-$$GOARCH" ./cmd/proxy
-+      @$(GO) build -linkshared $(GOBUILDFLAGS) -o 
"bin/docker-proxy-$$GOOS-$$GOARCH" ./cmd/proxy
-+      @$(GO) build -linkshared $(GOBUILDFLAGS) -o "bin/dnet-$$GOOS-$$GOARCH" 
./cmd/dnet
++      @$(GO) build -trimpath -linkshared $(GOBUILDFLAGS) -o 
"bin/docker-proxy-$$GOOS-$$GOARCH" ./cmd/proxy
++      @$(GO) build -trimpath -linkshared $(GOBUILDFLAGS) -o 
"bin/dnet-$$GOOS-$$GOARCH" ./cmd/dnet
  
  # Rebuild protocol buffers.
  # These may need to be rebuilt after vendoring updates, so .proto files are 
declared .PHONY so they are always rebuilt.
-- 
2.38.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7766): 
https://lists.yoctoproject.org/g/meta-virtualization/message/7766
Mute This Topic: https://lists.yoctoproject.org/mt/95617042/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to