| Message ID | 20251208091148.368769-1-changqing.li@windriver.com |
|---|---|
| State | New |
| Headers | show |
| Series | [1/2] go.bbclass: change GOTMPDIR to improve reproducibility | expand |
On Mon, 8 Dec 2025 at 10:11, Changqing Li via lists.openembedded.org <changqing.li=windriver.com@lists.openembedded.org> wrote: > This patch changes GOTMPDIR from ${WORKDIR}/build-tmp to > ${WORKDIR}/go-build-tmp so that the path no longer matches ${B}. This > prevents unintended replacements by OE's DEBUG_PREFIX_MAP and > restores reproducibility. Wait. Go does not have reproducibility problems right now: it is a part of reproducibility test, and not in the exclusion list. So how can the issues that this patch set aims to fix be observed? Alex
diff --git a/meta/classes-recipe/go.bbclass b/meta/classes-recipe/go.bbclass index e0f667373e..ed986ff5d4 100644 --- a/meta/classes-recipe/go.bbclass +++ b/meta/classes-recipe/go.bbclass @@ -79,7 +79,7 @@ B = "${WORKDIR}/build" export GOPATH = "${B}" export GOENV = "off" export GOPROXY ??= "https://proxy.golang.org,direct" -export GOTMPDIR ?= "${WORKDIR}/build-tmp" +export GOTMPDIR ?= "${WORKDIR}/go-build-tmp" GOTMPDIR[vardepvalue] = "" GO_SRCURI_DESTSUFFIX = "${@os.path.join(os.path.basename(d.getVar('S')), 'src', d.getVar('GO_IMPORT')) + '/'}"