mirror of
https://git.yoctoproject.org/poky
synced 2026-09-12 06:49:32 +02:00
bitbake.conf: add TMPDIR to GIT_CEILING_DIRECTORIES
We export GIT_CEILING_DIRECTORIES=WORKDIR to ensure that git calls inside the builds don't find oe-core when they're meant to be looking for the git repository of the source code. However, this breaks for recipes that use work-shared (such as llvm), as their working directory is outside of WORKDIR. Solve this by adding TMPDIR to the list as a final catch, but keeping WORKDIR first so that git will stop sooner in the general case. This solves reproduciblity problems in LLVM, where for example lld's version string would contain the URL and commit hash of the poky repo being built. (From OE-Core rev: b2258129ecabc6a85fe9dc48f580e881d27a68c0) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f42f0185bd00e68ecc86a930487f21fc86214cfa) Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com> [fatho: edit commit message by adding "cherry picked from"] Signed-off-by: Fabien Thomas <fabien.thomas@smile.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5b35d2e634
commit
c80225aad3
@@ -786,9 +786,9 @@ export PKG_CONFIG_DISABLE_UNINSTALLED = "yes"
|
|||||||
export PKG_CONFIG_SYSTEM_LIBRARY_PATH = "${base_libdir}:${libdir}"
|
export PKG_CONFIG_SYSTEM_LIBRARY_PATH = "${base_libdir}:${libdir}"
|
||||||
export PKG_CONFIG_SYSTEM_INCLUDE_PATH = "${includedir}"
|
export PKG_CONFIG_SYSTEM_INCLUDE_PATH = "${includedir}"
|
||||||
|
|
||||||
# Don't allow git to chdir up past WORKDIR so that it doesn't detect the OE
|
# Don't allow git to chdir up past WORKDIR or TMPDIR so that it doesn't detect the OE
|
||||||
# repository when building a recipe
|
# repository when building a recipe.
|
||||||
export GIT_CEILING_DIRECTORIES = "${WORKDIR}"
|
export GIT_CEILING_DIRECTORIES = "${WORKDIR}:${TMPDIR}"
|
||||||
|
|
||||||
###
|
###
|
||||||
### Config file processing
|
### Config file processing
|
||||||
|
|||||||
Reference in New Issue
Block a user