xpyb: damage.py does not work: "NameError: global name 'RECTANGLE' is not defined"
Submitted by Dan McDougall
Assigned to xcb mailing list dummy
Description
For whatever reason, the build process of xpyb results in an error in the damage.py module. The two occurrences of RECTANGLE in the file should be xproto.RECTANGLE. This problem seems to exist in all packages of xpyb that I've encountered (Debian/Ubuntu/pypi).
I tried looking at the Makefile and other areas of the build process to find the bug/make a patch but it is way over my head. I don't know why damage.py is being generated incorrectly but something as simple as a search/replace at the end of the build process would work around the problem as a quick fix...
sed -i -e 's/RECTANGLE/xproto.RECTANGLE/g' damage.py
Let me know if I can be of any assistance in fixing this bug. Thanks!
Version: 1.1