doc: dot graphs display square glyphs instead of letters

  • Done
  • quality assurance status badge
Details
3 participants
  • Pierre Neidhardt
  • Marius Bakke
  • zimoun
Owner
unassigned
Submitted by
Pierre Neidhardt
Severity
normal
Merged with
P
P
Pierre Neidhardt wrote on 15 May 2020 12:23
(address . bug-guix@gnu.org)
87sgg1xzru.fsf@ambrevar.xyz
See for instance "12.1 The Reduced Binary Seed Bootstrap".
Commit 7bba5425473b5d193946e537de77c631ae6c3667.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl6+baUACgkQm9z0l6S7
zH/YMgf/QY1QvPg1F3EM7P5uc3FZGiptlLIGKaELvgHaGylK6zJTLvT3gbHR69lI
rEKmfD/qcAx1L88nYWpkPFdQBCdIEoO3+cqwrIQMO4VMyP7v4XVb8wjcT/cLbM2w
uInPAHbnP/C0tYRRF8bbDZ0tV/dgabBxuZkdYon6WIj2eysRXpaYJHEeUrgVr5YT
LaTirMwbU9aGB1q8+IEqJni0tW2b8UKNBcGV8qTpvgnJkj/25eT+0jvMjMBkmQaU
rE7FzfPl7heO/3L1vkVfuZJFPne295F1rtnSwCVefcIpj1ASpGQOelNqSr8Ou60w
TAykicKXpRkZWiCXuSMQuNixkPFjpg==
=DXys
-----END PGP SIGNATURE-----

M
M
Marius Bakke wrote on 15 May 2020 12:50
87k11dtqst.fsf@devup.no
Pierre Neidhardt <mail@ambrevar.xyz> writes:

Toggle quote (3 lines)
> See for instance "12.1 The Reduced Binary Seed Bootstrap".
> Commit 7bba5425473b5d193946e537de77c631ae6c3667.

I can not reproduce this. What is the exact command you are running?

Do you have any fonts installed?
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl6+dBIACgkQoqBt8qM6
VPpvFAf/WQ85us2LAr/muAZrkpu9cVxGMrF9RxljWHlfpVStImzx5bfNKAWfg5+2
hahPj/FnGBYGp5NTCZiKvEdDt4MEN0MAyPEc24yKtcDOIuhs0OViTE3HtyFS23dV
nSExp8zSnDuq1BpiU3sDHlfm5NThdnTouYWwcSVGEa7r/DzioIOk6AfHxg68My1N
krNa0pRK0MdJyMrtubcIpv5CtZ784Fr31RJhtR3LY3rc4WkMouS/U+PswUXoV9zq
kUwMFRkDgcQJ2LdY7ML4TPg4mzAoB2KA+bytk6GnLiX1U9WwHKYhKqZWNcr7c9ck
nVItD4g6mmUyvBKGpmokCYtBJrwzvA==
=pgZQ
-----END PGP SIGNATURE-----

P
P
Pierre Neidhardt wrote on 15 May 2020 13:48
87pnb5xvup.fsf@ambrevar.xyz
Recipe in Emacs:

- C-h i
- m Guix RET
- i bootstrap RET
- m Reduced Binary Seed Bootstrap

Toggle quote (2 lines)
> Do you have any fonts installed?

I have font-dejavu, that's it.

--
Pierre Neidhardt
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl6+gX8ACgkQm9z0l6S7
zH9k9Qf/SHohu2DBLFd+XoTFx0wF3OigaIHRhz5IXkUNBUzXPnI6tWnAmR66D3OL
5aook1o/IGUTeYYfm31secBv2n2O68YufvrnuhHij0BC5Z8xekaHrEFguOFNKLJg
Q1v6U2wC4EOt3w9NFHRlGcWxgnOqhVGJjL/vIBv6VM1ETP81ZzkzsD3hZ6B+bVdH
2sHiCjf1pVIGIsN/b7m2ZtK+Wx4Z8uLlO5NE1704CyuZO2orbuTHzrYmJ/nNo2Nc
QLiP7c6RmdVSLGATXeKjew5T3NBPMkC/k3u8qs/03tPc2Kcel518O3xsITrIoWUY
AUL77+8MS2BoFCw05gfZFrUlIg1+sQ==
=Nfd4
-----END PGP SIGNATURE-----

Z
Z
zimoun wrote on 15 May 2020 15:53
(name . Pierre Neidhardt)(address . mail@ambrevar.xyz)
CAJ3okZ0FsUPwJbMFVnVu778n5Jp7vWGFyV7vqnS9=xHfzDgx0A@mail.gmail.com
Hi Pierre,

I do not see an issue a Marius. "I have font-dejavu, that's it", too.
But I am not sure to understand which manual built with which commit
you are talking about.

Cheers,
simon
P
P
Pierre Neidhardt wrote on 15 May 2020 16:13
(name . zimoun)(address . zimon.toutoune@gmail.com)
873681jnfj.fsf@ambrevar.xyz
The Guix manual from commit 7bba5425473b5d193946e537de77c631ae6c3667.

I can reproduce the issue with

Toggle snippet (3 lines)
env INFOPATH=$HOME/.config/guix/current/share/info emacs

The dot figures are generated during the Guix build I guess. Something
odd is happening.

--
Pierre Neidhardt
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl6+o6AACgkQm9z0l6S7
zH+Amwf8CMU6dfBkLXDDX8PL8axiURQ8N24KBWSx8Az1vr3X+93o/zCmLqF71QT1
/aHRqXjOU+wbcCZje5twUuvJ8EBp/mf9090bK/MyAx4uUf/+7XeCIVCLjs8OoZDT
aerVjaJkclEAbAUPwC8ujo9nau2uKG+Mb7tDYISebLFuzURgfvzt6S+auTOpEo6Z
Q57acBgx40CZJYW4CJibNyKMg5a1pftiAbkn2aepk8nE7z3ZKZ8ugGnZCRrPnt+y
FHV1goiKFxY7O+J4hjRPJjNjCIS0273ovbEMmVHCLaf3kjviQJr57kQfGEhapW2w
UP54ggQOLoVve3Yxovkt3tIEA1XXRQ==
=zYZD
-----END PGP SIGNATURE-----

P
P
Pierre Neidhardt wrote on 15 May 2020 16:45
(name . zimoun)(address . zimon.toutoune@gmail.com)
875zcxtfyf.fsf@ambrevar.xyz
Sorry, I wrong commit. Guix commit is
afc46f22672eb3218fbd1e567f85fc6367286461.

--
Pierre Neidhardt
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl6+qvkACgkQm9z0l6S7
zH+bvggAgRHz2fA8T0nV9W2tBg5lD172/+8hbBNUupxGR/JR5mgWj6ICYqDBkck6
6GqqQF/vgifOG2vcCi2N3sKtTENIsWE3w9jwRv4HtRWm6NsrqlS8DrS8p2BLCv0t
rfFp0V8kOVVrQhdl97iqxrjo4E3RRxhTXpAA5dsIXcQiA8i9jOm/MnbDrIKxTE04
5AET9nhPQZg3kyUsOEXSGAjAVDTYvJ1MbVii3Vpzkjc1+Suzt+JG1y5FVYQNdlUU
QE0QWHlaEnNjv9rHZPU8xfxb9lo15m0W7uGjFGt0Jigx2ZMwK7lso79rxYH9WLez
i6Onu7YYWgMNpZrvjCiWzE4EsK3YFg==
=Wcll
-----END PGP SIGNATURE-----

Z
Z
zimoun wrote on 15 May 2020 17:02
(name . Pierre Neidhardt)(address . mail@ambrevar.xyz)
CAJ3okZ2a-htWcycgdPj3qDd+RED0amZZ8ikjLZUUHN_vOE6hOg@mail.gmail.com
On Fri, 15 May 2020 at 16:45, Pierre Neidhardt <mail@ambrevar.xyz> wrote:

Toggle quote (3 lines)
> Sorry, I wrong commit. Guix commit is
> afc46f22672eb3218fbd1e567f85fc6367286461.

Now I see it! :-)

guix pull --commit=afc46f2 -p /tmp/pierre
emacs -q
C-u C-h i /tmp/pierre/share/info/guix.info.gz RET
i bootstrap RET
m Reduced Binary Seed Bootstrap RET

With font-dejavu.


Cheers,
simon
P
P
Pierre Neidhardt wrote on 15 May 2020 17:32
(name . zimoun)(address . zimon.toutoune@gmail.com)
87zha9rz77.fsf@ambrevar.xyz
Are you saying you can reproduce the issue?

--
Pierre Neidhardt
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl6+tgwACgkQm9z0l6S7
zH/lTggAhW+aPIF+1fooz1WVtVPs9mIni8OvteV6czYTzTtNYpQ2J1BPMNRIaOmv
m4kN4xebvthXfrc9ssyVQ1Q9lCweqK7FGfxTv3V6oqWiNpt9zhguOB+PPQfMj2R7
znkW0rpXXHqjZI2P1U1DWpCgoQ5Ui+1NCxEjwCQrzzSPsKd9nQlMHYkHvMLvlJM2
LJnG/S2wPiZDPYkZ82KU6XSStrYYtE7E9cnftxYrAvj9F4idp0g3TxiPTi9ESghV
Yr2V9Z+Fb3s3WCqgmAhDKdDYZECFf0/F6PGzVzkzm+rmzh4B6lVAfKcP7FZaewDo
oAOVJhI1PjflRDdlAYUtrh6eYIxj/Q==
=A21z
-----END PGP SIGNATURE-----

Z
Z
zimoun wrote on 15 May 2020 17:36
(name . Pierre Neidhardt)(address . mail@ambrevar.xyz)
CAJ3okZ0rsF7QSQTzdem5Ovej97Gbv0rB5v2y7CKNJVugErYi7A@mail.gmail.com
On Fri, 15 May 2020 at 17:32, Pierre Neidhardt <mail@ambrevar.xyz> wrote:
Toggle quote (3 lines)
>
> Are you saying you can reproduce the issue?

Yes. It is between 2c8305d and afc46f2.
Z
Z
zimoun wrote on 15 May 2020 20:13
(name . Pierre Neidhardt)(address . mail@ambrevar.xyz)
CAJ3okZ1vs1uEx85xU8q08FLCUYQhs5_X7iLEnUrEx6fMw8D5cQ@mail.gmail.com
guix pull --commit=afc46f2 -p /tmp/broken

then /tmp/broken/share/info/images/bootstrap-graph.png does not
contains the right font.


Reproduced with a local checkout even if the
/path/to/checkout/doc/images/*.png are right. However, it is not when
it is pulled:

./pre-env-inst guix pull --branch=master --url=$PWD -p /tmp/test

then /tmp/test/share/info/images/bootstrap-graph.png does not have the
right font.

I do not know where it comes from and my machine is not enough
powerful to bisect.
Z
Z
zimoun wrote on 16 May 2020 16:03
bug#41282: share/info/images/*.png broken
(name . Marius Bakke)(address . mbakke@fastmail.com)
CAJ3okZ2LC8d9BoUusPavb+VZr5dYdoTOD6zyb++42Km=BMwTfg@mail.gmail.com
Dear Marius,

I do not know if it is a bug or if I misconfigured something but some
images under 'share/info/images' are "broken" for some commits, as if
the font is missing. Because it is 'png' files, it is not related on
the presence or absence of such fonts on my machine, I guess. Or do I
misunderstand something? And if it is, why for some commits it
displays nicely and other not.


When I run:

guix pull --commit=2c8305d -p /tmp/good

then 'display /tmp/good/share/info/images/bootstrap-graph.png'
displays nicely. However, when I run:

guix pull --commit=afc46f2 -p /tmp/bad

'display /tmp/bad/share/info/images/bootstrap-graph.png' is not nice,
as if the font is missing.


Well, I suspect it comes from something related to the recent
'core-updates'. To underline my point, I run this script:

Toggle snippet (29 lines)
SRC=/tmp/guix/

MERGE=/tmp/check/merge
LEFT=/tmp/check/left
RIGHT=/tmp/check/right

mkdir -p $MERGE
mkdir -p $LEFT
mkdir -p $RIGHT

for merge in $(git -C $SRC \
log 2c8305d..afc46f2 \
--ancestry-path --merges \
--format="%h")
do
left=$(git -C $SRC log $merge --format="%p" -n1 | cut -f1 -d' ')
right=$(git -C $SRC log $merge --format="%p" -n1 | cut -f2 -d' ')

echo $merge
guix pull --commit=$merge -p${MERGE}/$merge

echo $left
guix pull --commit=$left -p${LEFT}/$left

echo $right
guix pull --commit=$right -p${RIGHT}/$right
done

which basically pull all the commits corresponding to merges between
the "working" commit and the "broken" commit. And pull the two parent
commits too.

Based on that, all the merged commits are "broken". The image
'share/info/images/bootstrap-graph.png' displays uglily for the
commits:

4bdf4182fe
50e6c1bf2e
87a40d7203
8bf8cd9b85
c263cfdcde
f589cbc4dc

Then the "left" are all broken too, except the commit c81457a588.
All the "right" are ok, except the commit 23a59b180b.

Note that these two corresponds to the last core-updates merge:

git log 4bdf4182fe --format="%h %p %n %s" -n1

as if they were switched.


Last, I have checked the commits:

35c43fcdbb
4ba425060a
45c137e30f
7b07852ddb
2676579dc8

which are the ones just next after the core-updates merge ones and
they appear displaying ugly.


If I misunderstand or misconfigure something, please tell me and I
could correct why I am seeing good images and bad images.
Otherwise, I do not have an idea why it should come from.


Best regards,
simon
M
M
Marius Bakke wrote on 20 May 2020 22:20
Re: bug#41418: Rendered graphs in manual have improperly rendered text
(name . Carlo Zancanaro)(address . carlo@zancanaro.id.au)
875zcqbbp5.fsf@devup.no
merge 41282 41418
thanks

Carlo Zancanaro <carlo@zancanaro.id.au> writes:

Toggle quote (5 lines)
> Apologies, immediately after sending this email I saw #41282,
> which is the same bug. I don't know whether it's better to close
> this, or to merge them, so I'll leave that up to someone else to
> decide. :)

I merged them. The main difference is that you will get a notification
when it gets fixed. It also aids if someone searches for the problem
and finds this report, but not the other.
M
M
Marius Bakke wrote on 21 May 2020 00:00
Re: [PATCH] gnu: fontconfig: Add replacement with font-dejavu instead of gs-fonts.
(name . Leo Famulari)(address . leo@famulari.name)(address . guix-devel@gnu.org)
87eere9shk.fsf@devup.no
Leo Famulari <leo@famulari.name> writes:

Toggle quote (13 lines)
> On Sun, May 17, 2020 at 04:50:12PM +0200, Marius Bakke wrote:
>> This is a hack to make (some) fonts working when users don't have fonts
>> specified in their system configuration, and (crucially) places where
>> the fontconfig cache may be unavailable such as 'guix pack's.
>>
>> I'm not sure whether font-dejavu is a good replacement here. Another
>> approach could be to convert gs-fonts to TrueType or OpenType format.
>>
>> Thoughts? I don't know much about fonts and would appreciate feedback.
>
> I think you should push right away, assuming that it helps and doesn't
> rebuild the world.

I pushed the patch as ab9de8cfb0525ef43668712ac898707f97f9a620.

I verified that it fixes the immediate problem with fonts in the Guix
manual (#41282) as well as 'guix pack' (#41344). It should also provide
a decent fallback for cases where the user did not explicitly install
any fonts such as in #41241.

Hoping for angry reports now about why such a poor replacement font was
chosen. ;-)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7FqIgACgkQoqBt8qM6
VPrOBgf9F4IpPAmLvtavCpM/H2knY+lF1QxombhJB4rHXuj1P0F4PEiYi4o1u666
IYeNnLzdJ1Pui6BTI+MwJ94WnpKMN9Tt0a/5qc5nWFNvuL4iP7RmxrhVSeE3W6E/
ZBuR2FVSU86ncsXX5raRLngWj5Ft9I4KTjVAW5mLrNMHtEHQ0yh2AikuZplnJExy
CpSJAEo4Hvs8iy1VBdB9GTRYui3MWYU6lYg0mOVpxTE12AjD8nglyrzF7QIofLfa
cVdAjnxM+/cbKSk96wRzTlrOre3DxQlOzSmF1m+ExXbuvya0WBqlrWrS96U/THm4
nUEJOBg7Dfe3GdCIsA7umMeXQwLGuQ==
=IFkc
-----END PGP SIGNATURE-----

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 41282@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 41282
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch