diff options
| author | Changqing Li <changqing.li@windriver.com> | 2026-02-09 16:30:43 +0800 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-02-09 20:22:07 +0000 |
| commit | 9a28d5edadbec84e07e64dc7fbb67543becf22a9 (patch) | |
| tree | 4ba40efe168312289dfba1edb815d20cbfc2bffb /recipes-containers/podman | |
| parent | 914b5d23c40e2d1feae4c8a25bae0820fcfb3bd3 (diff) | |
| download | meta-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/podman')
| -rw-r--r-- | recipes-containers/podman/podman_git.bb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-containers/podman/podman_git.bb b/recipes-containers/podman/podman_git.bb index f09e01f8..87e694e5 100644 --- a/recipes-containers/podman/podman_git.bb +++ b/recipes-containers/podman/podman_git.bb | |||
| @@ -88,8 +88,8 @@ do_compile() { | |||
| 88 | # can find the needed headers files and libraries | 88 | # can find the needed headers files and libraries |
| 89 | export GOARCH=${TARGET_GOARCH} | 89 | export GOARCH=${TARGET_GOARCH} |
| 90 | export CGO_ENABLED="1" | 90 | export CGO_ENABLED="1" |
| 91 | export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" | 91 | export CGO_CFLAGS="${CFLAGS}" |
| 92 | export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" | 92 | export CGO_LDFLAGS="${LDFLAGS}" |
| 93 | 93 | ||
| 94 | # podman now builds go-md2man and requires the host/build details | 94 | # podman now builds go-md2man and requires the host/build details |
| 95 | export NATIVE_GOOS=${BUILD_GOOS} | 95 | export NATIVE_GOOS=${BUILD_GOOS} |
