$Id$ As explained in #324768, this patch modifies setxkbmap and xkbcomp programs so that they look for XKB data files in $XKBPATH if this environment variable is set. This allows installing both xlibs and xkeyboard-config at the same time, so that xkeyboard-config can install its files under /etc/X11/xkb-data until all packages depending on xlibs are fixed. This patch by Denis Barbier. This patch will not be submitted upstream. Index: setxkbmap/setxkbmap.c =================================================================== --- setxkbmap/setxkbmap.c.orig 2007-02-11 08:37:45.000000000 +0100 +++ setxkbmap/setxkbmap.c 2007-02-11 08:38:02.000000000 +0100 @@ -321,9 +321,13 @@ int i; Bool ok; unsigned present; +char *xkbpath; ok= True; addToList(&szInclPath,&numInclPath,&inclPath,"."); + xkbpath= (char *)getenv("XKBPATH"); + if (xkbpath!=NULL) + addToList(&szInclPath,&numInclPath,&inclPath,xkbpath); addToList(&szInclPath,&numInclPath,&inclPath,DFLT_XKB_CONFIG_ROOT); for (i=1;(i