Nome utente: Password: Ricordami
Criterio di ricerca Ricerca avanzata
Dettagli del pacchetto
Commento lasciato da: feuerbach il Wed, 25 Feb 2009 13:59:23 +0000
diff -ur /var/abs/community/devel/gtk2hs/gtk2hs.install gtk2hs/gtk2hs.install
--- /var/abs/community/devel/gtk2hs/gtk2hs.install 2009-02-06 23:28:36.000000000 +0200
+++ gtk2hs/gtk2hs.install 2009-02-25 15:37:15.000000000 +0200
@@ -1,17 +1,17 @@
post_install() {
- for pkg in glib cairo gtk soegtk glade gconf sourceview svgcairo gtkglext; do
+ for pkg in glib cairo gtk soegtk glade gconf gtksourceview2 svgcairo gtkglext; do
ghc-pkg register /usr/lib/gtk2hs/${pkg}.package.conf -g
done
}

post_upgrade() {
- for pkg in glib cairo gtk soegtk glade gconf sourceview svgcairo gtkglext; do
+ for pkg in glib cairo gtk soegtk glade gconf gtksourceview2 svgcairo gtkglext; do
ghc-pkg unregister $pkg && ghc-pkg register /usr/lib/gtk2hs/${pkg}.package.conf -g
done
}

pre_remove() {
- for pkg in glib cairo gtk soegtk glade gconf sourceview svgcairo gtkglext; do
+ for pkg in glib cairo gtk soegtk glade gconf gtksourceview2 svgcairo gtkglext; do
ghc-pkg unregister $pkg -g #2>/dev/null
done
rm /usr/lib/gtk2hs/*.o
diff -ur /var/abs/community/devel/gtk2hs/PKGBUILD gtk2hs/PKGBUILD
--- /var/abs/community/devel/gtk2hs/PKGBUILD 2009-02-12 15:58:13.000000000 +0200
+++ gtk2hs/PKGBUILD 2009-02-25 15:36:34.000000000 +0200
@@ -11,7 +11,7 @@
url="http://gtk2hs.sourceforge.net"
arch=('i686' 'x86_64')
makedepends=('ghc>=6.8.1')
-depends=('libglade' 'gtksourceview' 'gconf' 'librsvg>=2.16' 'gtkglext')
+depends=('libglade' 'gtksourceview2' 'gconf' 'librsvg>=2.16' 'gtkglext')
makedepends=('alex' 'happy')
options=('strip' 'docs' 'zipman')
install=gtk2hs.install

---

Also, be sure not to upgrade gtk2hs, but to 'pacman -Rd gtk2hs; pacman -U gtk2hs*gz'
Commento lasciato da: pdxleif il Mon, 23 Feb 2009 02:47:12 +0000
Does the gtk2hs.install of this package need to be updated?

I didn't get the errors of "gour", but ghc wasn't aware of Graphics.UI.Gtk.SourceView, even though it looked installed.
I think it's something with gtk2hs.install, namely the code:
post_install() {
for pkg in glib cairo gtk soegtk glade gconf sourceview svgcairo gtkglext; do
ghc-pkg register /usr/lib/gtk2hs/${pkg}.package.conf -g
done
}
I have a gtksourceview2.package.conf in /usr/lib/gtk2hs, but no sourceview.package.conf. (I think I remember the config script listing sourceview as not being built, while gtksourceview was listed as "yes").

So I run sudo ghc-pkg register /usr/lib/gtk2hs/gtksourceview2.package.conf, and now I can import Graphics.UI.Gtk.SourceView.

-Leif
Commento lasciato da: gour il Fri, 13 Feb 2009 06:48:08 +0000
Hi!

Anyone has working gtk2hs?

Here is result on my computer:

[gour@gaura-nitai gour] yaourt -Sy gtk2hs
Password:
:: Synchronizing package databases...
gaur is up to date
core is up to date
extra 382,9K 52,6K/s 00:00:07 [#####################################################################################] 100%
community 364,5K 53,1K/s 00:00:07 [#####################################################################################] 100%
xyne-any is up to date
resolving dependencies...
looking for inter-conflicts...

Targets (1): gtk2hs-0.10.0-1

Total Download Size: 7,61 MB
Total Installed Size: 49,00 MB

Proceed with installation? [Y/n] y
:: Retrieving packages from community...
gtk2hs-0.10.0-1 7,6M 48,9K/s 00:02:39 [#####################################################################################] 100%
checking package integrity...
(1/1) checking for file conflicts [#####################################################################################] 100%
(1/1) upgrading gtk2hs [#####################################################################################] 100%
ghc-pkg: cannot find package glib
ghc-pkg: cannot find package cairo
ghc-pkg: cannot find package gtk
ghc-pkg: cannot find package soegtk
ghc-pkg: cannot find package glade
ghc-pkg: cannot find package gconf
ghc-pkg: cannot find package sourceview
ghc-pkg: cannot find package svgcairo
ghc-pkg: cannot find package gtkglext
error: scriptlet failed to execute correctly


Sincerely,
Gour
Commento lasciato da: sergej il Fri, 06 Feb 2009 21:42:23 +0000
moved to community
Commento lasciato da: arch-haskell il Sun, 18 Jan 2009 22:32:03 +0000
Broken for 6.10.x and the SVG patch. Hopefully a 6.10 update is available soon.
Commento lasciato da: jiyunatori il Wed, 14 Jan 2009 12:33:40 +0000
would it be possible to include the patch directly into this package ? obviously the gtk2hs hasn't been very active lately ...
Commento lasciato da: adlan il Fri, 26 Dec 2008 03:56:12 +0000
i got the same error as quantax,

fixed it with a patch from
http://bugs.gentoo.org/240704
Commento lasciato da: nikron il Thu, 20 Nov 2008 19:37:30 +0000
I get the ghc error:

glib/System/Glib.hs:13:0:
Failed to load interface for `System.Glib.UTFString':
Use -v to see a list of the files searched for.

when i try to compile this
Commento lasciato da: fadec il Fri, 14 Nov 2008 18:59:21 +0000
I got the same error as quantax...

svgcairo/Graphics/Rendering/Cairo/SVG.chs:201:2:
Couldn't match expected type `()' against inferred type `CInt'
Expected type: Render ()
Inferred type: Render CInt


Edit the PKGBUILD to patch svgcairo/Graphics/Rendering/Cairo/SVG.chs with the following.

199c199
< svgRender :: SVG -> Render ()
---
> svgRender :: SVG -> Render CInt
220c220
< svgRenderFromFile :: FilePath -> Render ()
---
> svgRenderFromFile :: FilePath -> Render CInt
223c223
< svgRenderFromHandle :: Handle -> Render ()
---
> svgRenderFromHandle :: Handle -> Render CInt
226c226
< svgRenderFromString :: String -> Render ()
---
> svgRenderFromString :: String -> Render CInt


It then compiled fine. I think this is due to a change in cairo where a function was changed to return an int instead of void.
Commento lasciato da: vogt il Sun, 12 Oct 2008 03:03:42 +0000
The package gtksourceview2 (not, or not only gtksourceview) provides the gtksourceview required to configure gtk2hs.
Commento lasciato da: xhemi il Thu, 02 Oct 2008 13:09:22 +0000
you missed pkgconfig make dependency
Commento lasciato da: quantax il Tue, 30 Sep 2008 15:56:33 +0000
Unable to build 0.9.13 with ghc 6.8.2-2 on i686 here:


svgcairo/Graphics/Rendering/Cairo/SVG.chs:201: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
make[1]: *** [svgcairo/Graphics/Rendering/Cairo/SVG.o] Error 1
rm svgcairo/Graphics/Rendering/Cairo/SVG.hs
make[1]: Leaving directory `/tmp/yaourt-tmp-root/aur-gtk2hs/gtk2hs/src/gtk2hs-0.9.13'
make: *** [all] Error 2
==> ERROR: Build Failed.
Aborting...
Error: Makepkg was unable to build gtk2hs package.
Commento lasciato da: arch-haskell il Thu, 10 Jul 2008 17:40:40 +0000
mrmc, I can't reproduce that here.
Commento lasciato da: mcmc il Wed, 09 Jul 2008 18:38:16 +0000
Mine's not working :(
I get:
Could not find module `Graphics.Ui.Gtk.Glade':

Does anybody now how to fix this ?
Commento lasciato da: gour il Fri, 01 Feb 2008 07:12:22 +0000
Now the license is in array ;)

Sincerely,
Gour
Commento lasciato da: gour il Fri, 01 Feb 2008 07:09:31 +0000
Minor update - put license in array.

Sincerely,
Gour
Commento lasciato da: pauld il Wed, 30 Jan 2008 17:04:43 +0000
If you want/need to test development version, I have made a package gtk2hs-darcs that get latest version from darcs.
Commento lasciato da: pauld il Tue, 29 Jan 2008 08:29:57 +0000
Ok guys, don't go look for a new ghc version, it is just because the Arch version have gone from 1 to 1.1 (damn I wished he would have used simply 2).

makedepends now have 'freealut' 'freeglut' 'openal' 'libgl' that was not there before, and have options=('!makeflags') added.

This suggest that the need of --disable-split-objs was due to a broken Arch linux ghc package.
Commento lasciato da: pauld il Tue, 29 Jan 2008 07:53:16 +0000
The new version of ghc:
[paul@myhost gtk2hs_darcs]$ pacman -Q ghc
ghc 6.8.2-1.1

... seems to make --disable-split-objs not needed anymore.

Also, according to namcap and:
http://www.archlinux.org/pacman/PKGBUILD.5.html
license should be an array so I suggest:
license=('LGPL')
Commento lasciato da: pauld il Mon, 28 Jan 2008 16:45:26 +0000
Wow, good job! My first vote on Archlinux goes to this package.

For the record, the configure option --disable-split-objs was added, fixing the fact that we were obtaining strange symbols not found when linking a program using gtk2hs when it was build on ghc 6.8.2 (any other version, even darcs 6.8.2 nightly builds release was working fine).

I'll spread the news on gtk2hs mailing lists.
Commento lasciato da: gour il Mon, 28 Jan 2008 14:38:53 +0000
Hi!

Thanks to dcoutts in #gentoo-haskell, this release works correctly.

Sincerely,
Gour
Commento lasciato da: pressh il Sun, 27 Jan 2008 13:45:46 +0000
moved from [community]

v1.6.0