From cc36101698c64be86d9d1494d92743ecd86bfc85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=AA=20de=20Souza=20Pinto?= Date: Mon, 19 Feb 2024 13:13:31 +0100 Subject: [PATCH] Makefile: Fix Fontconfig error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Define HOME env. variable to the working directory of the proto container in order to avoid Fontconfig errors due to cache writing, like the following: dot ./images/devconfig.dot -Tpng -o ./images/devconfig.png Fontconfig error: No writable cache directories Fontconfig error: No writable cache directories Setting HOME to the working directory fixes the problem. Signed-off-by: RenĂª de Souza Pinto --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fd7344c4..4282cb41 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ proto-container: docker build -f .devcontainer/Dockerfile -t eve-api-builder . - docker run --rm -v $(PWD):/src -w /src -u $$(id -u) eve-api-builder make proto + docker run --rm --env HOME=/src -v $(PWD):/src -w /src -u $$(id -u) eve-api-builder make proto proto-diagram: protodot -inc /usr/local/include -src ./proto/config/devconfig.proto -output devconfig -generated ./images