all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 2/3] profiles: Add fonts-dir-file hook.
Date: Sat, 02 Jul 2016 22:19:25 +0300	[thread overview]
Message-ID: <87lh1jalvm.fsf@gmail.com> (raw)
In-Reply-To: <87fursf6rf.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 02 Jul 2016 16:34:44 +0200")

Ludovic Courtès (2016-07-02 17:34 +0300) wrote:

> Alex Kost <alezost@gmail.com> skribis:
>
>> * guix/profiles.scm (fonts-dir-file): New procedure.
>> (%default-profile-hooks): Add it.
>
> [...]
>
> A potential problem with this hook is that it pulls mkfontscale and
> mkfontdir regardless of whether they are needed; I can’t really think of
> a way to avoid it though.

Yes, I also don't like it.  We have the same problem with
'info-file-dir' hook: it always pulls texinfo and gzip, but not all
profiles include info manuals.

> Also, how does it relate to this:
>
>   commit bf9655f57d2442d56661594b80f6d0031ca0ae73
>   Author: Eric Bavier <bavier@member.fsf.org>
>   Date:   Mon Oct 19 06:44:23 2015 -0500
>
>       font-alias: Install dummy fonts.dir files.
>
>       * gnu/packages/xorg.scm (font-alias)[arguments]: New 'install-fonts-dir'
>         phase.
>
> ?

It doesn't relate at all.  This hook generates "fonts.dir" only for
"share/fonts/truetype" directory.  Directories with X fonts are not
touched, because all sub-directories of "share/fonts/X11" already
contain "fonts.dir" files (font-adobe75dpi, font-misc-misc and other X
font packages install "fonts.dir").

'font-alias' package does not contain fonts.dir file because it doesn't
make sense: this package does not provide any font.  It just installs
"fonts.alias" files inside "share/fonts/X11/{75dpi,100dpi,cyrillic,misc}"
directories.  Eric made this commit for one particular case: to make it
possible to use font aliases in the default X server configuration
('xorg-configuration-file' in (gnu services xorg) module).

Just to mention, I think we shouldn't modify 'font-alias' package as it
leads to a bug <http://bugs.gnu.org/22100>, and should do some other
workaround.  I have 2 ideas (not sure if they make any sense):

1) To add a special package (font-alias-with-fonts.dir) that will be used
in 'xorg-configuration-file'.

2) To do 'union-build' on packages with X fonts and aliases and to use it
in the X config.  With this, we can revert that Eric's commit, and
everything should just work (I mean the X config will work and the bug
will be fixed).

-- 
Alex

  reply	other threads:[~2016-07-02 19:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-01  9:27 [PATCH 0/3] Generate "<profile>/share/fonts/truetype/fonts.dir" file Alex Kost
2016-07-01  9:27 ` [PATCH 1/3] gnu: mkfontdir: Do not propagate 'mkfontscale' Alex Kost
2016-07-02 14:26   ` Ludovic Courtès
2016-07-01  9:27 ` [PATCH 2/3] profiles: Add fonts-dir-file hook Alex Kost
2016-07-02 14:34   ` Ludovic Courtès
2016-07-02 19:19     ` Alex Kost [this message]
2016-07-05 14:31       ` Ludovic Courtès
2016-07-06 19:41         ` Alex Kost
2016-07-22  6:59         ` Alex Kost
2016-07-24 17:09           ` Ludovic Courtès
2016-07-25 14:26             ` Alex Kost
2016-07-01  9:27 ` [PATCH 3/3] doc: Describe how to make X server find TrueType fonts Alex Kost
2016-07-02 14:38   ` Ludovic Courtès
2016-07-02 19:22     ` Alex Kost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lh1jalvm.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.