Bug 162048 - games-puzzle/xblockout doesn't find font on amd64
Bug#: 162048 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: northlite@gmx.net
Component: Games
URL: 
Summary: games-puzzle/xblockout doesn't find font on amd64
Keywords:  
Status Whiteboard: 
Opened: 2007-01-14 14:29 0000
Description:   Opened: 2007-01-14 14:29 0000
xbl when run results in the message below and exits, this is relevant for both
1.1.3 and 1.1.4

X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  45 (X_OpenFont)
  Serial number of failed request:  55
  Current serial number in output stream:  218

------- Comment #1 From NorthLite 2007-01-14 14:30:09 0000 -------
Created an attachment (id=106935) [details]
patch for version 1.1.3

------- Comment #2 From NorthLite 2007-01-14 14:31:30 0000 -------
Created an attachment (id=106936) [details]
same patch for version 1.1.4

------- Comment #3 From NorthLite 2007-01-14 14:34:42 0000 -------
(From update of attachment 106936 [details])
--- bl.c.orig   2006-02-04 20:13:23.000000000 +0000
+++ bl.c        2007-01-14 11:53:17.000000000 +0000
@@ -279,7 +279,7 @@
   bl.opt.state = STOP ;

   strcpy( bl.opt.thefont , "-*-*-*-r-*-*-12-*-*-*-*-*-iso8859-1" ) ;
-  strcpy( bl.opt.thefont2 , "-*-*-*-r-*-*-24-*-*-*-*-*-iso8859-1" ) ;
+  strcpy( bl.opt.thefont2 , "-*-*-*-r-*-*-20-*-*-*-*-*-iso8859-1" ) ;

   bl.boardkey[0] = bl.opt.userkey ;
   bl.boardkey[1] = "14789632azqswx \035p\0030" ;

------- Comment #4 From NorthLite 2007-01-14 14:45:09 0000 -------
Created an attachment (id=106938) [details]
same patch for version 1.1.4

------- Comment #5 From Tristan Heaven 2007-02-21 21:25:24 0000 -------
please post "grep -i fontpath /etc/X11/xorg.conf"

------- Comment #6 From Santiago M. Mola 2008-07-21 16:21:57 0000 -------
As discussed some time ago in #-amd64-dev and #-games, this is actually a bug.

The proposed patch works fine, although it hides the actual bug, which is that
xblockout crashes when it tries to set a fallback font after the default fails.

------- Comment #7 From Tristan Heaven 2008-07-21 21:29:51 0000 -------
Why does loading the default font fail?

------- Comment #8 From Santiago M. Mola 2008-07-22 16:48:34 0000 -------
Honestly, I don't know. If you want to check in your arch, try:

# xbl -bigfont '-*-*-*-r-*-*-24-*-*-*-*-*-iso8859-1' -font
'-*-*-*-r-*-*-24-*-*-*-*-*-iso8859-1'

If you see "Some problems when loading a font... trying others"... you have it.

iirc on x86 it wasn't a problem because the fallback font was loaded
successfully.

------- Comment #9 From Santiago M. Mola 2008-07-22 18:56:15 0000 -------
amd64 keyword dropped.

------- Comment #10 From Tupone Alfredo 2008-10-27 22:43:44 0000 -------
A Fix is now in portage. Thanks