I'm sorry, I tried to package the new version, but this is too weird. I'm orphaning this. The new package build-depends on ghc and cabal-install, which I thought it would provide. So what does it provide then? Better install the individual packages from official repositories:
https://wiki.archlinux.org/index.php/Haskell#Haskell_platform
Search Criteria
Package Details: haskell-platform 2013.2.0.0-3
Package Actions
- View PKGBUILD
- Download tarball
- Search wiki
- Flagged out-of-date (2014-09-07)
| Package Base: | haskell-platform |
|---|---|
| Description: | Haskell: batteries included |
| Upstream URL: | http://www.haskell.org/platform/ |
| Category: | devel |
| Licenses: | |
| Submitter: | td123 |
| Maintainer: | None |
| Last Packager: | None |
| Votes: | 10 |
| First Submitted: | 2012-02-24 16:18 |
| Last Updated: | 2013-10-26 13:09 |
Required by (0)
Sources
Latest Comments
Comment by 0x47
Comment by kjozsa
Build error, sampling from the end of the log:
Building OpenGL-2.8.0.0...
Preprocessing library OpenGL-2.8.0.0...
...
[ 23 of 103] Compiling Graphics.Rendering.OpenGL.GL.Tensor ( Graphics/Rendering/OpenGL/GL/Tensor.hs, dist/build/Graphics/Rendering/OpenGL/GL/Tensor.o )
Graphics/Rendering/OpenGL/GL/Tensor.hs:58:4:
‘typeOf’ is not a (visible) method of class ‘Typeable’
...
Graphics/Rendering/OpenGL/GL/Tensor.hs:296:4:
‘typeOf’ is not a (visible) method of class ‘Typeable’
Graphics/Rendering/OpenGL/GL/Tensor.hs:296:13:
Not in scope: ‘typeOfDefault’
Error:
Building the OpenGL-2.8.0.0 package failed
Makefile:9: recipe for target 'build.stamp' failed
make: *** [build.stamp] Error 2
Comment by tasqa
New version is up!
http://www.haskell.org/platform/linux.html#source
Comment by edmccard
ElCep, I was able to successfully build after that error using the workaround from https://ghc.haskell.org/trac/ghc/ticket/7949
In the file scripts/build.sh, remove the line (and only this line):
GHC_PACKAGE_PATH="${ORIG_GHC_PACKAGE_PATH}"\
Comment by 0x47
Can you try to delete or rename your ~/.ghc directory and try again?
Comment by ElCep
I'have a compliation error :-S
Error:
Building the vector-0.10.0.1 package failed
Makefile:9: recipe for target 'build.stamp' failed
make: *** [build.stamp] Error 2
some help?
Comment by 0x47
New PKGBUILD including a patch to fix previously mentioned errors.
Comment by 0x47
Updated. JSpaces, I used important parts of your PKGBUILD, thanks!
Comment by nac2013
for me it compiled thanks to the pkgbuild posted by jspaces but it did every thing 3 times and kept saying
on the commandline: Warning:
-package-conf=../../packages/package.conf.inplace is deprecated: Use -package-db instead
but still thanks :) and an example of three times
on the commandline: Warning:
-package-conf=../../packages/package.conf.inplace is deprecated: Use -package-db instead
[ 1 of 16] Compiling Data.Generics.Basics ( src/Data/Generics/Basics.hs, dist/build/Data/Generics/Basics.o )
[ 2 of 16] Compiling Generics.SYB.Basics ( src/Generics/SYB/Basics.hs, dist/build/Generics/SYB/Basics.o )
[ 3 of 16] Compiling Data.Generics.Instances ( src/Data/Generics/Instances.hs, dist/build/Data/Generics/Instances.o )
[ 4 of 16] Compiling Generics.SYB.Instances ( src/Generics/SYB/Instances.hs, dist/build/Generics/SYB/Instances.o )
[ 5 of 16] Compiling Data.Generics.Aliases ( src/Data/Generics/Aliases.hs, dist/build/Data/Generics/Aliases.o )
[ 6 of 16] Compiling Data.Generics.Schemes ( src/Data/Generics/Schemes.hs, dist/build/Data/Generics/Schemes.o )
[ 7 of 16] Compiling Generics.SYB.Schemes ( src/Generics/SYB/Schemes.hs, dist/build/Generics/SYB/Schemes.o )
[ 8 of 16] Compiling Data.Generics.Text ( src/Data/Generics/Text.hs, dist/build/Data/Generics/Text.o )
[ 9 of 16] Compiling Generics.SYB.Text ( src/Generics/SYB/Text.hs, dist/build/Generics/SYB/Text.o )
[10 of 16] Compiling Data.Generics.Twins ( src/Data/Generics/Twins.hs, dist/build/Data/Generics/Twins.o )
[11 of 16] Compiling Generics.SYB.Twins ( src/Generics/SYB/Twins.hs, dist/build/Generics/SYB/Twins.o )
[12 of 16] Compiling Data.Generics.Builders ( src/Data/Generics/Builders.hs, dist/build/Data/Generics/Builders.o )
[13 of 16] Compiling Generics.SYB.Builders ( src/Generics/SYB/Builders.hs, dist/build/Generics/SYB/Builders.o )
[14 of 16] Compiling Generics.SYB.Aliases ( src/Generics/SYB/Aliases.hs, dist/build/Generics/SYB/Aliases.o )
[15 of 16] Compiling Data.Generics ( src/Data/Generics.hs, dist/build/Data/Generics.o )
[16 of 16] Compiling Generics.SYB ( src/Generics/SYB.hs, dist/build/Generics/SYB.o )
on the commandline: Warning:
-package-conf=../../packages/package.conf.inplace is deprecated: Use -package-db instead
[ 1 of 16] Compiling Data.Generics.Basics ( src/Data/Generics/Basics.hs, dist/build/Data/Generics/Basics.p_o )
[ 2 of 16] Compiling Generics.SYB.Basics ( src/Generics/SYB/Basics.hs, dist/build/Generics/SYB/Basics.p_o )
[ 3 of 16] Compiling Data.Generics.Instances ( src/Data/Generics/Instances.hs, dist/build/Data/Generics/Instances.p_o )
[ 4 of 16] Compiling Generics.SYB.Instances ( src/Generics/SYB/Instances.hs, dist/build/Generics/SYB/Instances.p_o )
[ 5 of 16] Compiling Data.Generics.Aliases ( src/Data/Generics/Aliases.hs, dist/build/Data/Generics/Aliases.p_o )
[ 6 of 16] Compiling Data.Generics.Schemes ( src/Data/Generics/Schemes.hs, dist/build/Data/Generics/Schemes.p_o )
[ 7 of 16] Compiling Generics.SYB.Schemes ( src/Generics/SYB/Schemes.hs, dist/build/Generics/SYB/Schemes.p_o )
[ 8 of 16] Compiling Data.Generics.Text ( src/Data/Generics/Text.hs, dist/build/Data/Generics/Text.p_o )
[ 9 of 16] Compiling Generics.SYB.Text ( src/Generics/SYB/Text.hs, dist/build/Generics/SYB/Text.p_o )
[10 of 16] Compiling Data.Generics.Twins ( src/Data/Generics/Twins.hs, dist/build/Data/Generics/Twins.p_o )
[11 of 16] Compiling Generics.SYB.Twins ( src/Generics/SYB/Twins.hs, dist/build/Generics/SYB/Twins.p_o )
[12 of 16] Compiling Data.Generics.Builders ( src/Data/Generics/Builders.hs, dist/build/Data/Generics/Builders.p_o )
[13 of 16] Compiling Generics.SYB.Builders ( src/Generics/SYB/Builders.hs, dist/build/Generics/SYB/Builders.p_o )
[14 of 16] Compiling Generics.SYB.Aliases ( src/Generics/SYB/Aliases.hs, dist/build/Generics/SYB/Aliases.p_o )
[15 of 16] Compiling Data.Generics ( src/Data/Generics.hs, dist/build/Data/Generics.p_o )
[16 of 16] Compiling Generics.SYB ( src/Generics/SYB.hs, dist/build/Generics/SYB.p_o )
on the commandline: Warning:
-package-conf=../../packages/package.conf.inplace is deprecated: Use -package-db instead
[ 1 of 16] Compiling Data.Generics.Basics ( src/Data/Generics/Basics.hs, dist/build/Data/Generics/Basics.dyn_o )
[ 2 of 16] Compiling Generics.SYB.Basics ( src/Generics/SYB/Basics.hs, dist/build/Generics/SYB/Basics.dyn_o )
[ 3 of 16] Compiling Data.Generics.Instances ( src/Data/Generics/Instances.hs, dist/build/Data/Generics/Instances.dyn_o )
[ 4 of 16] Compiling Generics.SYB.Instances ( src/Generics/SYB/Instances.hs, dist/build/Generics/SYB/Instances.dyn_o )
[ 5 of 16] Compiling Data.Generics.Aliases ( src/Data/Generics/Aliases.hs, dist/build/Data/Generics/Aliases.dyn_o )
[ 6 of 16] Compiling Data.Generics.Schemes ( src/Data/Generics/Schemes.hs, dist/build/Data/Generics/Schemes.dyn_o )
[ 7 of 16] Compiling Generics.SYB.Schemes ( src/Generics/SYB/Schemes.hs, dist/build/Generics/SYB/Schemes.dyn_o )
[ 8 of 16] Compiling Data.Generics.Text ( src/Data/Generics/Text.hs, dist/build/Data/Generics/Text.dyn_o )
[ 9 of 16] Compiling Generics.SYB.Text ( src/Generics/SYB/Text.hs, dist/build/Generics/SYB/Text.dyn_o )
[10 of 16] Compiling Data.Generics.Twins ( src/Data/Generics/Twins.hs, dist/build/Data/Generics/Twins.dyn_o )
[11 of 16] Compiling Generics.SYB.Twins ( src/Generics/SYB/Twins.hs, dist/build/Generics/SYB/Twins.dyn_o )
[12 of 16] Compiling Data.Generics.Builders ( src/Data/Generics/Builders.hs, dist/build/Data/Generics/Builders.dyn_o )
[13 of 16] Compiling Generics.SYB.Builders ( src/Generics/SYB/Builders.hs, dist/build/Generics/SYB/Builders.dyn_o )
[14 of 16] Compiling Generics.SYB.Aliases ( src/Generics/SYB/Aliases.hs, dist/build/Generics/SYB/Aliases.dyn_o )
[15 of 16] Compiling Data.Generics ( src/Data/Generics.hs, dist/build/Data/Generics.dyn_o )
[16 of 16] Compiling Generics.SYB ( src/Generics/SYB.hs, dist/build/Generics/SYB.dyn_o )
Comment by JSpaces
Here is an updated PKGBUILD. Compiles and appears to function although I have not tested it extensively.
pkgname=haskell-platform
pkgver=2013.2.0.0
pkgrel=1
pkgdesc="Haskell: batteries included."
arch=('i686' 'x86_64')
url="http://haskell.org"
license="BSD3"
depends=('ghc')
makedepends=('expac')
provides=("cabal-install")
conflicts=("cabal-install")
depends=('glut' 'zlib')
source=("http://lambda.haskell.org/platform/download/$pkgver/haskell-platform-$pkgver.tar.gz")
sha256sums=('b09ccbf502198655b0c4bbfd9691e6853b998a61bfd805db227cdcd93ab0f3ad')
build() {
cd "$pkgname-$pkgver"
# If you get a Quick Test error delete or rename your ~/.ghc folder.
# Fix GHC_PACKAGE_PATH error.
sed -i '/GHC_PACKAGE_PATH="${ORIG_GHC_PACKAGE_PATH}"/s/^/#/' scripts/build.sh
if [[ $(expac -Q '%v' ghc | sed 's/-[0-9]//') == 7.6.3 ]]; then
./configure --prefix="$pkgdir"/usr \
--enable-shared
else
./configure --prefix="$pkgdir"/usr \
--enable-shared \
--enable-unsupported-ghc-version
fi
make
}
package() {
cd $srcdir/$pkgname-$pkgver
make install
# Create licenses folder ...
install -d "$pkgdir/usr/share/licenses"
# Move the license files to correct location.
mv "$pkgdir"/usr/share/doc/* \
"$pkgdir"/usr/share/licenses/
# Move the documents to correct location.
mv "$pkgdir"/usr/share/{alex-3.0.5,happy-1.18.10,HUnit-1.2.5.2} \
"$pkgdir"/usr/share/doc/
}
# vim:set ts=2 sw=2 et: