Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 394361 - =dev-lang/ghc-7.0.4 build binary request (ppc64)
Summary: =dev-lang/ghc-7.0.4 build binary request (ppc64)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-11 19:12 UTC by Sergei Trofimovich (RETIRED)
Modified: 2012-03-09 16:19 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2011-12-11 19:12:24 UTC
ghc is a haskell compiler written in haskell (so it needs binary form of ghc to build itself).

Haskell team does not have access to ppc/ppc64
hardware yet, so we ask you to build binaries for us
(and help to resolve this bug)

What you need to bootstrap ghc:
1. working installed ghc binary not later, than two versions back from bootstrapable one, in other words
   you need ghc-6.10.4-r1 or ghc-6.12.3 to build this one.

2. add ~arch keyword to the local tree
3. run bootstrap script to get the binary: http://dev.gentoo.org/~slyfox/build-ghc-bin.sh and move
   result to distfiles in the scheme below.
   OR
   ACCEPT_KEYWORDS="~arch **" USE="-binary doc ghcbootstrap ghcmakebinary" emerge --buildpkgonly =ghc-7.0.4
4. When script is done you should add binary to the ebuild like others there:
    ...
    arch_binaries="$arch_binaries ppc64? ( mirror://gentoo/ghc-bin-${PV}-ppc64.tbz2 )"
    ...
and try to install ghc without bootstrap keyword ('USE=binary emerge ghc' will just install binary you've just built)
5. Test installed ghc a litle:
5.1. run script, which checks minimal functionality: http://dev.gentoo.org/~slyfox/test_ghc_hello.sh
5.2. try to emerge dev-haskell/cabal (an example of haskell library),
     dev-haskell/alex(an example of haskell binary) and haskell-updater
6. Push ghc binary to mirrors space and commit an ebuild to the tree.

I can be pinged on IRC for help to resolve various build-time issues.

Thanks!

P.S.:

In order to offload burden of building binaries for next ghc versions and keywording
most packages symmetrically for all supported arches I (slyfox) am asking ppc/ppc64
teams for access to boxes on those platforms in order to:
 * build ghc binaries solely by haskell team forces
 * running/fixing ghc testsuite (not in tree yet) on those platforms
 * keywording/debugging haskell related stuff there

I promise not to drain the box CPU power and run all tasks under 'nice -n 19',
as ghc chews up to 10 hours of building time.

Thanks again!
Comment 1 Joe Jezak (RETIRED) gentoo-dev 2011-12-28 08:48:21 UTC
ppc is done.
Comment 2 Brent Baude (RETIRED) gentoo-dev 2012-03-07 20:46:10 UTC
~ppc64 done; closing as last arch
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2012-03-08 10:25:49 UTC
(In reply to comment #2)
> ~ppc64 done; closing as last arch

We badly need prebuilt ghc-bin-7.0.4-ppc64.tbz2 here
(arch_binaries= fields in ebuild). CCed ppc64 again.

Looks like I was unclear in Summary field (amended). Sorry about that.
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2012-03-09 16:19:04 UTC
Built binary on rooster and pushed as:

>   09 Mar 2012; Sergei Trofimovich <slyfox@gentoo.org> ghc-7.0.4.ebuild:
>   Added prebuild ppc64 binary (bug #394361).

(Re)closed as last arch. Thanks!