1 |
On Wed, 28 Mar 2018 11:17:59 +0800 |
2 |
Danny YUE <sheepduke@×××××.com> wrote: |
3 |
>Hi folks, |
4 |
> |
5 |
>I am trying to emerge xsane, which requires sane-backends. |
6 |
>However, the sane-backends package fails forever with error message like |
7 |
>below: |
8 |
>--- BEGIN --- |
9 |
>Fontconfig error: Cannot load config file "infinality/conf.d" |
10 |
>Error: /invalidfont in /findfont |
11 |
>--- END --- |
12 |
> |
13 |
>I have only "52-infinality.conf" enabled in "eselect fontconfig". |
14 |
>I suppose this is a problem related to infinality fontconfig I am using. |
15 |
>But how am I supposed to fix this? |
16 |
|
17 |
That is probably because media-libs/fontconfig seems not to canonicalise |
18 |
relative target path for symlinks. |
19 |
|
20 |
As a quick, but volatile, solution you can re-create symlink: |
21 |
|
22 |
ln -s /etc/fonts/infinality/styles.conf.avail/linux \ |
23 |
/etc/fonts/infinality/conf.d |
24 |
|
25 |
or you have to patch the module: |
26 |
|
27 |
/usr/share/eselect/modules/infinality.eselect |
28 |
|
29 |
of app-eselect/eselect-infinality-1 to use full qualified paths. |
30 |
|
31 |
Test configuration loading afterwards, e.g. with `fc-match monospace`. |
32 |
--- |
33 |
infinality.eselect | 5 +++-- |
34 |
1 file changed, 3 insertions(+), 2 deletions(-) |
35 |
|
36 |
diff --git a/infinality.eselect b/infinality.eselect |
37 |
index 8f397dc..8b069ae 100644 |
38 |
--- a/infinality.eselect |
39 |
+++ b/infinality.eselect |
40 |
@@ -1,5 +1,5 @@ |
41 |
# -*-eselect-*- vim: ft=eselect |
42 |
-# Copyright 2005-2012 Gentoo Foundation |
43 |
+# Copyright 2005-2018 Gentoo Foundation |
44 |
# Distributed under the terms of the GNU GPL version 2 or later |
45 |
# |
46 |
# Original author: MeisterP <poncho@××××××.ch> |
47 |
@@ -34,7 +34,8 @@ set_symlink() { |
48 |
[[ -z ${target} || ! -d ${EROOT}/etc/fonts/infinality/styles.conf.avail/${target} ]] \ |
49 |
&& die -q "Target \"$1\" doesn't appear to be valid!" |
50 |
|
51 |
- ln -s "styles.conf.avail/${target}" "${EROOT}/etc/fonts/infinality/conf.d" |
52 |
+ ln -s "${EROOT}/etc/fonts/infinality/styles.conf.avail/${target}" \ |
53 |
+ "${EROOT}/etc/fonts/infinality/conf.d" |
54 |
echo "Selected style: ${target}" |
55 |
echo "You should set eselect lcdfilter to match your current style" |
56 |
} |
57 |
-- |
58 |
2.16.3 |