Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 163023 - dev-haskell/gtk2hs-0.9.10.4 version bump
Summary: dev-haskell/gtk2hs-0.9.10.4 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Duncan Coutts (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2007-01-21 03:36 UTC by Adam King
Modified: 2007-04-29 20:11 UTC (History)
1 user (show)

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


Attachments
updated ebuild for gtk2hs-0.9.10.4 - includes OpenGL supprt (gtk2hs-0.9.10.4.ebuild,3.67 KB, text/plain)
2007-01-21 03:38 UTC, Adam King
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam King 2007-01-21 03:36:48 UTC
I need the OpenGL support in gtk2hs - but the current version doesn't seem to support it.  So, I updated to 0.9.10.4 and modified the ebuild to the attached version.  Note: I commented out the applied patches - they don't seem to do anything.  Also, "mogul" (whatever that is), doesn't seem to exist anymore and I added support for libHSgtkglext and libHSsoegtk

Reproducible: Always




Running gentoo 2006.1 AMD64 quad Opteron system
Comment 1 Adam King 2007-01-21 03:38:06 UTC
Created attachment 107626 [details]
updated ebuild for gtk2hs-0.9.10.4 - includes OpenGL supprt
Comment 2 Duncan Coutts (RETIRED) gentoo-dev 2007-01-22 09:57:11 UTC
Thanks Adam,

We'll wait for the final release which hopefully shouldn't be too long (I'm managing the upstream release and am finally back from holidays and conferences). In the mean time however we should definately get the pre-release ebuild into the Haskell overlay, so look out for it there if you need it now.
Comment 3 Duncan Coutts (RETIRED) gentoo-dev 2007-01-24 13:29:13 UTC
gtk2hs-0.9.10.5 is out and there's an ebuild in the Haskell overlay. You can use layman to get the haskell overlay or grab it directly:
http://haskell.org/~gentoo/gentoo-haskell/dev-haskell/gtk2hs/gtk2hs-0.9.10.5.ebuild
Comment 4 Adam King 2007-01-30 05:13:33 UTC
Thanks Duncan - your gtk2hs-0.9.10.5 ebuild works great.  Any chance you could add it to the main portage system?   
Comment 5 Santiago Gala 2007-04-21 10:18:55 UTC
0.9.11 is out there.

Renaming the ebuild proposed here to 0.9.11 and running ebuild xxx digest makes it fail like:

make[3]: Entering directory `/var/tmp/portage/dev-haskell/gtk2hs-0.9.11/work/gtk2hs-0.9.11'
./tools/c2hs/c2hsLocal +RTS -RTS -C-I/usr/include/glib-2.0 -C-I/usr/lib64/glib-2.0/include --cppopts='-include "gtk2hs-config.h"' --precomp=glib/glib.precomp glib-object.h
In file included from /usr/include/glib-2.0/glib/gstring.h:32,
                 from /usr/include/glib-2.0/glib/giochannel.h:32,
                 from /usr/include/glib-2.0/glib.h:47,
                 from /usr/include/glib-2.0/gobject/gtype.h:26,
                 from /usr/include/glib-2.0/gobject/gboxed.h:26,
                 from /usr/include/glib-2.0/glib-object.h:25:
/usr/include/glib-2.0/glib/gutils.h:381:1: warning: "GLIB_CHECK_VERSION" redefined
In file included from <command line>:1:
./gtk2hs-config.h:140:1: warning: this is the location of the previous definition
c2hsLocal: Error in C header file.

/usr/include/glib-2.0/glib/gutils.h:278: (column 26) [FATAL] 
  >>> Syntax error!
  The symbol `__extension__' does not fit here.

make[3]: *** [glib/glib.precomp] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-haskell/gtk2hs-0.9.11/work/gtk2hs-0.9.11'
make[2]: *** [glib/System/Glib/Types.hs] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-haskell/gtk2hs-0.9.11/work/gtk2hs-0.9.11'
ghc-6.4.2: can't find file `glib/System/Glib/Types.hs'
make[1]: *** Deleting file `glib/libHSglib_a.deps'
rm -rf glib/System/Glib.o glib/System/Glib_split/
mkdir -p glib/System/Glib_split
/usr/bin/ghc +RTS -RTS -c glib/System/Glib.hs -o glib/System/Glib.o -split-objs -O -fffi -iglib -package-conf package.conf.inplace -hide-all-packages -ignore-package glib -package base -package haskell98 -package-name glib-0.9.11 '-#include<glib-object.h>' -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include

glib/System/Glib.hs:12:0:
    Failed to load interface for `System.Glib.UTFString':
        Could not find module `System.Glib.UTFString':
          use -v to see a list of the files searched for
make[1]: *** [glib/System/Glib.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-haskell/gtk2hs-0.9.11/work/gtk2hs-0.9.11'
make: *** [all] Error 2

!!! ERROR: dev-haskell/gtk2hs-0.9.11 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4088:   Called src_compile
  gtk2hs-0.9.11.ebuild, line 54:   Called die

!!! Make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-haskell/gtk2hs-0.9.11/temp/build.log'.

!!! This ebuild is from an overlay: '/usr/local/portage'

reported in bug #144028 for 0.9.10, after requested to test 0.9.10.4
Comment 6 Duncan Coutts (RETIRED) gentoo-dev 2007-04-21 11:47:09 UTC
Adding 0.9.11 has not been so easy since it involves changing a couple old x86 and sparc profiles that mask out librsvg which version 0.9.11 now optionally depends on.

Of course then there's also this parsing problem (bug #144028).

I'll get round to it eventually.
Comment 7 Duncan Coutts (RETIRED) gentoo-dev 2007-04-29 20:11:44 UTC
Done. dev-haskell/gtk2hs-0.9.11 is in the portage tree.