tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: go-ttf dependency on ttmkfdir2
On Thu, Jan 01, 2026 at 08:05:39PM +0300, Valery Ushakov wrote:
> > However, triggering that package to update itself when you install a
> > font would require a mechanism we don't have. (Although probably we
> > should grow it, because it's the right way to deal with mktexlsr and
> > other similar issues. So maybe sometime...)
>
> I think that's what apk-tools do with triggers.
Yeah, and we should have something like that...
> > > Why fonts need to be reinstalled if freetype2 is updated?
> >
> > This is because our depends system isn't flexible/detailed enough.
> > It's basically the same as library updates that do vs. don't have
> > major version bumps, except here the issue is something like "the
> > ttmkfdir2 output format changed".
>
> That seems ... contrived.
Not really; it's a case where A depends on B, most of the time there's
no need to rebuild/redo A when B changes, but occasionally there is.
We handle these by being super-conservative about rebuilding, but it's
mostly unnecessary, annoying, stupid, and expensive :-|
> Also, does anyone actually use it, because it's obviously broken?
>
> $ awk '$NF == "-"' /usr/pkg/share/fonts/X11/TTF/fonts.scale | sort -u
> Go-Bold.ttf -
> Go-Italic.ttf -
> Go-Medium.ttf -
> Go-Mono.ttf -
> $ awk '$NF == "-"' /usr/pkg/share/fonts/X11/TTF/fonts.scale | wc -l
> 108
I do not have that, but looking at the files reveals other obvious
brokenness. E.g. in fonts.dir I see
DejaVuSans-BoldOblique.ttf -p^C
DejaVuSans-BoldOblique.ttf -p^C
DejaVuSans-BoldOblique.ttf -p^C
:
and fonts.scale also has many lines of the form
DejaVuSansCondensed-Bold.ttf -P^C<F4><FF>-DejaVu Sans Condensed-bold-r-semi condensed--0-0-0-0-c-0-adobe-standard
(escaping by less)
I smell UB.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index