* [Buildroot] [PATCH] package/hare: define XDG_CACHE_HOME to avoid writing to $(HOME)
@ 2026-10-20 10:18 Thomas Petazzoni via buildroot
0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni via buildroot @ 2026-10-20 10:18 UTC (permalink / raw)
To: buildroot; +Cc: Thomas Petazzoni, Francois Perrad
The build process of host-hare attempts to write to the user $HOME
directory, which we try to avoid as it causes build failures such as:
Error creating /home/br-user/.cache/hare: Permission denied
make[2]: *** [Makefile:57: .bin/hare-configured] Error 255
make[2]: *** Waiting for unfinished jobs....
Error creating /home/br-user/.cache/hare: Permission denied
make[2]: *** [Makefile:63: .bin/haredoc] Error 255
when the user home directory is read-only. This is going to be the
case in all builds using our Docker container since commit
https://gitlab.com/buildroot.org/buildroot/-/commit/fac6d92a27925192b3cb8107449e7abfe01e2cf3.
We therefore ask host-hare to generate its cache, used during the
build, in $(@D)/.cache, using the XDG_CACHE_HOME environment variable.
Fixes: 72ff2ad88d6fd937da12abd4ed59a5fc10d021a0 ("package/hare: new host package")
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
François, please review carefully, as I'm not familiar with hare nor
with the impact of this cache's location.
---
package/hare/hare.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/hare/hare.mk b/package/hare/hare.mk
index 88662d3c20..4acff091a5 100644
--- a/package/hare/hare.mk
+++ b/package/hare/hare.mk
@@ -27,6 +27,7 @@ HOST_HARE_CONF_OPTS = \
QBE="$(HOST_DIR)/bin/qbe" \
SCDOC="$(HOST_DIR)/bin/scdoc" \
HAREPATH="$(HOST_DIR)/src/hare/stdlib" \
+ XDG_CACHE_HOME="$(@D)/.cache" \
$(HOST_HARE_TARGET_ARCH)_AS=$(TARGET_AS) \
$(HOST_HARE_TARGET_ARCH)_CC=$(TARGET_CC) \
$(HOST_HARE_TARGET_ARCH)_LD=$(TARGET_LD)
--
2.56.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-20 10:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-20 10:18 [Buildroot] [PATCH] package/hare: define XDG_CACHE_HOME to avoid writing to $(HOME) Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox