Skip to contentSkip to conversation

conmon: avoid host contamination by GOCACHE

PATCH In review [email protected] 2 participants 2 messages Dec 1, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 conmon: avoid host contamination by GOCACHE

From: Changqing Li <[email protected]>

By default GOCACHE is set to $HOME/.cache.

Fix:
make[1]: Entering directory '/mnt/tmp-glibc/work/core2-64-wrs-linux/conmon/2.1.3+gitAUTOINC+19110c9746-r0/git/tools' | failed to initialize build cache at /home/build/.cache/go-build: mkdir /home/build: permission denied

---
 recipes-containers/conmon/conmon_git.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-containers/conmon/conmon_git.bb +2 -0
index a20af04..4c58dab 100644
@@ -20,6 +20,8 @@ S = "${WORKDIR}/git"
 
 inherit pkgconfig
 
+export GOCACHE = "${B}/.cache"
+
 EXTRA_OEMAKE = "PREFIX=${prefix} BINDIR=${bindir} LIBEXECDIR=${libexecdir}"
 
 PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
Signature · 1 line
2.25.1
#1 lore raw

merged.

Bruce

In message: [meta-virtualization][PATCH] conmon: avoid host contamination by GOCACHE

Quoted 39 lines · on 01/12/2022 Changqing Li wrote:

From: Changqing Li <[email protected]>

By default GOCACHE is set to $HOME/.cache.

Fix:
make[1]: Entering directory '/mnt/tmp-glibc/work/core2-64-wrs-linux/conmon/2.1.3+gitAUTOINC+19110c9746-r0/git/tools' | failed to initialize build cache at /home/build/.cache/go-build: mkdir /home/build: permission denied

---
 recipes-containers/conmon/conmon_git.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-containers/conmon/conmon_git.bb +2 -0
index a20af04..4c58dab 100644
@@ -20,6 +20,8 @@ S = "${WORKDIR}/git"
 
 inherit pkgconfig
 
+export GOCACHE = "${B}/.cache"
+
 EXTRA_OEMAKE = "PREFIX=${prefix} BINDIR=${bindir} LIBEXECDIR=${libexecdir}"
 
 PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
Signature · 11 lines
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7719): https://lists.yoctoproject.org/g/meta-virtualization/message/7719
Mute This Topic: https://lists.yoctoproject.org/mt/95377985/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-