You are not logged in.
Pages: 1
ghc, or the Glasgow Haskell Compiler, is both a compiler and interpreter which fully complies with Haskell98. This PKGBUILD does not require ghc to preinstalled, because it will automatically grap a prebuilt copy and use that to compile the indicated version of ghc. I have only had one problem with building this package: the error is that libreadline.so.4 does not exist. This is because I have libreadline.so.5.0 installed. However, if I create a symbolic link libreadline.so.4 in /lib64 which points to libreadline.so.5.0, then the problem is solved. I don't like this solution because it is not elegant. If anyone has any suggestions please let me know.
pkgname=ghc
pkgver=6.4.1
pkgrel=1
pkgdesc="A state-of-the-art, open source, compiler and interactive environment for Haskell."
url="http://www.haskell.org/ghc/"
license=""
depends=('gmp' 'perl')
provides=('haskell')
_basever=6.4
source=("http://www.haskell.org/ghc/dist/$_basever/
$pkgname-$_basever-x86_64-unknown-linux.tar.bz2" "http://www.haskell.org/ghc/dist/$pkgver/$pkgname-$pkgver-src.tar.bz2")
md5sums=('9411bac66bc357308de82f76d98ea7fb' 'fd289bc7c3afa272ff831a71a50b5b00')
build() {
cd $startdir/src/$pkgname-$_basever
mkdir -p ../build/usr
autoreconf
./configure --prefix=/usr
make in-place
cd $startdir/src/$pkgname-$pkgver
autoreconf
./configure --prefix=/usr --with-ghc=$startdir/src/$pkgname-$_basever/bin/x86_64-unknown-linux/ghc
make bootstrap || return 1
make prefix=$startdir/pkg/usr install
#The following line is optional
#make install-docs
}
Sweet, now I can play with myself.
Offline
Just build it with your link solution and after you have your initial package you should be able to build it out of itself.
Offline
I'll have to try this when I back in 64bit mode. I hope this readline problem only occurs with me, because I would like to package to build on other peoples system with just makepkg.
Sweet, now I can play with myself.
Offline
First I'm going to build a Firefox 1.5. Then I will see what I can do.
If we won't have success this way we can use a static precompiled ghc from the project site to build or own one.
Offline
Pages: 1