FS#1002 - ttf-ms-fonts and gdm restarting

Attached to Project: Arch Linux
Opened by Kevin Piche (kpiche) - Wednesday, 16 June 2004, 15:43 GMT
Last edited by Dale Blount (dale) - Wednesday, 16 June 2004, 15:47 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dale Blount (dale)
Architecture not specified
Severity High
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

After a system update GDM failed to start; it kept switching between text and graphics continuously. The trouble was tracked to the updated ttf-ms-fonts (1.3-5). Apparently GDM wants fonts to be world readable but the fonts from the package installed with perms 640.

$ ls -l /usr/X11R6/lib/X11/fonts/TTF
total 7300
[snip]
-r--r--r-- 1 root root 49224 Apr 26 13:07 VeraMono.ttf
-r--r--r-- 1 root root 60280 Apr 26 13:07 VeraSe.ttf
-r--r--r-- 1 root root 58736 Apr 26 13:07 VeraSeBd.ttf
-rw-r----- 1 root root 105468 Jun 12 20:24 andalemo.ttf
-rw-r----- 1 root root 275572 Jun 12 20:24 arial.ttf
-rw-r----- 1 root root 286620 Jun 12 20:24 arialbd.ttf
-rw-r----- 1 root root 224692 Jun 12 20:24 arialbi.ttf
[snip]

After a "chmod 444 /usr/X11R6/lib/X11/fonts/TTF/*.ttf" GDM restarted correctly. Not sure if this is a quirk of my machine or a umask issue but it can't hurt to add a chmod to the postinstall function.
This task depends upon

Closed by  Dale Blount (dale)
Friday, 18 June 2004, 13:41 GMT
Reason for closing:  Deferred
Comment by Dale Blount (dale) - Wednesday, 16 June 2004, 15:49 GMT
hrm, my fonts are permissioned fine... are you sure those fonts didn't exist from before or were chmod'd from some other app?

this could be the missing link to the font problem, now we just need to find out why it's happening.

Comment by Dale Blount (dale) - Wednesday, 16 June 2004, 20:00 GMT
Kevin, please try this

# umask
# pacman -R ttf-ms-fonts
# umask
# pacman -S ttf-ms-fonts
# umask

and report back here.

Thanks.
Comment by Kevin Piche (kpiche) - Wednesday, 16 June 2004, 21:18 GMT
The results:

# umask
0027
# pacman -R ttf-ms-fonts
removing ttf-ms-fonts... done.
# umask
0027
# pacman -S ttf-ms-fonts

Targets: ttf-ms-fonts-1.3-5

Proceed with upgrade? [Y/n]

checking package integrity... done.
loading package data... done.
checking for file conflicts... done.
installing ttf-ms-fonts... done.
extracting fonts... done.
rebuilding font cache... done.
# umask
0027
# ls -l /usr/X11R6/lib/X11/fonts/TTF/arial*
-rw-r----- 1 root root 275572 Jun 16 17:12 /usr/X11R6/lib/X11/fonts/TTF/arial.ttf
-rw-r----- 1 root root 286620 Jun 16 17:12 /usr/X11R6/lib/X11/fonts/TTF/arialbd.ttf
-rw-r----- 1 root root 224692 Jun 16 17:12 /usr/X11R6/lib/X11/fonts/TTF/arialbi.ttf
-rw-r----- 1 root root 206132 Jun 16 17:12 /usr/X11R6/lib/X11/fonts/TTF/ariali.ttf
#

Looks like the umask. I also noticed that Mozilla doesn't start (returns the prompt) until the permissions are fixed. Good luck!
Comment by Dale Blount (dale) - Thursday, 17 June 2004, 13:25 GMT
OK, thanks for the help.

This will be fixed in the future globally by setting the umask when pacman runs.
Comment by Dale Blount (dale) - Friday, 18 June 2004, 13:37 GMT
http://bugs.archlinux.org/index.php?do=details&id=1003

will be the resolution for this bug...

Thanks for your help.

Loading...