Skip to content

Commit

Permalink
Makefile: Fix Fontconfig error
Browse files Browse the repository at this point in the history
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 <rene@renesp.com.br>
  • Loading branch information
rene authored and eriknordmark committed Feb 19, 2024
1 parent 10e8386 commit cc36101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit cc36101

Please sign in to comment.