Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829120 - >=x11-base/xorg-server-21 incomplete font path (misc, 100dpi, ... not found)
Summary: >=x11-base/xorg-server-21 incomplete font path (misc, 100dpi, ... not found)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-13 21:59 UTC by Bernard Cafarelli
Modified: 2021-12-16 02:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernard Cafarelli gentoo-dev 2021-12-13 21:59:23 UTC
After updating to x11-base/xorg-server-21.1.1-r2 and restarting X, some of my old applications (using X11 fonts directly) failed to start, for example with x11-plugins/wmpinboard:
Warning: The font `-*-fixed-*--10-*-iso8859-1' doesn't exist.
Fatal error: No alternatives left, aborting.

As I did not remove any fonts and this was working until recently, I dug into xorg-server itself and update from 1.20

1.20 with autotools sets --with-fontrootdir="${EPREFIX}"/usr/share/fonts
While 21.x in meson uses -Ddefault_font_path="${EPREFIX}"/usr/share/fonts

But default path is not the same as root dir:
https://github.com/freedesktop/xorg-xserver/blob/xwayland-21.1.1/meson.build#L126

When not set, configuration will pick fontrootdir from pkgconfig file and create a proper default font path, concatenation of all common subdirs in fontrootdir (like misc, 100dpi, ...). While current ebuild "just" includes root /usr/share/fonts

As a workaround I dropped the default_font_path from ebuild and remerged to get back my applications (not applicable as proper fix as we loose ${EPREFIX})
Comment 1 Larry the Git Cow gentoo-dev 2021-12-16 02:37:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d988354639809f18c39c18fd7e804df99ecedcc

commit 1d988354639809f18c39c18fd7e804df99ecedcc
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2021-12-16 02:05:33 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2021-12-16 02:37:23 +0000

    x11-base/xorg-server: Remove default font setting
    
    This option has slightly different behavior between the old autotools
    build system and meson.
    
    When not set, configuration will pick fontrootdir from pkgconfig file
    and create a proper default font path, concatenation of all common
    subdirs in fontrootdir (like misc, 100dpi, ...). When set, it only
    includes the argument, e.g. /usr/share/fonts.
    
    Prefix systems should not be affected because meson gets the fontrootdir
    from pkgconfig, which includes the prefix path.
    
    Closes: https://bugs.gentoo.org/829120
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 x11-base/xorg-server/xorg-server-9999.ebuild | 1 -
 1 file changed, 1 deletion(-)