$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-1.0.2/setxkbmap.c =================================================================== --- setxkbmap-1.0.2/setxkbmap.c +++ setxkbmap-1.0.2/setxkbmap.c @@ -318,9 +318,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