[patch] XKB mystery solved

Mike A. Harris mharris at mharris.ca
Thu Sep 22 22:48:18 PDT 2005


Felix Kühling wrote:
> Hi,
> 
> I finally got XKB to work on my modular build. There are two issues. The
> first one is that the default xkbpath is wrong (along with font and rgb
> paths BTW). The attached patch should fix that.
> 
> The second problem is that the xfree86 XkbRules don't exist any more in
> the modular build. So my old config which used XkbRules "xfree86" was
> broken. With the monolith there was a symlink
> from .../lib/X11/xkb/rules/xfree86 to xorg.
> 
> I don't know if we want to break old configurations. If yes, we should
> at least add some helpful error message. Given my complete ignorance as
> to XKB details I actually ended up stepping through the XKB code in the
> debugger in order to track down a configuration issue! If we want to
> maintain compatibility with old configurations we should fix the modular
> build system to create the xfree86 symlink. Whatever you prefer, I'd be
> willing to implement it and submit a patch.
> 
> Best regards,
>   Felix
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Index: configure.ac
> ===================================================================
> RCS file: /cvs/xorg/xserver/xorg/configure.ac,v
> retrieving revision 1.83
> diff -u -r1.83 configure.ac
> --- configure.ac	19 Sep 2005 22:44:49 -0000	1.83
> +++ configure.ac	20 Sep 2005 00:07:19 -0000
> @@ -304,13 +304,13 @@
>                                  [ MESA_SOURCE="" ])
>  AC_ARG_WITH(default-font-path, [ --with-default-font-path=PATH ],
>  				[ FONTPATH="$withval" ],
> -				[ FONTPATH="${datadir}/X11/fonts" ])
> +				[ FONTPATH="${libdir}/X11/fonts" ])
>  AC_ARG_WITH(xkb-path,        [  --with-xkb-path=PATH ],
>  				[ XKBPATH="$withval" ],
> -				[ XKBPATH="${datadir}/X11/xkb" ])
> +				[ XKBPATH="${libdir}/X11/xkb" ])
>  AC_ARG_WITH(rgb-path,        [  --with-rgb-path=PATH ],
>  				[ RGBPATH="$withval" ],
> -				[ RGBPATH="${datadir}/X11/rgb" ])
> +				[ RGBPATH="${libdir}/X11/rgb" ])
>  
>  dnl Extensions.
>  AC_ARG_ENABLE(composite,     [  --disable-composite ], [COMPOSITE=$enableval], [COMPOSITE=yes])


xkb data files are architecture independant data, and should be
installed into datadir, not libdir.  What needs fixing, is
everything that is looking for the xkb data files in the wrong
place.



More information about the xorg-modular mailing list