From: davshao Date: Fri, 21 May 2010 06:02:08 +0000 (-0700) Subject: (no commit message) X-Git-Url: https://gitweb.dragonflybsd.org/ikiwiki.git/commitdiff_plain/debf2cbbb46cbc8f735da70999f3f05a15144ded --- diff --git a/docs/developer/GEMdrmKMS/index.mdwn b/docs/developer/GEMdrmKMS/index.mdwn index 53912ad1..28363248 100644 --- a/docs/developer/GEMdrmKMS/index.mdwn +++ b/docs/developer/GEMdrmKMS/index.mdwn @@ -150,6 +150,41 @@ using pkgsrc Python 2.6. Unfortunately at the current time not all of import getopt import sys +As of May 20, 2010, the situation for libxcb seems to be more complicated. The latest *xcb/proto* needs +to be installed. If one does not wish to install on top of one's current Python modules, +define + + export PYTHONPATH=${PREFIX}/lib/python2.6/site-packages + +and apply a patch similar to below to change *cElementTree* to *ElementTree* + + diff --git a/xcbgen/matcher.py b/xcbgen/matcher.py + index e7958fa..16e8273 100644 + --- a/xcbgen/matcher.py + +++ b/xcbgen/matcher.py + @@ -7,7 +7,7 @@ we do not create a new type object, we just record the existing one under a new + ''' + + from os.path import join + -from xml.etree.cElementTree import parse + +from xml.etree.ElementTree import parse + + import state + from xtypes import * + diff --git a/xcbgen/state.py b/xcbgen/state.py + index 51efc94..e72dc3e 100644 + --- a/xcbgen/state.py + +++ b/xcbgen/state.py + @@ -2,7 +2,7 @@ + This module contains the namespace class and the singleton module class. + ''' + from os.path import dirname, basename + -from xml.etree.cElementTree import parse + +from xml.etree.ElementTree import parse + + import matcher + from error import * + ### libXext CCLD libXext.la