On Wed, 28 Mar 2018 11:17:59 +0800
Danny YUE <sheepd...@gmail.com> wrote:
Hi folks,

I am trying to emerge xsane, which requires sane-backends.
However, the sane-backends package fails forever with error message like
below:
--- BEGIN ---
Fontconfig error: Cannot load config file "infinality/conf.d"
Error: /invalidfont in /findfont
--- END ---

I have only "52-infinality.conf" enabled in "eselect fontconfig".
I suppose this is a problem related to infinality fontconfig I am using.
But how am I supposed to fix this?

That is probably because media-libs/fontconfig seems not to canonicalise relative target path for symlinks.

As a quick, but volatile, solution you can re-create symlink:

   ln -s /etc/fonts/infinality/styles.conf.avail/linux \
         /etc/fonts/infinality/conf.d

or you have to patch the module:

   /usr/share/eselect/modules/infinality.eselect

of app-eselect/eselect-infinality-1 to use full qualified paths.

Test configuration loading afterwards, e.g. with `fc-match monospace`.
---
infinality.eselect | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/infinality.eselect b/infinality.eselect
index 8f397dc..8b069ae 100644
--- a/infinality.eselect
+++ b/infinality.eselect
@@ -1,5 +1,5 @@
# -*-eselect-*-  vim: ft=eselect
-# Copyright 2005-2012 Gentoo Foundation
+# Copyright 2005-2018 Gentoo Foundation
# Distributed under the terms of the GNU GPL version 2 or later
#
# Original author: MeisterP <pon...@spahan.ch>
@@ -34,7 +34,8 @@ set_symlink() {
    [[ -z ${target} || ! -d 
${EROOT}/etc/fonts/infinality/styles.conf.avail/${target} ]] \
        && die -q "Target \"$1\" doesn't appear to be valid!"

-    ln -s "styles.conf.avail/${target}" "${EROOT}/etc/fonts/infinality/conf.d"
+    ln -s "${EROOT}/etc/fonts/infinality/styles.conf.avail/${target}" \
+        "${EROOT}/etc/fonts/infinality/conf.d"
    echo "Selected style: ${target}"
    echo "You should set eselect lcdfilter to match your current style"
}
--
2.16.3


Reply via email to