Dinar Valeev wrote:
On Wed, Nov 7, 2012 at 4:32 PM, Herbert Graeber
wrote: Am 07.11.2012 13:21, schrieb Dinar Valeev:
Why each arch should have own tarball? isn't ghc-src not sufficient? It is not sufficient for boot-strapping. GHC has to be compiled by itself., so we have to solve the hen and egg problem by injecting a binary version of the compiler for the first compilation. Is there a way to produce such tarball manually? Yes, there is. Get the source, unpack it, and cd into the directory. ./configure make make binary-dist
Note: You need a working ghc for your platform to do this!
I ended up building my own binary-dist to create a binary dist that did not require libgmp.so.3
On Thu, Nov 8, 2012 at 8:15 PM, Peter Trommler
The reason that it even not trying to compile on ppc Factory. error: File /home/abuild/rpmbuild/SOURCES/ghc-7.4.1-ppc64-unknown-linux.tar.bz2: No such file or directory This is the binary compiler you need for the first compilation. When the first build of ghc in Factory has succeeded, the binary will be removed again.
After everything works for x86 and x86_64 we may repeat the bootstrap for other architecture, too.
If you download the file from the ghc website and add it to the package you are able to do the bootstrap yourself. After first compilation, you can remove the binary again and turn bootstrap mode off. After this ghc compilation is self contained. There is no ppc version available. Sorry about that. I forgot to set an ExclusiveArch tag.
If we want ghc on ppc we need someone to help bootstrap ghc for ppc and help maintain it. For that you either get a ghc binary that works on openSUSE or you go through the painful process of porting ghc through generated C files (you could use our x86 compiler for that) or you try to go the cross compile route (there are some issues with cross-compiling). I'll look into that
Also I took a look how Fedora doing this.. They just use ghc-src tarball.
Yes, but note the spec file BuildRequires ghc-compiler which is produced by ghc.spec. That is the chicken and egg problem Herbert was talking about.
After bootstrap is done, I will resubmit ghc to Factory with all lines removed that I marked for removal in ghc.spec. Then it looks like this: https://build.opensuse.org/package/show?package=ghc&project=devel%3Alanguages%3Ahaskell%3Anext
Please do not ask me to push ghc 7.6.1 to Factory (yet). I wont do that. Our goal is to provide Haskell Platform 2012.4, which has ghc 7.4.2.
Please be patient. A usable ghc including a "binary free" source is coming soon. Right now we have to wait for LaTeX to be fixed in Factory.
Peter
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org