6563653 xorgcfg fails with "Can't create rules structure" error message nv_67
authorAlan Coopersmith <Alan.Coopersmith@Sun.COM>
Thu, 31 May 2007 16:01:47 -0700
changeset 164 1ce0c4637c97
parent 163 c3e81c192e37
child 165 a419b3b6e043
6563653 xorgcfg fails with "Can't create rules structure" error message
open-src/xserver/xorg/xorgcfg.patch
--- a/open-src/xserver/xorg/xorgcfg.patch	Fri May 25 13:22:00 2007 -0700
+++ b/open-src/xserver/xorg/xorgcfg.patch	Thu May 31 16:01:47 2007 -0700
@@ -456,6 +456,32 @@
  
      if (!noverify) {
  	XF86ModuleData *initdata = NULL;
+
+--- hw/xfree86/utils/xorgcfg/keyboard-cfg.c
++++ hw/xfree86/utils/xorgcfg/keyboard-cfg.c
+@@ -71,7 +71,7 @@ static void UpdateRulesPopups(void);
+  */
+ static XF86XkbRulesDescInfo **xkb_desc, *xkb_rules;
+ static int num_xkb_desc;
+-static char *XkbRulesDir = "share/X11/xkb/rules/";
++static char *XkbRulesDir = "lib/X11/xkb/rules/";
+ #ifdef XFREE98_XKB
+ static char *XkbRulesFile = "xfree98";
+ #else
+
+--- hw/xfree86/utils/xorgcfg/keyboard-cfg.h
++++ hw/xfree86/utils/xorgcfg/keyboard-cfg.h
+@@ -37,7 +37,7 @@ #define _xf86cfg_keyboard_h
+ /*
+  * All file names are from XProjectRoot or XWINHOME environment variable.
+  */
+-#define	XkbConfigDir		"share/X11/xkb/"
++#define	XkbConfigDir		"lib/X11/xkb/"
+ #define	XkbConfigFile		"X0-config.keyboard"
+ 
+ /*
+
+
 diff -urp -x '*~' hw/xfree86/utils/xorgcfg/mouse-cfg.c hw/xfree86/utils/xorgcfg/mouse-cfg.c
 --- hw/xfree86/utils/xorgcfg/mouse-cfg.c	2006-12-21 10:50:47.000000000 -0800
 +++ hw/xfree86/utils/xorgcfg/mouse-cfg.c	2007-01-05 15:23:49.414822000 -0800