Skip to contentSkip to conversation

tests/docker: fix ccache directory variable expansion

PATCH In review Anders Roxell 2 participants 2 messages Sep 15 – Sep 16

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/docker: fix ccache directory variable expansion

DOCKER_QEMU_CCACHE_DIR is missing $() around DOCKER_QEMU_CACHE_DIR, so $HOME/.cache/qemu is never created. podman then fails to mount it:

Error: statfs /home/user/.cache/qemu: no such file or directory

It only works if the directory already exists. Add the missing $().

Fixes 8a1975e4d44b ("tests/docker: expose $HOME/.cache/qemu as docker volume")
---
 tests/docker/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/Makefile.include +1 -1
index 0adddb6a5c62..e506add8aa8b 100644
@@ -199,7 +199,7 @@ docker-help: docker
 # Where QEMU caches build artefacts
 DOCKER_QEMU_CACHE_DIR := $$HOME/.cache/qemu
 # Use a global constant ccache directory to speed up repetitive builds
-DOCKER_QEMU_CCACHE_DIR := DOCKER_QEMU_CACHE_DIR/docker-ccache
+DOCKER_QEMU_CCACHE_DIR := $(DOCKER_QEMU_CACHE_DIR)/docker-ccache
 
 # This rule if for directly running against an arbitrary docker target.
 # It is called by the expanded docker targets (e.g. make
Signature · 1 line
2.53.0
#1 lore raw
Quoted 18 lines · Anders Roxell

DOCKER_QEMU_CCACHE_DIR is missing $() around DOCKER_QEMU_CACHE_DIR, so $HOME/.cache/qemu is never created. podman then fails to mount it:

Error: statfs /home/user/.cache/qemu: no such file or directory

It only works if the directory already exists. Add the missing $().

Fixes 8a1975e4d44b ("tests/docker: expose $HOME/.cache/qemu as docker volume")
---
 tests/docker/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/Makefile.include +0 -0
index 0adddb6a5c62..e506add8aa8b 100644

tests/docker/Makefile.include docker-help: docker · line 205

Quoted 8 lines
tests/docker/Makefile.include +1 -1
@@ -199,7 +199,7 @@ docker-help: docker
 # Where QEMU caches build artefacts
 DOCKER_QEMU_CACHE_DIR := $$HOME/.cache/qemu
 # Use a global constant ccache directory to speed up repetitive builds
-DOCKER_QEMU_CCACHE_DIR := DOCKER_QEMU_CACHE_DIR/docker-ccache
+DOCKER_QEMU_CCACHE_DIR := $(DOCKER_QEMU_CACHE_DIR)/docker-ccache
 
 # This rule if for directly running against an arbitrary docker target.
 # It is called by the expanded docker targets (e.g. make

Queued to testing/next, thanks.

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro