From: Edouard Klein <edou@rdklein.fr>
To: "Simen Endsjø" <contact@simendsjo.me>
Cc: help-guix@gnu.org
Subject: Re: Software running in a container fails when using fontconfig?
Date: Fri, 15 Nov 2024 11:17:42 +0100 [thread overview]
Message-ID: <87o72ghkad.fsf@rdklein.fr> (raw)
In-Reply-To: <87plmxzfb4.fsf@simendsjo.me>
Hi,
This may miss the mark wildly, but I remember having trouble with
fontconfig in a container a few months ago and solving it with
--emulate-fhs maybe this is worth a try.
Cheers,
Edouard.
Simen Endsjø <contact@simendsjo.me> writes:
> Hi, I'm packaging a piece of software which crashes when launching
> chromium embedded framework.
>
> The error is
> Fontconfig error: Cannot load default config file: No such file: (null)
>
> I found a similar issue for Nix which suggests the error is caused by
> fontconfig not being installed globally and suggests a patch:
> https://github.com/NixOS/nixpkgs/issues/176081#issuecomment-1145903568
>
> I tried creating a symlink at /etc/fonts/fonts.conf, but while I get
> further, it still crashes.
>
> sudo ln -s ~/.config/fontconfig/fonts.conf /etc/fonts/fonts.conf
>
> Fontconfig warning: no <cachedir> elements found. Check configuration.
> Fontconfig warning: adding <cachedir>/var/cache/fontconfig</cachedir>
> Fontconfig warning: adding <cachedir prefix="xdg">fontconfig</cachedir>
> Trace/breakpoint trap
>
> /var/cache/fontconfig is on a read-only filesystem, so I cannot
> experiment with adding it there.
>
> I tried adding all fonts and fontconfig to my system configuration, but
> this didn't generate /etc/fonts/fonts.conf nor /var/cache/fontconfig/*.
>
> Unfortunately, I haven't been able to test the Nix patch as my naive `-L
> ~/code/guix` fails to compile various modules.
>
> Any input before I spent a lot of time trying to get this Nix patch working?
next prev parent reply other threads:[~2024-11-15 10:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-14 21:16 Software running in a container fails when using fontconfig? Simen Endsjø
2024-11-15 10:17 ` Edouard Klein [this message]
2024-11-15 11:53 ` Simen Endsjø
2024-11-15 14:24 ` Edouard Klein
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o72ghkad.fsf@rdklein.fr \
--to=edou@rdklein.fr \
--cc=contact@simendsjo.me \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.