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

Bug 531394

Summary: dev-haskell/gtk-0.12.4-r1 with dev-haskell/cairo-0.12.5.0-r1 - Graphics/UI/Gtk/Cairo.chs:123:11: Ambiguous occurrence `Region'
Product: Gentoo Linux Reporter: Khumba <bog>
Component: [OLD] DevelopmentAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dev-haskell/gtk-0.12.4-r1 build log
emerge --info

Description Khumba 2014-12-02 03:55:30 UTC
Created attachment 390746 [details]
dev-haskell/gtk-0.12.4-r1 build log

As I mentioned in bug #507390, the latest stable dev-haskell/gtk-0.12.4-r1 won't build against cairo-0.12.5* because of "Ambiguous occurence `Region'" in Graphics.UI.Gtk.Cairo.

Looks like this breaks because cairo-0.12.5.0/Graphics/Rendering/Cairo/Types.chs exports 'Region' only if x11-libs/cairo is new enough:

43 #if CAIRO_CHECK_VERSION(1,10,0)
44   , RectangleInt(..)
45   , RegionOverlap(..)
46   , Region(..), withRegion, mkRegion
47 #endif

and now stable is up to x11-libs/cairo-1.12.16.  dev-haskell/cairo-0.12.4 doesn't have this conditional export.

Downgrading to cairo-0.12.4-r1 before building gtk-0.12.4-r1 works.  Unkeywording dev-haskell/{pango,glib,gio,gtk}-0.12.5* also works.
Comment 1 Khumba 2014-12-02 03:56:07 UTC
Created attachment 390748 [details]
emerge --info
Comment 2 Toralf Förster gentoo-dev 2015-05-10 09:24:38 UTC
sstill in dev-haskell/gtk-0.12.4-r1:
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2015-09-26 21:31:38 UTC
Should be resolved by newer stable version in bug #524790
Comment 4 Khumba 2015-09-30 00:01:48 UTC
Yep, works now.  Thanks.