Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 269682

Summary: dev-python/pycairo needs more x11-libs/cairo use-deps
Product: Gentoo Linux Reporter: Yaroslav Isakov <yaroslav.isakov>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: djc
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 269625    

Description Yaroslav Isakov 2009-05-13 12:21:21 UTC
dev-python/pycairo can use svg surface
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-23 15:52:33 UTC
What exactly do you suggest?
Comment 2 Yaroslav Isakov 2009-05-23 16:11:00 UTC
I suggest use-dep (x11-libs/cairo[svg?] or explicit x11-libs/cairo[svg])
Comment 3 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-05-24 09:51:20 UTC
I would recommend a dep of cairo[svg], and +svg in cairo itself.
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-10 03:24:18 UTC
Fixed.
Comment 5 Geoff Leach 2009-09-13 14:00:31 UTC
With the conditional use flag dependency of '[svg=]' I get the message 

>emerge -pv pycairo

emerge: there are no ebuilds built with USE flags to satisfy ">=x11-libs/cairo-1.8.8[-svg]".
!!! One of the following packages is required to complete your request:
- x11-libs/cairo-1.8.8 (Change USE: -svg)
(dependency required by "dev-python/pycairo-1.8.8" [ebuild])
(dependency required by "pycairo" [argument])

I have svg enabled for cairo

emerge -pv cairo

[ebuild   R   ] x11-libs/cairo-1.8.8  USE="X glitz opengl svg -cleartype -debug -directfb -doc -xcb" 0 kB

So pycairo in effect tells me to turn off svg for cairo because it is not enabled for pycairo - doesnt seem right. Perhaps [svg?] as suggested above?
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-13 14:21:28 UTC
(In reply to comment #5)

Current dependency is correct. "svg" USE flag must be either enabled for both cairo and pycairo, or disabled for these packages.
Comment 7 Geoff Leach 2009-09-13 23:45:26 UTC
Thanks.

Would it better to have a message saying something along those lines, rather than just indicating the one option of 

- x11-libs/cairo-1.8.8 (Change USE: -svg)

I guess that is more portage than individual ebuilds?
Comment 8 Mart Raudsepp gentoo-dev 2009-09-19 10:14:11 UTC
(In reply to comment #6)
> (In reply to comment #5)
> 
> Current dependency is correct. "svg" USE flag must be either enabled for both
> cairo and pycairo, or disabled for these packages.

This is not acceptable. It leads to huge deptree issues when pycairo[-svg] and something else _requiring_ svg surfaces (so they depend on cairo[svg]).
cairo[svg=] dep in pycairo means that if pycairo is build with USE=-svg, and you have something else, say, something everyone will have like pango, which requires svg surfaces, your deptree is screwed.
Comment 9 Dirkjan Ochtman (RETIRED) gentoo-dev 2009-09-19 10:15:46 UTC
Seems like pycairo just shouldn't have an svg flag. People who want svg behavior should set the flag on cairo, and then pycairo will automagically get it.
Comment 10 Mart Raudsepp gentoo-dev 2009-09-19 10:26:14 UTC
I suppose the problem is the automagic bit too.
Can't it be made explicitly configurable in the build system?
So you could have cairo[svg] and pycairo[-svg] fine (you could now too, just I guess pycairo will still have svg support then without fixing automagic stuff).
Comment 11 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-19 13:50:03 UTC
Fixed.