[Xcb] [PATCH 2/2: xpyb] Fix length field handling, again.

Julien Danjou julien at danjou.info
Fri Mar 23 07:29:50 PDT 2012


On Fri, Mar 23 2012, Alex Plotnick wrote:

> This revises commit c5ff7fbf5a53cc20984a20d5461be2fc1f1eac39, which did
> fix the build, but generated invalid code for (at least) QueryTextExtents.

With this patch I'm not able to build xpyb:

% make
Making all in src
make[1]: Entering directory `/home/jd/Work/src/xpyb/src'
ln -s -f /usr/share/xcb/xproto.xml xproto.xml
/usr/bin/python ./py_client.py -p /usr/lib/python2.7/dist-packages /usr/share/xcb/xproto.xml
Traceback (most recent call last):
  File "./py_client.py", line 626, in <module>
    module.generate()
  File "/usr/lib/python2.7/dist-packages/xcbgen/state.py", line 101, in generate
    item.out(name)
  File "./py_client.py", line 526, in py_request
    _py_request_helper(self, name, False, True)
  File "./py_client.py", line 488, in _py_request_helper
    _py('        buf.write(pack(\'%s\', %s))', field.type.py_format_str, _py_get_expr(field.type.expr))
  File "./py_client.py", line 278, in _py_get_expr
    lenexp = _py_get_length_field(expr)
  File "./py_client.py", line 263, in _py_get_length_field
    for grandparent in expr.parent.parents:
AttributeError: 'ExprType' object has no attribute 'parents'
make[1]: *** [xproto.py] Error 1
make[1]: Leaving directory `/home/jd/Work/src/xpyb/src'
make: *** [all-recursive] Error 1

-- 
           Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20120323/7f4e887c/attachment.pgp>


More information about the Xcb mailing list