← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 829470] Re: Xvfb fails with empty /var/lib/xkb, causing build failures

 

Test case I'm using is adding the following line to the hello package's
binary-arch target:

  Xvfb :99

In particular, the fault is occurring within the X server code for the
xkbcomp call.  The call it's trying to make is something like:

  xkbcomp -w 1 -R/usr/share/X11/xkb/keymap -xkm xfree86 /var/lib/xkb
/server-foo.xkm

Error:            Cannot open "/var/lib/xkb/server-foo.xkm" to write keyboard description
                  Exiting

In natty, Xvfb runs properly because it uses /tmp/server-foo.xkm, which
it can write to.  Indeed, the above xkbcomp call fails in called in
binary-arch rules, but simply changing to /tmp succeeds:

  xkbcomp -w 1 -R/usr/share/X11/xkb/keymap -xkm xfree86 /var/lib/xkb
/server-foo.xkm

The code in question that decides what directory to use is
xserver/xkb/ddxLoad.c:

tatic void
OutputDirectory(
    char* outdir,
    size_t size)
{
#ifndef WIN32
    /* Can we write an xkm and then open it too? */
    if (access(XKM_OUTPUT_DIR, W_OK | X_OK) == 0 && (strlen(XKM_OUTPUT_DIR) < size))
    {
        (void) strcpy (outdir, XKM_OUTPUT_DIR);
    } else

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xorg-server in Ubuntu.
https://bugs.launchpad.net/bugs/829470

Title:
  Xvfb fails with empty /var/lib/xkb, causing build failures

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pygtk/+bug/829470/+subscriptions