For some apps it would be nice if pycairo would support xpyb, so far it is not possible to get qtile cause of that missing feature working without compiling py2cairo on your own, so for a pure portage solution it would be nice to get pycairo build with xpyb support, then a pure support of qtile in gentoo/funtoo would be possible and another great WM would make it's way into the portage tree... :)
Per IRC discussion, xpyb support seems to be present in the autotools build system, but not waf. As well, it seems like the xpyb support in the autotools code would introduce an automagic dependency.
Created attachment 329302 [details, diff] patch for py2cairo xpyb support with waf build
Created attachment 329304 [details, diff] patch for pycairo xpyb support with waf build This and patch 329302 is the proposed solution of https://bugs.freedesktop.org/show_bug.cgi?id=50134. Works for me on my amd64 machine.
Created attachment 329310 [details, diff] added diff comment and fixed reformat as suggested in #gentoo-python
Created attachment 329312 [details] added diff comment and fixed reformat as suggested in #gentoo-python
These patches just seem to add an automagic dep on xpyb without even setting the proper compile flag (-DHAVE_XPYB) that is required to build the xpyb codepaths.
I just took what they introduced in their master. http://cgit.freedesktop.org/py2cairo/commit/?id=2f1f3788fa2d9b693c77645edc44f35e7073aadd And made my own test ebuild: https://github.com/baudvix/bvix-overlay/blob/master/dev-python/pycairo/pycairo-1.10.0-r3.ebuild I'm not sure how waf exactly works, but qtile works with the patch.
Created attachment 329430 [details, diff] fixes automagic dep Ok i read about automagic dep. Introduced the xcb useflag and just add the patch if its enabled. I just started reading the dev manuals. Thanks for your patient
(In reply to comment #8) > Created attachment 329430 [details, diff] [details, diff] > fixes automagic dep > > Ok i read about automagic dep. > Introduced the xcb useflag and just add the patch if its enabled. Conditional patching is generally to be avoided.
Fixed in pycairo-1.10.0-r3.