Page MenuHomeFreeBSD

Force fonts cache refresh
ClosedPublic

Authored by feld on Apr 6 2015, 8:12 PM.

Details

Summary

After the recent font shuffle there has been some fallout with
font-related issues that have been reported to me by peers who use
FreeBSD. Following their troubleshooting notes, I forced a PORTREVISION
bump on databases/rrdtool and x11-toolkits/pango which may have been a
noop.

I gained access to yet another system with font-related issues and all
ports up to date including a rebuilt rrdtool and pango. The problem
persisted until I started investigating fontconfig.

On a system of mine with all ports/packages updated, I noted the output
of

fc-list

produced entries which still had /usr/local/lib/X11/fonts/ as the path
but the files there did not exist. Running

fc-cache

did not affect the outcome. It wasn't until I forced the update with -f
that the font list was updated to reflect the new paths. It also grew
the list of fonts substantially.

I do not think the existing fc-cache command is sufficient to ensure
fonts are readily available after they have been installed, which is why
I'm proposing we alter the @fcfontsdir command to run

fc-cache -sf

If this change is accepted, it might be necessary to require a
PORTREVISION bump on all fonts to ensure endusers are getting packages
with the updated fc-cache command so they do not have to manually
intervene.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

feld retitled this revision from to Force fonts cache refresh.
feld updated this object.
feld edited the test plan for this revision. (Show Details)
feld added reviewers: bapt, kwm.
bapt edited edge metadata.
This revision is now accepted and ready to land.Apr 6 2015, 8:20 PM
kwm edited edge metadata.
feld updated this revision to Diff 4710.

Closed by commit rP383480 (authored by @feld).