From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: bug#22100: 'font-alias' breaks other xorg font packages when installed in a single profile Date: Fri, 11 Dec 2015 20:06:27 -0600 Message-ID: <20151211200627.04c9c1b1@member.fsf.org> References: <874mfwexy6.fsf@gmail.com> <871tavsonr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7pSh-0006An-CM for bug-guix@gnu.org; Sat, 12 Dec 2015 14:04:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a7pSe-0000mK-7J for bug-guix@gnu.org; Sat, 12 Dec 2015 14:04:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:42087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a7pSe-0000mE-4z for bug-guix@gnu.org; Sat, 12 Dec 2015 14:04:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1a7pSd-0000bd-VZ for bug-guix@gnu.org; Sat, 12 Dec 2015 14:04:03 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <871tavsonr.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Alex Kost , 22100@debbugs.gnu.org On Wed, 09 Dec 2015 15:05:28 +0100 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > Alex Kost skribis: >=20 > > I install several xorg font packages (font-adobe75dpi, font-adobe100dpi, > > font-misc-misc and font-alias) in one of my profiles, and point my Xorg > > font path to this directory. Previously it worked fine, but after > > commit bf9655f=C2=B9, I cannot use this anymore, because the empty > > "fonts.dir" files from 'font-alias' packages override the proper > > "fonts.dir" files from the other packages. =20 >=20 > D=E2=80=99oh! Oops indeed. > > So since it was a workaround for Xorg server behaviour, I wonder would > > it be possible to modify 'xorg-server' package instead? So that along > > with directories with "fonts.dir" files, Xorg server would also handle > > directories that have "fonts.alias" files. =20 >=20 > It seems we need something along these lines, indeed. That may help in the specific case of the font-alias package. It would not help in the long run however. We currently have a rather limited number of X11 fonts in Guix, just the adobe fonts to be precise. We'll run into the same 'fonts.dir' collision issues once other X11 fonts are packaged and installed in a profile alongside other fonts. E.g. installing font-adobe75dpi and a future font-bitstream75dpi would produce a collision on the fonts.dir files from each package, and ultimately only one of the fonts would be available to the user. Since xorg-server lacks AFAIK any environment variables to set the font path we cannot consider moving fonts to namespaced directories. Instead, we might want to consider ignoring fonts.dir files from the union build if possible and then running mkfontsdir at profile creation time. `~Eric