Gentoo Archives: gentoo-user

From: Danny YUE <sheepduke@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Error with infinality font while emerging sane-backends
Date: Wed, 28 Mar 2018 05:58:36
Message-Id: 871sg47ncy.fsf@gmail.com
In Reply to: Re: [gentoo-user] Error with infinality font while emerging sane-backends by Floyd Anderson
1 On 2018-03-28 04:34, Floyd Anderson <f.a@××××.net> wrote:
2 > On Wed, 28 Mar 2018 11:17:59 +0800
3 > Danny YUE <sheepduke@×××××.com> wrote:
4 >>Hi folks,
5 >>
6 >>I am trying to emerge xsane, which requires sane-backends.
7 >>However, the sane-backends package fails forever with error message like
8 >>below:
9 >>--- BEGIN ---
10 >>Fontconfig error: Cannot load config file "infinality/conf.d"
11 >>Error: /invalidfont in /findfont
12 >>--- END ---
13 >>
14 >>I have only "52-infinality.conf" enabled in "eselect fontconfig".
15 >>I suppose this is a problem related to infinality fontconfig I am using.
16 >>But how am I supposed to fix this?
17 >
18 > That is probably because media-libs/fontconfig seems not to canonicalise
19 > relative target path for symlinks.
20 >
21 > As a quick, but volatile, solution you can re-create symlink:
22 >
23 > ln -s /etc/fonts/infinality/styles.conf.avail/linux \
24 > /etc/fonts/infinality/conf.d
25 >
26 > or you have to patch the module:
27 >
28 > /usr/share/eselect/modules/infinality.eselect
29 >
30 > of app-eselect/eselect-infinality-1 to use full qualified paths.
31 >
32 > Test configuration loading afterwards, e.g. with `fc-match monospace`.
33 > ---
34 > infinality.eselect | 5 +++--
35 > 1 file changed, 3 insertions(+), 2 deletions(-)
36 >
37 > diff --git a/infinality.eselect b/infinality.eselect
38 > index 8f397dc..8b069ae 100644
39 > --- a/infinality.eselect
40 > +++ b/infinality.eselect
41 > @@ -1,5 +1,5 @@
42 > # -*-eselect-*- vim: ft=eselect
43 > -# Copyright 2005-2012 Gentoo Foundation
44 > +# Copyright 2005-2018 Gentoo Foundation
45 > # Distributed under the terms of the GNU GPL version 2 or later
46 > #
47 > # Original author: MeisterP <poncho@××××××.ch>
48 > @@ -34,7 +34,8 @@ set_symlink() {
49 > [[ -z ${target} || ! -d ${EROOT}/etc/fonts/infinality/styles.conf.avail/${target} ]] \
50 > && die -q "Target \"$1\" doesn't appear to be valid!"
51 >
52 > - ln -s "styles.conf.avail/${target}" "${EROOT}/etc/fonts/infinality/conf.d"
53 > + ln -s "${EROOT}/etc/fonts/infinality/styles.conf.avail/${target}" \
54 > + "${EROOT}/etc/fonts/infinality/conf.d"
55 > echo "Selected style: ${target}"
56 > echo "You should set eselect lcdfilter to match your current style"
57 > }
58
59 Thanks for your quick reply :-)
60
61 I created the symbolic link as you told, but it still does not
62 work...same error message.
63
64 --- BEGIN ---
65 ~ $ ll /etc/fonts/infinality/
66 total 20k
67 drwxr-xr-x 4 root root 4.0k 2018-03-28 12:43 .
68 drwxr-xr-x 5 root root 4.0k 2018-03-24 12:17 ..
69 lrwxrwxrwx 1 root root 45 2018-03-28 12:43 conf.d -> /etc/fonts/infinality/styles.conf.avail/linux
70 drwxr-xr-x 3 root root 4.0k 2017-11-11 2017 conf.src
71 -rw-r--r-- 1 root root 3.7k 2017-11-11 2017 infinality.conf
72 drwxr-xr-x 11 root root 4.0k 2017-11-11 2017 styles.conf.avail
73 --- END ---
74
75 https://pastebin.com/DGuzvmNx

Replies

Subject Author
Re: [gentoo-user] Error with infinality font while emerging sane-backends Floyd Anderson <f.a@××××.net>