[meta-virtualization][PATCH 02/15] docker: set go buildid to empty for improving reproducibility

<[email protected]>
Newsgroups org.yoctoproject.lists.meta-virtualization
Message-ID <[email protected]>
From: Changqing Li <[email protected]>

Signed-off-by: Changqing Li <[email protected]>
---
 recipes-containers/docker/docker.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-containers/docker/docker.inc b/recipes-containers/docker/docker.inc
index 99535a77..8da12aa6 100644
--- a/recipes-containers/docker/docker.inc
+++ b/recipes-containers/docker/docker.inc
@@ -89,6 +89,7 @@ do_compile() {
 
 	export DISABLE_WARN_OUTSIDE_CONTAINER=1
 	export BUILDFLAGS="-trimpath"
+	export DOCKER_LDFLAGS="-buildid="
 
 	cd ${S}/src/import/
 
@@ -103,6 +104,7 @@ do_compile() {
 	export LDFLAGS=""
 	export DOCKER_VERSION=${DOCKER_VERSION}
 	export BUILDFLAGS="-trimpath"
+	export GO_LDFLAGS="-buildid="
 	VERSION="${DOCKER_VERSION}" DOCKER_GITCOMMIT="${DOCKER_COMMIT}" make dynbinary
 }
 
-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.