Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 384685

Summary: Xorg fonts should warn about needing a re-login
Product: Gentoo Linux Reporter: Siim Ainsaar <ainsaar>
Component: [OLD] UnspecifiedAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: enhancement CC: nikoli, openhs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 384521    

Description Siim Ainsaar 2011-09-27 16:50:59 UTC
There should be a warning at the end of the installation and uninstallation of Xorg fonts: they need a re-login, if they are going to be used in non-fontconfig applications.

To see the difference before and after re-login:

emerge -C media-fonts/font-adobe-100dpi
emerge -1 media-fonts/font-bitstream-100dpi
  (this is because of bug 384649 to regerenerate fonts.{scale,dir})
Log out of X
Log in
emerge -1 media-fonts/font-adobe-100dpi
xlsfonts -fn '-*-helvetica-bold-r-normal--*-*-100-100-*-*-*-*'
  (I see:
    -adobe-helvetica-bold-r-normal--17-120-100-100-p-0-iso10646-1
    -adobe-helvetica-bold-r-normal--17-120-100-100-p-0-iso8859-1
    -adobe-helvetica-bold-r-normal--17-120-100-100-p-0-iso8859-10
    -adobe-helvetica-bold-r-normal--17-120-100-100-p-0-iso8859-13
    -adobe-helvetica-bold-r-normal--17-120-100-100-p-0-iso8859-14
    -adobe-helvetica-bold-r-normal--17-120-100-100-p-0-iso8859-15
    -adobe-helvetica-bold-r-normal--17-120-100-100-p-0-iso8859-2
    -adobe-helvetica-bold-r-normal--17-120-100-100-p-0-iso8859-3
    -adobe-helvetica-bold-r-normal--17-120-100-100-p-0-iso8859-4
    -adobe-helvetica-bold-r-normal--17-120-100-100-p-0-iso8859-9
  I don't know where the leftovers are from.)
Log out of X
Log in
xlsfonts -fn '-*-helvetica-bold-r-normal--*-*-100-100-*-*-*-*'
  (I see many more fonts listed.)

Expected result:

the emerging of media-fonts/font-adobe-100dpi should have reminded me to re-login. Without doing it, games-board/xboard fails to start (bug 384521). So, I propose to add an ewarn to xorg-2.eclass.
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2011-10-02 23:09:45 UTC
$ xset fp rehash
Comment 2 Siim Ainsaar 2011-10-03 12:01:24 UTC
Sweet! This probably cannot be automatized as emerge may be run from outside an X, but a warning should still be added to xorg-2.eclass, into setup_fonts(), I suppose.
Comment 3 Larry the Git Cow gentoo-dev 2018-05-26 20:30:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=053b9d09dda24d2968c31c52d6898e62183f1fc4

commit 053b9d09dda24d2968c31c52d6898e62183f1fc4
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2018-05-26 20:02:27 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2018-05-26 20:29:46 +0000

    xorg-2.eclass: Notify users to run 'xset fp rehash' when fonts change
    
    Closes: https://bugs.gentoo.org/384685

 eclass/xorg-2.eclass | 2 ++
 1 file changed, 2 insertions(+)