summaryrefslogtreecommitdiffstats
path: root/recipes-containers/docker-compose/docker-compose_git.bb
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2026-02-09 16:30:43 +0800
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-02-09 20:22:07 +0000
commit9a28d5edadbec84e07e64dc7fbb67543becf22a9 (patch)
tree4ba40efe168312289dfba1edb815d20cbfc2bffb /recipes-containers/docker-compose/docker-compose_git.bb
parent914b5d23c40e2d1feae4c8a25bae0820fcfb3bd3 (diff)
downloadmeta-virtualization-9a28d5edadbec84e07e64dc7fbb67543becf22a9.tar.gz
recipes/golang: improve reproducibility
Refer [1], cgo will embeded cgo_ldflags in the intermediary output, which make content ID will be incfluenced by cgo_ldflags. '--sysroot=xxx' includes build path, which will make the binary not reproducible, these recipes can build successfully without --sysroot, so remove it [1] https://git.openembedded.org/openembedded-core/commit/?id=1797741aad02b8bf429fac4b81e30cdda64b5448 Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/docker-compose/docker-compose_git.bb')
-rw-r--r--recipes-containers/docker-compose/docker-compose_git.bb6
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-containers/docker-compose/docker-compose_git.bb b/recipes-containers/docker-compose/docker-compose_git.bb
index ccb36a16..1c39c862 100644
--- a/recipes-containers/docker-compose/docker-compose_git.bb
+++ b/recipes-containers/docker-compose/docker-compose_git.bb
@@ -58,8 +58,8 @@ do_compile() {
58 # Pass the needed cflags/ldflags so that cgo 58 # Pass the needed cflags/ldflags so that cgo
59 # can find the needed headers files and libraries 59 # can find the needed headers files and libraries
60 export GOARCH=${TARGET_GOARCH} 60 export GOARCH=${TARGET_GOARCH}
61 export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" 61 export CGO_CFLAGS="${CFLAGS}"
62 export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" 62 export CGO_LDFLAGS="${LDFLAGS}"
63 63
64 GO_LDFLAGS="-s -w -X internal.Version=${PV} -X ${COMPOSE_PKG}/internal.Version=${PV}" 64 GO_LDFLAGS="-s -w -X internal.Version=${PV} -X ${COMPOSE_PKG}/internal.Version=${PV}"
65 GO_BUILDTAGS="" 65 GO_BUILDTAGS=""
@@ -85,4 +85,4 @@ INSANE_SKIP:${PN} += "ldflags already-stripped"
85 85
86# the AWS dependency is 8GB, try and control the 86# the AWS dependency is 8GB, try and control the
87# size of the clones 87# size of the clones
88BB_GIT_SHALLOW = "1" \ No newline at end of file 88BB_GIT_SHALLOW = "1"