GNU bug report logs - #22927
system-installed emacs does not find system-installed fonts

Previous Next

Package: guix;

Reported by: myglc2 <myglc2 <at> gmail.com>

Date: Sun, 6 Mar 2016 18:56:01 UTC

Severity: normal

Tags: fixed

Fixed in version 0.10.1

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22927 in the body.
You can then email your comments to 22927 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#22927; Package guix. (Sun, 06 Mar 2016 18:56:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to myglc2 <myglc2 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 06 Mar 2016 18:56:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: myglc2 <myglc2 <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: system-installed emacs does not find system-installed fonts 
Date: Sun, 06 Mar 2016 13:57:54 -0500
Not technically not a bug because the doc says ...

2.6.2 X11 Fonts

The ‘fontconfig’ package in Guix looks for fonts in
‘$HOME/.guix-profile’ by default.  Thus, to allow graphical applications
installed with Guix to display fonts, you have to install fonts with
Guix as well.

But it does seem counter-intuitive that emacs 'M-x list-fontsets' gives ...

Fontset: -*-*-*-*-*-*-*-*-*-*-*-*-fontset-default
Fontset: -*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-standard
Fontset: -urw-Nimbus Mono L-normal-normal-normal-*-13-*-*-*-m-0-fontset-startup

... when the system package list is ...

  % *Guix Package L...      5437 Guix-Output-List
  
  [...]
  emacs                24.5       out       Yes          The extensible, customizable, self-documenting text editor
  [...]
  font-dejavu          2.34       out       Yes          Vera font  family derivate with additional characters
  [...]






Information forwarded to bug-guix <at> gnu.org:
bug#22927; Package guix. (Mon, 07 Mar 2016 09:28:02 GMT) Full text and rfc822 format available.

Message #8 received at 22927 <at> debbugs.gnu.org (full text, mbox):

From: Alex Kost <alezost <at> gmail.com>
To: myglc2 <myglc2 <at> gmail.com>
Cc: 22927 <at> debbugs.gnu.org
Subject: Re: bug#22927: system-installed emacs does not find system-installed
 fonts
Date: Mon, 07 Mar 2016 12:27:44 +0300
[Message part 1 (text/plain, inline)]
myglc2 (2016-03-06 21:57 +0300) wrote:

> Not technically not a bug because the doc says ...
>
> 2.6.2 X11 Fonts
>
> The ‘fontconfig’ package in Guix looks for fonts in
> ‘$HOME/.guix-profile’ by default.  Thus, to allow graphical applications
> installed with Guix to display fonts, you have to install fonts with
> Guix as well.

(I have not checked but) I believe this can be fixed by adding
"/run/current-system/profile/share/fonts" to '--with-add-fonts'
configure flag of the 'fontconfig' package.

For now I think the following recipe should work:

1. Make a file "~/.config/fontconfig/fonts.conf" with the following
   contents:

[fonts.conf (text/plain, inline)]
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <dir>/run/current-system/profile/share/fonts</dir>
</fontconfig>
[Message part 3 (text/plain, inline)]
2. Run "fc-cache -fv".

-- 
Alex

Information forwarded to bug-guix <at> gnu.org:
bug#22927; Package guix. (Sat, 02 Apr 2016 17:31:02 GMT) Full text and rfc822 format available.

Message #11 received at 22927 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Alex Kost <alezost <at> gmail.com>
Cc: myglc2 <myglc2 <at> gmail.com>, 22927 <at> debbugs.gnu.org
Subject: Re: bug#22927: system-installed emacs does not find system-installed
 fonts
Date: Sat, 02 Apr 2016 19:29:50 +0200
Alex Kost <alezost <at> gmail.com> skribis:

> myglc2 (2016-03-06 21:57 +0300) wrote:
>
>> Not technically not a bug because the doc says ...
>>
>> 2.6.2 X11 Fonts
>>
>> The ‘fontconfig’ package in Guix looks for fonts in
>> ‘$HOME/.guix-profile’ by default.  Thus, to allow graphical applications
>> installed with Guix to display fonts, you have to install fonts with
>> Guix as well.
>
> (I have not checked but) I believe this can be fixed by adding
> "/run/current-system/profile/share/fonts" to '--with-add-fonts'
> configure flag of the 'fontconfig' package.
>
> For now I think the following recipe should work:
>
> 1. Make a file "~/.config/fontconfig/fonts.conf" with the following
>    contents:
>
> <?xml version="1.0"?>
> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
> <fontconfig>
>     <dir>/run/current-system/profile/share/fonts</dir>
> </fontconfig>

Indeed.  I realize I did this independently in
e71ef7adaece7e132a5059139122b45083ea1b39.

The better fix will be to rebuild Fontconfig as you suggest.  Would you
like to try that and apply it to ‘core-updates’?

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#22927; Package guix. (Sun, 03 Apr 2016 07:45:02 GMT) Full text and rfc822 format available.

Message #14 received at 22927 <at> debbugs.gnu.org (full text, mbox):

From: Alex Kost <alezost <at> gmail.com>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: myglc2 <myglc2 <at> gmail.com>, 22927 <at> debbugs.gnu.org
Subject: Re: bug#22927: system-installed emacs does not find system-installed
 fonts
Date: Sun, 03 Apr 2016 10:44:26 +0300
[Message part 1 (text/plain, inline)]
Ludovic Courtès (2016-04-02 20:29 +0300) wrote:

> Alex Kost <alezost <at> gmail.com> skribis:
>
>> myglc2 (2016-03-06 21:57 +0300) wrote:
>>
>>> Not technically not a bug because the doc says ...
>>>
>>> 2.6.2 X11 Fonts
>>>
>>> The ‘fontconfig’ package in Guix looks for fonts in
>>> ‘$HOME/.guix-profile’ by default.  Thus, to allow graphical applications
>>> installed with Guix to display fonts, you have to install fonts with
>>> Guix as well.
>>
>> (I have not checked but) I believe this can be fixed by adding
>> "/run/current-system/profile/share/fonts" to '--with-add-fonts'
>> configure flag of the 'fontconfig' package.
>>
>> For now I think the following recipe should work:
>>
>> 1. Make a file "~/.config/fontconfig/fonts.conf" with the following
>>    contents:
>>
>> <?xml version="1.0"?>
>> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
>> <fontconfig>
>>     <dir>/run/current-system/profile/share/fonts</dir>
>> </fontconfig>
>
> Indeed.  I realize I did this independently in
> e71ef7adaece7e132a5059139122b45083ea1b39.
>
> The better fix will be to rebuild Fontconfig as you suggest.  Would you
> like to try that and apply it to ‘core-updates’?

Yes, the patch is attached.

[0001-gnu-fontconfig-Find-fonts-in-the-system-profile.patch (text/x-patch, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#22927; Package guix. (Sun, 03 Apr 2016 20:40:02 GMT) Full text and rfc822 format available.

Message #17 received at 22927 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Alex Kost <alezost <at> gmail.com>
Cc: myglc2 <myglc2 <at> gmail.com>, 22927 <at> debbugs.gnu.org
Subject: Re: bug#22927: system-installed emacs does not find system-installed
 fonts
Date: Sun, 03 Apr 2016 22:39:14 +0200
Alex Kost <alezost <at> gmail.com> skribis:

> From fc239dda52244d6bd3b645660ca0827aa17afc05 Mon Sep 17 00:00:00 2001
> From: Alex Kost <alezost <at> gmail.com>
> Date: Sun, 3 Apr 2016 10:27:45 +0300
> Subject: [PATCH] gnu: fontconfig: Find fonts in the system profile.
>
> Fixes <http://bugs.gnu.org/22927>.
> Reported by myglc2 <myglc2 <at> gmail.com>.
>
> This also reverts commit e71ef7adaece7e132a5059139122b45083ea1b39.
>
> * gnu/packages/fontutils.scm (fontconfig)[arguments]: Add
> /run/current-system/profile/share/fonts to --with-add-fonts configure flag.
> * gnu/system/shadow.scm (default-skeletons): Do not create "fonts.conf" file.

[...]

> -            ;; register fonts from user profile
> -            ;; TODO: Add /run/current-system/profile/share/fonts and remove
> -            ;; the skeleton that works around it from 'default-skeletons'.
> -            "--with-add-fonts=~/.guix-profile/share/fonts"
> +            ;; Register fonts from user and system profiles.
> +            (string-append "--with-add-fonts="
> +                           "~/.guix-profile/share/fonts,"
> +                           "/run/current-system/profile/share/fonts")

If you’ve confirmed that passing a comma-separated list here works as
expected, then please push to ‘core-updates’.

Thank you!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#22927; Package guix. (Mon, 04 Apr 2016 18:12:01 GMT) Full text and rfc822 format available.

Message #20 received at 22927 <at> debbugs.gnu.org (full text, mbox):

From: Alex Kost <alezost <at> gmail.com>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: myglc2 <myglc2 <at> gmail.com>, 22927 <at> debbugs.gnu.org
Subject: Re: bug#22927: system-installed emacs does not find system-installed
 fonts
Date: Mon, 04 Apr 2016 21:11:02 +0300
Ludovic Courtès (2016-04-03 23:39 +0300) wrote:

> Alex Kost <alezost <at> gmail.com> skribis:
>
>> From fc239dda52244d6bd3b645660ca0827aa17afc05 Mon Sep 17 00:00:00 2001
>> From: Alex Kost <alezost <at> gmail.com>
>> Date: Sun, 3 Apr 2016 10:27:45 +0300
>> Subject: [PATCH] gnu: fontconfig: Find fonts in the system profile.
>>
>> Fixes <http://bugs.gnu.org/22927>.
>> Reported by myglc2 <myglc2 <at> gmail.com>.
>>
>> This also reverts commit e71ef7adaece7e132a5059139122b45083ea1b39.
>>
>> * gnu/packages/fontutils.scm (fontconfig)[arguments]: Add
>> /run/current-system/profile/share/fonts to --with-add-fonts configure flag.
>> * gnu/system/shadow.scm (default-skeletons): Do not create "fonts.conf" file.
>
> [...]
>
>> -            ;; register fonts from user profile
>> -            ;; TODO: Add /run/current-system/profile/share/fonts and remove
>> -            ;; the skeleton that works around it from 'default-skeletons'.
>> -            "--with-add-fonts=~/.guix-profile/share/fonts"
>> +            ;; Register fonts from user and system profiles.
>> +            (string-append "--with-add-fonts="
>> +                           "~/.guix-profile/share/fonts,"
>> +                           "/run/current-system/profile/share/fonts")
>
> If you’ve confirmed that passing a comma-separated list here works as
> expected, then please push to ‘core-updates’.

Yes, I confirmed, pushed.

-- 
Alex




Added tag(s) fixed. Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Sat, 04 Jun 2016 14:31:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 0.10.1, send any further explanations to 22927 <at> debbugs.gnu.org and myglc2 <myglc2 <at> gmail.com> Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Sat, 04 Jun 2016 14:31:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 03 Jul 2016 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 292 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.