Bug 1074253

Summary: xorg-x11-fonts-core should post-require mkfontdir &co.
Product: [openSUSE] openSUSE Distribution Reporter: Christopher Yeleighton <giecrilj>
Component: InstallationAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED WONTFIX QA Contact: Jiri Srain <jsrain>
Severity: Minor    
Priority: P5 - None CC: giecrilj
Version: Leap 42.3   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 42.3   
URL: https://www.microsoft.com/store/productId/9NJVJTS82TJX
Whiteboard:
Found By: Community User Services Priority:
Business Priority: Blocker: No
Marketing QA Status: --- IT Deployment: ---

Description Christopher Yeleighton 2017-12-31 18:46:45 UTC
I installed Xvnc on a clean server and I got core fonts installed but not registered.  The magic font update script is not present either.  I do not know what package the script comes with but I managed to install and run mkfontdir by hand.
Comment 2 Stefan Dirsch 2018-01-08 19:38:38 UTC
xorg-x11-Xvnc requires xorg-x11-fonts-core and xorg-x11-fonts-core contains /usr/share/fonts/misc/fonts.dir. That's the standard font search path. What do you mean with magic font update script? Check with xset -q the font path for the Xserver. Nowadays most applications/frameworks use fontconfig/freetype (client side font rendering) anyway.

Mabye you can describe your use case first.
Comment 3 Stefan Dirsch 2018-02-06 14:21:48 UTC
Still waiting for a response for about a month now. Please reopen once you can provide the requested feedback. Thanks.
Comment 4 Christopher Yeleighton 2018-02-07 18:04:52 UTC
The file fonts.dir is a configuration file that must be updated as new fonts arrive.  One of the tools to update them is mkfontdir.  The package xorg-x11-fonts-core does not provide, for example, 75dpi/fonts.dir.  It is not a problem as long as the font utilities to create it are installed.  The problem is they are not installed because they are not required.  The result is that the server does not see the fonts.  I solved the problem by installing mkfontdir and running it but that is clearly something that should be done in %post.
Comment 5 Christopher Yeleighton 2018-02-07 18:06:08 UTC
See Comment #4.
Comment 6 Stefan Dirsch 2018-02-08 04:44:27 UTC
That is weird. xorg-x11-fonts-core runs fonts-config in %post, and fonts-config package is in Prereq of this package. And fonts-config package Recommends mkfontdir package. I guess you're using some --no-recommends zypper magic or alike.
Comment 7 Christopher Yeleighton 2018-03-05 19:43:12 UTC
These packages must be required, recommending them does not make sense.  Please reconsider.  I have no idea why zypper did not install them though.
Comment 8 Stefan Dirsch 2018-03-06 11:04:16 UTC
(In reply to Christopher Yeleighton from comment #7)
> These packages must be required, recommending them does not make sense. 
> Please reconsider.  

No. Why force everyone installing it despite almost nobody is still using X11 core fonts?

> I have no idea why zypper did not install them though.

Then I suggest to figure out, why zypper no longer installs the Recommends on your system. It may bite you in the future more and more often. Hint: Check for Recommends in /etc/zypp/zypp(er).conf.
Comment 9 Christopher Yeleighton 2018-04-15 16:32:03 UTC
(In reply to Stefan Dirsch from comment #8)
> (In reply to Christopher Yeleighton from comment #7)
> > These packages must be required, recommending them does not make sense. 
> > Please reconsider.  
> 
> No. Why force everyone installing it despite almost nobody is still using
> X11 core fonts?

I insist that I am not "almost nobody".  If nobody uses X11 core fonts, they should be replaced by some other fonts that should be installed by default.  I would be happy to see this happen.
Comment 10 Stefan Dirsch 2018-04-15 20:35:05 UTC
Hard require mkfontdir/mkfontscale would be a step back. Recommends must be enough. It's our default to install also recommended packages.

Again:

"Then I suggest to figure out, why zypper no longer installs the Recommends on your system. It may bite you in the future more and more often. Hint: Check for Recommends in /etc/zypp/zypp(er).conf."