From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4E99B1382C5 for ; Wed, 28 Mar 2018 05:58:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2DDF4E0973; Wed, 28 Mar 2018 05:58:28 +0000 (UTC) Received: from mail-pl0-x22e.google.com (mail-pl0-x22e.google.com [IPv6:2607:f8b0:400e:c01::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9D517E0919 for ; Wed, 28 Mar 2018 05:58:27 +0000 (UTC) Received: by mail-pl0-x22e.google.com with SMTP id x4-v6so969353pln.7 for ; Tue, 27 Mar 2018 22:58:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:in-reply-to:date:message-id :mime-version; bh=iU1OOKJqSl49hOCcdcTGR51lDi0A8DcLtETSQXGbtE4=; b=kcsuV9AkG4zE6bt02R0/gWB+0kNFQ/ulHXciaoImn3sL+251JTHx+TV0t7LJA5GHG5 5lazzbsItH1DLDKA9xMrd+sH//IQM1B5Zj8qtyHF3yzzM9lVBcqH4Z+/Doymd4tYGDyB rk2MntYsqwjz+sb3l3bcZ902UHirVAgo2WeYKP5bZwIwl6XyKxJ+Bd0jSKuo0nyWkpQW YimZz3HhyUUpNtVvs1n3HckRjQvn7WOLEsVCWMaWdT3sOGsIF7H7KDUtJKq8d7xjp0gT qFM+OVFZNVLY0j7CvB03MUQFGM3hQCrfjWS1v3eeOde+mVimNurJ78NR6X9eiukUt1V9 Yp6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject :in-reply-to:date:message-id:mime-version; bh=iU1OOKJqSl49hOCcdcTGR51lDi0A8DcLtETSQXGbtE4=; b=Tg1Wg/Y3CFtUkCQc+vkZhEZfwBLzpXwO+XgOov7ox/2NYJqV35oEyr4mkN0J3h7M3o wFW06wV0wMmxR1Kzny/BUOOEssFF0vktqoxH3jNN3r5wsBxp9G08CJWTv/8wwdKjw5P8 ub0Ueu7/mpmUCBY3bPHe/+1Uaac0hK3vXoXZTw2PxEqwOQFXb+RusHMWqcG4/1jjVoGw PcgqIcg2NkMdC+GIRdGzis1C/8GpARRuz09s2LFszx4xrcN8SdoLoB5hLGG2ngltyo07 XXMLFs5ho7BbGuIok53Muxo3AzG9md8SRYoNheKF3m0lQZTAz/axqxE2zYrYaVpGtGJ7 eNcw== X-Gm-Message-State: AElRT7EUFKqS4BtVmzlsg0d71qTw58tjZ1kRDIiljZ1RpA+5ntHJ9pJn VfUfHTOpMkQ8hyXUDtBbi7IYr46I X-Google-Smtp-Source: AIpwx4+DPvr2MNDdILvMOpXelnF3S/xBDGlL42jy//ddWUzBMGX5EX4nq+qZTYR/qlJetuMKCQXHnA== X-Received: by 2002:a17:902:76c5:: with SMTP id j5-v6mr2377739plt.166.1522216705767; Tue, 27 Mar 2018 22:58:25 -0700 (PDT) Received: from localhost ([47.52.233.82]) by smtp.gmail.com with ESMTPSA id q17sm4958003pgt.7.2018.03.27.22.58.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Mar 2018 22:58:24 -0700 (PDT) References: <87zi2sj3bs.fsf@gmail.com> <20180328043459.beb4e7agunbsrsau@31c0.net> User-agent: mu4e 1.0; emacs 25.3.1 From: Danny YUE To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Error with infinality font while emerging sane-backends In-reply-to: <20180328043459.beb4e7agunbsrsau@31c0.net> Date: Wed, 28 Mar 2018 13:58:21 +0800 Message-ID: <871sg47ncy.fsf@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain X-Archives-Salt: 34392ea3-56c3-4bd2-b524-b57150a0d043 X-Archives-Hash: 5bffdda974e389dac7ca5a8b9228db62 On 2018-03-28 04:34, Floyd Anderson wrote: > On Wed, 28 Mar 2018 11:17:59 +0800 > Danny YUE 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 > @@ -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