← Back to team overview

desktop-packages 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 Desktop
Packages, which is subscribed to pygtk in Ubuntu.
https://bugs.launchpad.net/bugs/829470

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

Status in “pygtk” package in Ubuntu:
  Invalid
Status in “xorg-server” package in Ubuntu:
  Triaged
Status in “pygtk” source package in Oneiric:
  Invalid
Status in “xorg-server” source package in Oneiric:
  Triaged

Bug description:
  pygtk version 2.24.0-2 failed to build in oneiric
  Link to failed build: https://launchpad.net/ubuntu/+archive/test-rebuild-20110816/+build/2709047

  Details about the rebuild:
  http://people.ubuntuwire.org/~wgrant/rebuild-ftbfs-test/test-rebuild-20110816-oneiric.html

  Direct link to the build log: https://launchpad.net/ubuntu/+archive
  /test-rebuild-20110816/+build/2709047/+files/buildlog_ubuntu-
  oneiric-i386.pygtk_2.24.0-2_FAILEDTOBUILD.txt.gz

  This log snippet might be of interest, since it triggered the matcher 'Purging chroot-autobuild'.
  Excerpt 7519 lines into the build log:

  	done
  # finally, install files from DESTDIR in the per-package dirs
  dh_install
  # install rtupdate script to handle Python default runtime change
  install -d debian/python-gtk2-dev/usr/share/python/runtime.d
  install debian/python-gtk2-dev.rtupdate debian/python-gtk2-dev/usr/share/python/runtime.d
  for i in $(find debian/python-*-dbg -name '*.so'); do \
  	  b=$(basename $i .so); \
  	  mv $i $(dirname $i)/${b}_d.so; \
  	done
  dh_testdir
  G_HOME=/ PYTHON=/usr/bin/python2.6 xvfb-run -s "-screen 0 1280x1024x24 -noreset" /usr/bin/make -C build-2.6 check
  xvfb-run: error: Xvfb failed to start
  make: *** [build-2.6/check-stamp] Error 1
  dpkg-buildpackage: error: /usr/bin/fakeroot debian/rules binary gave error exit status 2
  ******************************************************************************
  Build finished at 20110818-0818
  FAILED [dpkg-buildpackage died]
  Purging chroot-autobuild/build/buildd/pygtk-2.24.0

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


References