Summary: | dev-python/pycairo should support xpyb | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Scholz <golodhrim> |
Component: | New packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | golodhrim, rh1 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.freedesktop.org/show_bug.cgi?id=50134 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 442820 | ||
Attachments: |
patch for py2cairo xpyb support with waf build
patch for pycairo xpyb support with waf build added diff comment and fixed reformat as suggested in #gentoo-python added diff comment and fixed reformat as suggested in #gentoo-python fixes automagic dep |
Description
Martin Scholz
2012-05-18 21:56:05 UTC
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. |