all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#34799: font breakage, square boxes
@ 2019-03-10  2:48 Bradley Haggerty
  2019-03-10  2:55 ` bug#34799: font breakage, square boxes, font-terminus Bradley Haggerty
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Bradley Haggerty @ 2019-03-10  2:48 UTC (permalink / raw)
  To: 34799


[-- Attachment #1.1: Type: text/plain, Size: 3091 bytes --]

A recent update breaks my fonts for most programs, making all characters
show as empty boxes. This happens inside and outside tmux, across various
terminal emulators, etc. It does not occur in deluge-gtk or my TTY. I
experimented with rolling back and doing a partial upgrade from there. With
this list of packages to upgrade, the issue comes back.

The following packages will be upgraded:
   font-terminus        4.40 → 4.47
/gnu/store/a3sksxcg43z7scag56mgg32mjnw2k6fd-font-terminus-4.47

   font-gnu-unifont     11.0.03 → 12.0.01
/gnu/store/ypljs2fyv33f6l55mj6spha7w2pxlr3w-font-gnu-unifont-12.0.01

   mpd  0.21.4 → 0.21.5
/gnu/store/dgj45pd8cg9n9fs95mlw8yprkdrsb4fz-mpd-0.21.5
   gnunet-gtk   0.10.1 → 0.10.1
/gnu/store/3vz8z6wn0cdrfsbz9yxclzyn7vnb5w81-gnunet-gtk-0.10.1

   gnunet       0.10.1 → 0.10.1
/gnu/store/a8jahsmhk21vz350izp2zfn1dbb3bc3j-gnunet-0.10.1

   gimp 2.10.8 → 2.10.8
/gnu/store/81z6bjvd9rx05l4hviisc98cirrn57z9-gimp-2.10.8
   ffmpeg       4.1.1 → 4.1.1
/gnu/store/4hcr7ygdhaxws6q5dj806cbvq0dkfgkw-ffmpeg-4.1.1

   youtube-dl   2019.02.18 → 2019.03.01
/gnu/store/1glmmv0lv1szipgk3ikbjdgp9xnncvrm-youtube-dl-2019.03.01

   qucs-s       0.0.20 → 0.0.20
/gnu/store/vf4pbqbaxq87rgjxw98alhgcd4dmahyz-qucs-s-0.0.20

   mpv  0.29.1 → 0.29.1
/gnu/store/xyfjhq1mcq4d4ijy65fxishz467r37kl-mpv-0.29.1
   vinagre      3.22.0 → 3.22.0
/gnu/store/gp3xi8zgxdxjiidk5b4wkq34vn08jv58-vinagre-3.22.0

   zathura      0.4.3 → 0.4.3
/gnu/store/92pkqiqsa4ngm70mw8a4qn9jr7azj2ap-zathura-0.4.3

   xinit        1.4.0 → 1.4.1
/gnu/store/d01b76z9kdyyajyxqln2m56i8ghdkdys-xinit-1.4.1

   xdg-utils    1.1.3 → 1.1.3
/gnu/store/gmzvdpqzcrvf06pjb3594gvhc46zyd12-xdg-utils-1.1.3

   ruby-pry     0.11.3 → 0.11.3
/gnu/store/vpv29xhpv7j1mi0plis1svqr7sf0n48j-ruby-pry-0.11.3

   readline     7.0.5 → 7.0.5
/gnu/store/si88gb25621k0w60kij5lxksn8l24664-readline-7.0.5

   python-glances       3.0.2 → 3.0.2
/gnu/store/9pa0x2s8jnldjkij7gb4yrinm0ccyj5q-python-glances-3.0.2

   pulseaudio   12.2 → 12.2
/gnu/store/hd3x89yknm4k6k4gw16jy5xk7idq1sxf-pulseaudio-12.2

   pcmanfm      1.3.0 → 1.3.0
/gnu/store/b0585azqb0wibpx7qn6gr740f8fh6cw5-pcmanfm-1.3.0

   minetest     0.4.17.1 → 5.0.0
/gnu/store/7n1dvbxqd2kk75sj4zi4snzw7d5y63cv-minetest-5.0.0

   fontconfig   2.13.1 → 2.13.1
/gnu/store/66jfnfgca7yi6xmpw6ax86cldvr016ia-fontconfig-2.13.1

   font-adobe-source-han-sans:jp        1.004 → 1.004
/gnu/store/zaj1ias1gdz3jmsgvhvn0c706aqw32b1-font-adobe-source-han-sans-1.004-jp

   dconf        0.28.0 → 0.28.0
/gnu/store/x6dgfq8b382jgciq24zcxlgpgxfxaxk2-dconf-0.28.0


It is hard to say what is to blame here. Three separate font packages are
being upgraded as well as fontconfig. Attached is a screenshot showing what
this breakage looks like. I worry that holding back fontconfig might  lead
to issues with the other fonts upgrading. I don't know if those fonts all
updated due to universal font changes.

$guix --version
guix (GNU Guix) 2b613a1a5d4d41b0b5d1f6ea7254585be0c209fa

[-- Attachment #1.2: Type: text/html, Size: 5916 bytes --]

[-- Attachment #2: rightdesktop.png --]
[-- Type: image/png, Size: 13338 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#34799: font breakage, square boxes, font-terminus
  2019-03-10  2:48 bug#34799: font breakage, square boxes Bradley Haggerty
@ 2019-03-10  2:55 ` Bradley Haggerty
  2019-03-10 11:16   ` Tobias Geerinckx-Rice
  2019-03-14 15:14 ` Bradley Haggerty
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: Bradley Haggerty @ 2019-03-10  2:55 UTC (permalink / raw)
  To: 34799

[-- Attachment #1: Type: text/plain, Size: 329 bytes --]

This issue may be a lot simpler than it initially seemed. I've had success
upgrading all those packages except for font-terminus. I also realized that
the broken font in all places I can think of was the same. It was Terminus.
So, this bug is likely specific to font-terminus and for now I will just
hold it back in my upgrades.

[-- Attachment #2: Type: text/html, Size: 359 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#34799: font breakage, square boxes, font-terminus
  2019-03-10  2:55 ` bug#34799: font breakage, square boxes, font-terminus Bradley Haggerty
@ 2019-03-10 11:16   ` Tobias Geerinckx-Rice
  0 siblings, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-03-10 11:16 UTC (permalink / raw)
  To: Bradley Haggerty; +Cc: 34799

[-- Attachment #1: Type: text/plain, Size: 984 bytes --]

Bradley,

Bradley Haggerty wrote:
> This issue may be a lot simpler than it initially seemed. I've 
> had success
> upgrading all those packages except for font-terminus. I also 
> realized that
> the broken font in all places I can think of was the same. It 
> was Terminus.
> So, this bug is likely specific to font-terminus and for now I 
> will just
> hold it back in my upgrades.

I updated font-terminus from 4.40 to 4.47 in commit 73c5c482.  I 
wonder if your problem could be caused by this intermediate 
upstream change[0]:

  Version 4.46:
    The X11 8-bit code pages are not installed by default.

Indeed, I'd noticed that some half of the 4.40 files were 
‘missing’ from 4.47, but my fonts continued to work just fine and 
we don't (usually…) diverge from upstream without good reason.

This is probably a good reason :-)  Does the attached patch fix 
your problem?

Kind regards,

T G-R

[0]: http://terminus-font.sourceforge.net


[-- Attachment #2: 0001-XXX-gnu-font-terminus-Install-X11-8-bit-code-pages.patch --]
[-- Type: text/x-patch, Size: 1678 bytes --]

From 0d9b645937abfdddaf3d8088f81c58220c8d0026 Mon Sep 17 00:00:00 2001
From: Tobias Geerinckx-Rice <me@tobias.gr>
Date: Sun, 10 Mar 2019 12:12:08 +0100
Subject: [PATCH] XXX gnu: font-terminus: Install X11 8-bit code pages.

* gnu/packages/fonts.scm (font-terminus)[arguments]: Add a new phase
to build & install 8-bit fonts that were installed by default pre-4.46.
---
 gnu/packages/fonts.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 296e46ec6f..0d327a51b7 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -360,7 +360,16 @@ Biolinum is available in both Regular and Bold weights.")
        ("pkg-config" ,pkg-config)
        ("python" ,python)))
     (arguments
-     `(#:tests? #f))                    ; no test target in tarball
+     `(#:tests? #f                      ; no test target in tarball
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'install-more-bits
+           ;; X11 8-bit code pages are not installed by default (they were
+           ;; until version 4.46).  Install them manually.
+           ;; XXX This builds at least as many fonts as the ‘build’ phase
+           ;;     does.  Split up into build- and install- when merging?
+           (lambda* (#:key make-flags outputs #:allow-other-keys)
+             (apply invoke "make" "install-pcf-8bit" make-flags))))))
     (home-page "http://terminus-font.sourceforge.net/")
     (synopsis "Simple bitmap programming font")
     (description "Terminus Font is a clean, fixed-width bitmap font, designed
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* bug#34799: font breakage, square boxes, font-terminus
  2019-03-10  2:48 bug#34799: font breakage, square boxes Bradley Haggerty
  2019-03-10  2:55 ` bug#34799: font breakage, square boxes, font-terminus Bradley Haggerty
@ 2019-03-14 15:14 ` Bradley Haggerty
  2019-03-14 21:34   ` Tobias Geerinckx-Rice
  2019-03-16  9:43 ` Bradley Haggerty
  2020-06-10 14:44 ` bug#34799: font breakage, square boxes Royce Strange
  3 siblings, 1 reply; 7+ messages in thread
From: Bradley Haggerty @ 2019-03-14 15:14 UTC (permalink / raw)
  To: 34799

[-- Attachment #1: Type: text/plain, Size: 266 bytes --]

Sorry for the late reply. I've got a couple other guix issues I'm
struggling to sort out recently as well.

Tobias Geerinckx-Rice said:
>Does the attached patch fix your problem?

I'm a bit of a novice. Can you (or someone else) explain how I apply this
patch file?

[-- Attachment #2: Type: text/html, Size: 401 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#34799: font breakage, square boxes, font-terminus
  2019-03-14 15:14 ` Bradley Haggerty
@ 2019-03-14 21:34   ` Tobias Geerinckx-Rice
  0 siblings, 0 replies; 7+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-03-14 21:34 UTC (permalink / raw)
  To: Bradley Haggerty; +Cc: 34799

Bradley,

Bradley Haggerty wrote:
> Sorry for the late reply. I've got a couple other guix issues 
> I'm
> struggling to sort out recently as well.

No problem.  I hope you get them resolved.  I can only say that 
Guix is worth it.

> Tobias Geerinckx-Rice said:
>>Does the attached patch fix your problem?
>
> I'm a bit of a novice. Can you (or someone else) explain how I 
> apply this
> patch file?

You'd clone the Guix git repository from Savannah, ‘git am’ the 
patch e-mail in question, then follow the instructions in section 
14.2 (Running Guix Before It Is Installed) of the manual using 
‘./pre-inst-env guix package -i font-terminus’ to install the 
patched package.

However, you won't need to do any of that today.  :-)

I was already on the fence about just pushing this change anyway, 
and remembering the existence of outputs sealed the deal.  I 
always forget that they exist.  Installing ‘font-terminus’ still 
gives you the upstream selection, but could you

  $ guix pull
  $ guix package -i font-terminus:pcf-8bit
  $ fc-cache -fr

verify that the above command worked:

  $ fc-list | grep ter-116b
  …are/fonts/terminus/ter-116b.pcf.gz: Terminus:style=Bold

and see if your font situation improves?

If Terminus is actually unusable without those files, I'll add 
them back to :out.

Kind regards,

T G-R

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#34799: font breakage, square boxes, font-terminus
  2019-03-10  2:48 bug#34799: font breakage, square boxes Bradley Haggerty
  2019-03-10  2:55 ` bug#34799: font breakage, square boxes, font-terminus Bradley Haggerty
  2019-03-14 15:14 ` Bradley Haggerty
@ 2019-03-16  9:43 ` Bradley Haggerty
  2020-06-10 14:44 ` bug#34799: font breakage, square boxes Royce Strange
  3 siblings, 0 replies; 7+ messages in thread
From: Bradley Haggerty @ 2019-03-16  9:43 UTC (permalink / raw)
  To: 34799

[-- Attachment #1: Type: text/plain, Size: 628 bytes --]

Tobias Geerinckx-Rice wrote:
>  $ guix pull
>  $ guix package -i font-terminus:pcf-8bit
>  $ fc-cache -fr
>
>verify that the above command worked:
>
>   $ fc-list | grep ter-116b
>  …are/fonts/terminus/ter-116b.pcf.gz: Terminus:style=Bold
>
>and see if your font situation improves?

It all looks good now! Thanks for the fix.

Here is the output showing that the font is installed properly:
brad@kazuki:~/ > fc-list | grep ter-116b
/home/brad/.guix-profile/share/fonts/terminus/ter-116b.pcf.gz:
Terminus:style=Bold

So now will I be all set or will there be another packaging change to look
out for now?

[-- Attachment #2: Type: text/html, Size: 871 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#34799: font breakage, square boxes
  2019-03-10  2:48 bug#34799: font breakage, square boxes Bradley Haggerty
                   ` (2 preceding siblings ...)
  2019-03-16  9:43 ` Bradley Haggerty
@ 2020-06-10 14:44 ` Royce Strange
  3 siblings, 0 replies; 7+ messages in thread
From: Royce Strange @ 2020-06-10 14:44 UTC (permalink / raw)
  To: 34799-done

Hello.

Bradley Haggerty said that the fix provided by Tobias Geerinckx-Rice
worked for him.

Closing.




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-06-10 14:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-10  2:48 bug#34799: font breakage, square boxes Bradley Haggerty
2019-03-10  2:55 ` bug#34799: font breakage, square boxes, font-terminus Bradley Haggerty
2019-03-10 11:16   ` Tobias Geerinckx-Rice
2019-03-14 15:14 ` Bradley Haggerty
2019-03-14 21:34   ` Tobias Geerinckx-Rice
2019-03-16  9:43 ` Bradley Haggerty
2020-06-10 14:44 ` bug#34799: font breakage, square boxes Royce Strange

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.