[Lunar-commits] <moonbase> xorg-server: workaround OTF font warning

Zbigniew Luszpinski zbiggy at lunar-linux.org
Sat Dec 17 18:37:24 CET 2011


commit 1c6f42a01990b48ac1e918c527ce96d84a65fd51
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date:   Sat Dec 17 18:37:24 2011 +0100

    xorg-server: workaround OTF font warning
---
 xorg7/xorg-server/BUILD |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/xorg7/xorg-server/BUILD b/xorg7/xorg-server/BUILD
index 9fbc7e0..7c473ec 100644
--- a/xorg7/xorg-server/BUILD
+++ b/xorg7/xorg-server/BUILD
@@ -15,6 +15,13 @@
   # This should not be needed, check in next release if still needed.
   rm -fr /usr/share/X11/xkb/compiled  &&
   mkdir -p /var/lib/xkb  &&
-  ln -sf /var/lib/xkb /usr/share/X11/xkb/compiled
+  ln -sf /var/lib/xkb /usr/share/X11/xkb/compiled &&
+
+  # Fixes warning: "The directory "/usr/share/fonts/X11/OTF/" does not exist." in Xorg log.
+  # This path looks to be hardcoded in Xorg server so let's create empty dir to workaround it.
+  mkdir -p /usr/share/fonts/X11/OTF &&
+  if [ -x `which mkfontdir` ]; then
+    mkfontdir /usr/share/fonts/X11/OTF
+  fi
 
 ) > $C_FIFO 2>&1


More information about the Lunar-commits mailing list