Subject: Re: bug#50358: [PATCH core-updates-frozen 0/8] Shortened Rust bootstrap & other fixes.

From: Ludovic Courtès <[email-masked]>
Date: Wed, 08 Sep 2021 18:35:15 +0200

Maxim Cournoyer <[email-masked]> skribis:

> Fixes <https://issues.guix.gnu.org/31403>.
>
> * gnu/packages/fontutils.scm (fontconfig)[source]: Fix indentation.
> [configure-flags]: Drop the "--with-add-fonts" configure option as it's no
> longer necessary/desirable to special case the system and user profiles.
> [native-search-paths]: New search path.

Nice, LGTM!  Good to see a bug in the 30,000 range closed.  :-)

> +     (native-search-paths
> +      ;; Since version 2.13.94, fontconfig knows to find fonts from
> +      ;; XDG_DATA_DIRS.
> +      (list (search-path-specification
> +             (variable "XDG_DATA_DIRS")
> +             (files '("share")))))

A potential drawback is that it’ll end up searching too many
directories: $XDG_DATA_DIRS has 10 entries (7 if we remove duplicates)
for me on Guix System, 3 of which have a fonts/ sub-directory.  Hmm
maybe that’s not so bad after all.

Thanks!

Ludo’.