Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 240704 - dev-haskell/gtk2hs-0.9.12.1 - svgcairo/Graphics/Rendering/Cairo/SVG.chs:196:2: Couldn't match expected type `()' against inferred type `CInt'
Summary: dev-haskell/gtk2hs-0.9.12.1 - svgcairo/Graphics/Rendering/Cairo/SVG.chs:196:2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-09 15:31 UTC by Paulo J. Matos
Modified: 2009-02-10 19:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch (gtk2hs-librsvg-2.22.3.patch,335 bytes, text/plain)
2008-10-09 19:17 UTC, Sebastián Magrí
Details
Fixed ebuild (gtk2hs-0.9.12.1.ebuild,3.41 KB, text/plain)
2008-10-09 19:20 UTC, Sebastián Magrí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paulo J. Matos 2008-10-09 15:31:16 UTC
/usr/bin/ghc +RTS -RTS -c svgcairo/Graphics/Rendering/Cairo/SVG.hs -o svgcairo/Graphics/Rendering/Cairo/SVG.o -O -fffi -isvgcairo -package-conf package.conf.inplace -hide-all-packages -ignore-package svgcairo -package base -package mtl-1.1.0.0 -package glib-0.9.12.1 -package cairo-0.9.12.1 -package-name svgcairo-0.9.12.1 '-#include<svgcairo/svgcairo.h>' -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12                                                                             

svgcairo/Graphics/Rendering/Cairo/SVG.chs:196:2:
    Couldn't match expected type `()' against inferred type `CInt'
      Expected type: Render ()                                    
      Inferred type: Render CInt                                  
    In the expression:                                            
          liftIO                                                  
        $ (\ (SVG arg1) (Cairo arg2)                              
               -> withForeignPtr arg1                             
                $ \ argPtr1 -> rsvg_handle_render_cairo argPtr1 arg2)
            svg cr                                                   
    In the expression:                                               
        do cr <- ask                                                 
             liftIO                                                  
           $ (\ (SVG arg1) (Cairo arg2)                              
                  -> withForeignPtr arg1                             
                   $ \ argPtr1 -> rsvg_handle_render_cairo argPtr1 arg2)
               svg cr

Reproducible: Always




Portage 2.2_rc11 (default-linux/x86/2007.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26-mactel i686)                            
=================================================================                                                             
System uname: Linux-2.6.26-mactel-i686-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-glibc2.0                                   
Timestamp of tree: Thu, 09 Oct 2008 14:15:01 +0000                                                                            
app-shells/bash:     3.2_p39                                                                                                  
dev-java/java-config: 1.3.7, 2.1.6-r1                                                                                         
dev-lang/python:     2.4.4-r9, 2.5.2-r8                                                                                       
dev-python/pycrypto: 2.0.1-r6                                                                                                 
sys-apps/baselayout: 2.0.0                                                                                                    
sys-apps/openrc:     0.3.0-r1                                                                                                 
sys-apps/sandbox:    1.2.18.1-r3                                                                                              
sys-devel/autoconf:  2.13, 2.63                                                                                               
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1                                                             
sys-devel/binutils:  2.18-r3                                                                                                  
sys-devel/gcc-config: 1.4.0-r4                                                                                                
sys-devel/libtool:   2.2.6a                                                                                                   
virtual/os-headers:  2.6.26                                                                                                   
ACCEPT_KEYWORDS="x86 ~x86"                                                                                                    
CBUILD="i686-pc-linux-gnu"                                                                                                    
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"                                                                         
CHOST="i686-pc-linux-gnu"                                                                                                     
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"      
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"                                                                                       
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"                                                                       
DISTDIR="/usr/portage/distfiles"                                                                                              
FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"       
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                         
LDFLAGS=""
LINGUAS="en en_GB pt"                                                                                                         
MAKEOPTS="-j3"                                                                                                                
PKGDIR="/usr/portage/packages"                                                                                                
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="R X aac acl acpi addbookmarks addressbook aften alias alsa amarok amrnb apache2 aspnet aspnet2 audiofile autoreplace big-tables bluetooth bzip2 cairo calendar caps cddb chicken cjk cli clisp connectionstatus contactnotes context cracklib crypt ctype cups curl cxx dbus dia djvu dri dts dvd dvdread emacs enblend encode examples exif expat extra extrafilters fame ffmpeg flac fontforge fortran gadu games gd gdbm git glitz gmp gpm graphics graphviz groupwise gstreamer gtk gtkhtml guile gzip-el hal highlight history htmlhandbook humanities iconv ieee1394 imagemagick imlib inkjar inotify ipv6 irc irda isdnlog jabber java java6 javascript jpeg kde kig-scripting kpathsea lame laptop latex ldap libextractor libsamplerate lua lzo madwifi marble mbox midi mjpeg mmx mono moonlight mozsha1 mp3 mp4 mpeg mplayer msn mudflap music musicbrainz mysql mzscheme ncurses netmeeting network networking networkmanager nls nowlistening nptl nptlonly nsplugin ntp nuv ocaml ogg omega openal opengl openmp openvpn oscar pam paste64 pcre pdf perl php pike plasma plotutils plugins png posix postscript povray ppds pppd pptp preview-latex privacy pstricks publishers pymacs python qq qt3 qt3support qt4 quicktime readline real reflection ruby samba sametime sasl science sdl session sift slp smp sms solver speex spell spl sqlite sqlite3 sse sse2 ssl ssse3 statistics subtitles subversion svg svgataglib tcl tcpd tex tex4ht texteffect theora threads tidy tiff tk toolbar toolkit-scroll-bars translator truetype unicode urlpicpreview usb v4l v4l2 vcd visualization vorbis webpresence wifi win32codecs wma wmf wmp wxwindows x264 x86 xcf xcomposite xetex xft xine xml xmlreader xmlrpc xmlwriter xorg xpm xrandr xscreensaver xv xvid yahoo yaz zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1       emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m     maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB pt" USERLAND="GNU" VIDEO_CARDS="i810 vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sebastián Magrí 2008-10-09 19:17:43 UTC
Created attachment 167762 [details]
patch

This is the patch suggested by upstream.
Comment 2 Sebastián Magrí 2008-10-09 19:20:37 UTC
Created attachment 167766 [details]
Fixed ebuild

This now uses has_version to find the librsvg version and patch if necessary.
Comment 3 Paulo J. Matos 2008-10-09 22:38:32 UTC
It works! Thanks!!! :)
Comment 4 Sandro Bonazzola 2008-11-05 10:29:45 UTC
waiting fixes committed in portage tree :-)
Comment 5 Lennart Kolmodin (RETIRED) gentoo-dev 2009-02-10 19:33:40 UTC
Committed to the tree.