New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fontconfig default cache location is build-system specific #9497
Comments
(P.S. This might obviously be an upstream issue, but I suspect it has better chances to be picked up by capable hands here. I'd have a stab at it myself but am currently limited on time) |
In my setup, the output looks like this Click here to show the output
|
You need to copy above fonts.conf and make sure it's used, e.g. using |
This does not looks like upstream issue. In my opinion, this is another candidate for pathtools to relocate *nix style path to actual Windows path (like cygpath tool). BTW, there is a meson file in fontconfig tarball. Don't know if replacing autoconf with meson works. The issue in src/fcinit.c file. |
I have the same problem with xournalpp compiled with msys64. |
I have tried to build fontconfig with meson. It may fix the issue and the binaries do not have the absolute build directory. But fc-cache creates and searches for another out-of-tree directory. e.g.
I was also thinking about pathtools (see curl, ffmpeg etc.). But the cache directory path (FC_CACHEDIR) and config directory path (CONFIGDIR) is stored as default in fontconfig library. So, path relocation at runtime may be not too easy. |
For CI we use a minimal fonts.conf to reduce the time it takes to execute
fc-cache
.It looks like the following:
Recently I noticed fc-cache uses a nonsensical font cache location in this case which seems to be build-system specific:
(I'm refering to "D:/a/_temp/msys/msys64/var/cache/fontconfig")
Adding a
<cachedir>
entry to the above fonts.conf allows to workaround the issue, but a better default would be preferable for obvious reasons.The text was updated successfully, but these errors were encountered: