hello,
I had some issues setting up Xorg on my kirkwood platform device. My issue 
after installing X was that it would fail to accept keyboard issue due to 
"(EE) XKB: Couldn't open rules file /usr/share/X11/xkb/rules/evdev" I found the 
file to be missing, and that on my gentoo system was provided by 
xkeyboard-config,
which seems to replace xkbdata. I created an xkeyboard-config package for 
openwrt and installed it leading me to find that "/usr/share/X11/XKeysymDB"  
was missing, which is normally provided by libX11. I patched the libX11 
Makefile to include the files that it normally installs in "/usr/share/X11". 
With "/usr/share/X11/XKeysymDB" missing, the keyboard would fail to work in 
Xorg and when starting Xorg you would be presented with a bunch of errors like:

expected keysym, got XF86_Switch_VT_1: line 8 of xfree86
expected keysym, got XF86_Switch_VT_2: line 11 of xfree86

With my patch to the libX11 Makefile to put the contents it installs into 
"/usr/share/X11/" Xorg works correctly.
Included inline are the two patches I created, I hope I have done this 
correctly, for this is the first time I have ever submitted patches to 
anything(I will happily accept criticism and suggestions to get better at this) 
 

Signed-off-by: Chris Schimp <silverch...@gmail.com>

Index: Xorg/xorg/data/xkeyboard-config/Makefile
===================================================================
--- Xorg/xorg/data/xkeyboard-config/Makefile    (revision 0)
+++ Xorg/xorg/data/xkeyboard-config/Makefile    (revision 0)
@@ -0,0 +1,38 @@
+#
+# Copyright (C) 2008-2010 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=xkeyboard-config
+PKG_VERSION:=1.7
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=http://xlibs.freedesktop.org/xkbdesc/
+PKG_INSTALL:=1
+
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/xkeyboard-config
+  SECTION:=xorg-data
+  CATEGORY:=Xorg
+  SUBMENU:=data
+  TITLE:=xkeyboard-config
+  URL:=http://freedesktop.org/wiki/Software/XKeyboardConfig
+endef
+
+define Build/Configure
+       $(call Build/Configure/Default)
+endef
+define Package/xkeyboard-config/install
+  $(INSTALL_DIR) $(1)/usr/share/X11/xkb
+    $(CP) -v $(PKG_INSTALL_DIR)/usr/share/X11/xkb \
+      $(1)/usr/share/X11/
+endef
+
+$(eval $(call BuildPackage,xkeyboard-config))


Index: feeds/packages/Xorg/xorg/lib/libX11/Makefile
===================================================================
--- feeds/packages/Xorg/xorg/lib/libX11/Makefile        (revision 22124)
+++ feeds/packages/Xorg/xorg/lib/libX11/Makefile        (working copy)
@@ -74,9 +74,13 @@
 
 define Package/libX11/install
        $(INSTALL_DIR) $(1)/usr/lib
+       $(INSTALL_DIR) $(1)/usr/share/X11
        $(CP) \
                $(PKG_INSTALL_DIR)/usr/lib/*.so* \
                $(1)/usr/lib/
+       $(CP)  \
+               $(PKG_INSTALL_DIR)/usr/share/X11/* \
+               $(1)/usr/share/X11
 endef
 
 $(eval $(call Feature,libX11))

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to