On 2018-03-28 04:34, Floyd Anderson <f...@31c0.net> wrote:
> 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"
> }

Thanks for your quick reply :-)

I created the symbolic link as you told, but it still does not
work...same error message.

--- BEGIN ---
~ $ ll /etc/fonts/infinality/
total 20k
drwxr-xr-x   4 root           root     4.0k 2018-03-28 12:43 .
drwxr-xr-x   5 root           root     4.0k 2018-03-24 12:17 ..
lrwxrwxrwx   1 root           root       45 2018-03-28 12:43 conf.d -> 
/etc/fonts/infinality/styles.conf.avail/linux
drwxr-xr-x   3 root           root     4.0k 2017-11-11  2017 conf.src
-rw-r--r--   1 root           root     3.7k 2017-11-11  2017 infinality.conf
drwxr-xr-x  11 root           root     4.0k 2017-11-11  2017 styles.conf.avail
--- END ---

https://pastebin.com/DGuzvmNx


Reply via email to