In appendix is two patches from Fedora, which resolve this problem.
Filip Bartmann
This patch is generated from running autogen.sh after applying
the upstream patch to configure.in (see libxklaver-2.1-xkb-path.patch)
and then removing the portions which are not relevant.  These include
changes to whitespace, quoting, line numbers, etc.

diff -u config.h.in.xkb-path-autogen config.h.in
--- config.h.in.xkb-path-autogen	2005-12-27 13:21:11.000000000 -0400
+++ config.h.in	2005-12-27 18:02:40.000000000 -0400
@@ -75,6 +75,9 @@
 /* Base for XKB configuration */
 #undef XKB_BASE
 
+/* Base for XKB executables */
+#undef XKB_BIN_BASE
+
 /* Default XKB set of rules */
 #undef XKB_DEFAULT_RULESET
 
diff -u configure.xkb-path-autogen configure
--- configure.xkb-path-autogen	2005-12-27 13:21:11.000000000 -0400
+++ configure	2005-12-27 18:02:41.000000000 -0400
@@ -1068,6 +1068,7 @@
   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
   --with-x                use the X Window System
   --with-xkb-base=DIR        XKB base path (by default it is /usr/X11R6/lib/X11/xkb)
+  --with-xkb-bin-base=DIR        XKB executables base path
   --with-xkb-default-ruleset=RULES        XKB default set of rules (by default it is base)
   --with-xmodmap-base=DIR        xmodmap base path (by default it is /usr/share/xmodmap)
 
@@ -20693,6 +20744,21 @@
 
 
 
+# Check whether --with-xkb_bin_base or --without-xkb_bin_base was given.
+if test "${with_xkb_bin_base+set}" = set; then
+  withval="$with_xkb_bin_base"
+  xkb_bin_base="$withval"
+else
+  xkb_bin_base="$xkb_base"
+fi;
+
+
+cat >>confdefs.h <<_ACEOF
+#define XKB_BIN_BASE "${xkb_bin_base}"
+_ACEOF
+
+
+
 # Check whether --with-xkb_default_ruleset or --without-xkb_default_ruleset was given.
 if test "${with_xkb_default_ruleset+set}" = set; then
   withval="$with_xkb_default_ruleset"
Index: configure.in
===================================================================
RCS file: /cvs/xklavier/libxklavier/configure.in,v
retrieving revision 1.26
retrieving revision 1.27
diff -d -u -p -r1.26 -r1.27
--- configure.in	11 Dec 2005 02:51:19 -0000	1.26
+++ configure.in	26 Dec 2005 18:55:32 -0000	1.27
@@ -57,9 +57,16 @@ AC_ARG_WITH( xkb_base,
              [  --with-xkb-base=DIR        XKB base path (by default it is /usr/X11R6/lib/X11/xkb)],
              xkb_base="$withval", 
              xkb_base="$x_libraries/X11/xkb" )
-			 
+
 AC_DEFINE_UNQUOTED(XKB_BASE,"${xkb_base}",Base for XKB configuration)
 
+AC_ARG_WITH( xkb_bin_base,
+             [  --with-xkb-bin-base=DIR        XKB executables base path],
+             xkb_bin_base="$withval", 
+             xkb_bin_base="$xkb_base" )
+			 
+AC_DEFINE_UNQUOTED(XKB_BIN_BASE,"${xkb_bin_base}",Base for XKB executables)
+
 AC_ARG_WITH( xkb_default_ruleset,
              [  --with-xkb-default-ruleset=RULES        XKB default set of rules (by default it is base)],
              xkb_default_ruleset="$withval", 
Index: libxklavier/xklavier_config_xkb.c
===================================================================
RCS file: /cvs/xklavier/libxklavier/libxklavier/xklavier_config_xkb.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -d -u -p -r1.30 -r1.31
--- libxklavier/xklavier_config_xkb.c	3 Dec 2005 13:31:58 -0000	1.30
+++ libxklavier/xklavier_config_xkb.c	26 Dec 2005 18:55:32 -0000	1.31
@@ -24,7 +24,7 @@
 /* For "bad" X servers we hold our own copy */
 #define XML_CFG_FALLBACK_PATH ( DATA_DIR "/xfree86.xml" )
 
-#define XKBCOMP ( XKB_BASE "/xkbcomp" )
+#define XKBCOMP ( XKB_BIN_BASE "/xkbcomp" )
 
 #define XK_XKB_KEYS
 #include <X11/keysymdef.h>
Index: ChangeLog
===================================================================
RCS file: /cvs/xklavier/libxklavier/ChangeLog,v
retrieving revision 1.31
retrieving revision 1.32
diff -d -u -p -r1.31 -r1.32
--- ChangeLog	11 Dec 2005 02:51:19 -0000	1.31
+++ ChangeLog	26 Dec 2005 18:55:32 -0000	1.32
@@ -1,3 +1,8 @@
+2005-12-26 svu
+	
+	* configure.in, libxklavier/xklavier_config_xkb.c: adding XKB_BIN_BASE,
+	closing https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=174361
+
 2005-12-10 svu
 	
 	* NEWS: update for 2.1
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to