DragonFlyBSD / DPorts

The dedicated application build system for DragonFly BSD
Other
89 stars 44 forks source link

`fonts.dir' not found (or not valid) in "/usr/local/lib/X11/fonts/misc/" etc #86

Closed davshao closed 10 years ago

davshao commented 10 years ago

After installing dports building locally after moving /usr/local and /var/db/pkg (and emptying /tmp), on at least two separate machines /var/log/Xorg.0.log complains:

[   345.563] (==) Not automatically enabling devices
[   345.632] (WW) `fonts.dir' not found (or not valid) in "/usr/local/lib/X11/fonts/misc/".
[   345.632]    Entry deleted from font path.
[   345.632]    (Run 'mkfontdir' on "/usr/local/lib/X11/fonts/misc/").
[   345.658] (WW) `fonts.dir' not found (or not valid) in "/usr/local/lib/X11/fonts/TTF/".
[   345.658]    Entry deleted from font path.
[   345.658]    (Run 'mkfontdir' on "/usr/local/lib/X11/fonts/TTF/").
[   345.658] (WW) `fonts.dir' not found (or not valid) in "/usr/local/lib/X11/fonts/OTF/".
[   345.658]    Entry deleted from font path.
[   345.658]    (Run 'mkfontdir' on "/usr/local/lib/X11/fonts/OTF/").
[   345.672] (WW) `fonts.dir' not found (or not valid) in "/usr/local/lib/X11/fonts/Type1/".
[   345.672]    Entry deleted from font path.
[   345.672]    (Run 'mkfontdir' on "/usr/local/lib/X11/fonts/Type1/").
[   345.696] (WW) `fonts.dir' not found (or not valid) in "/usr/local/lib/X11/fonts/100dpi/".
[   345.696]    Entry deleted from font path.
[   345.696]    (Run 'mkfontdir' on "/usr/local/lib/X11/fonts/100dpi/").
[   345.699] (WW) `fonts.dir' not found (or not valid) in "/usr/local/lib/X11/fonts/75dpi/".
[   345.699]    Entry deleted from font path.
[   345.699]    (Run 'mkfontdir' on "/usr/local/lib/X11/fonts/75dpi/").
[   345.699] (==) FontPath set to:

Indeed the fonts.dir did not exist in those directories.

I tested running mkfontdir as directed did remove these error messages.

jrmarino commented 10 years ago

Are you referring to entries in xorg.conf? Did you re-use an existing xorg.conf when you changed xorg servers? e.g. one from pkgsrc?

davshao commented 10 years ago

I was simply reading the /var/log/Xorg.0.log log file and it told me the fonts.dir had not been created in the respective font directories. Furthermore, looking at the corresponding font directories on a FreeBSD release 10 machine with Xorg built from ports locally, the fonts.dir files are created same time as the rest of the fonts are installed.

I never use an xorg.conf on any somewhat modern system whether it's DragonFly BSD, FreeBSD, NetBSD, or OpenBSD. Furthermore, running

Xorg -configure

simply locks up various machines I have tried when no xorg.conf did not work.

jrmarino commented 10 years ago

could building it from source be the difference between FreeBSD and DF? I assume that DF xorg was installed from packages, not built from source here.

davshao commented 10 years ago

Examining /var/log/Xorg.0.log after a fresh install compiling from source using dports through

commit 84cdd885b21a83fd3df22604fdca0fd77303bff9 Author: DPorts Builder nobody@home.ok Date: Thu Jun 5 11:06:18 2014 -0700

Import devel/gnatcoll version 2014_3

the issue appears to have been resolved.