Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5318 - ghc-5.04.ebuild (Update)
Summary: ghc-5.04.ebuild (Update)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: George Shapovalov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 6352
  Show dependency tree
 
Reported: 2002-07-20 16:08 UTC by Sven Moritz Hallberg
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

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


Attachments
GHC 5.04 ebuild script (ghc-5.04.ebuild,6.72 KB, text/plain)
2002-07-20 16:11 UTC, Sven Moritz Hallberg
Details
distfile digests (digest-ghc-5.04,66 bytes, text/plain)
2002-07-20 16:30 UTC, Sven Moritz Hallberg
Details
Patch to the GHC 5.04 build system (ghc-5.04-gentoo.patch,845.23 KB, patch)
2002-07-20 16:33 UTC, Sven Moritz Hallberg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Moritz Hallberg 2002-07-20 16:08:50 UTC
Here's the updated ebuild for the new GHC 5.04.

There is one noteworthy change (the only one actually, except for the version
number):

I have removed the ability to build the documentation, because it now depends on
another external program and I think it would be pointless to require that, just
to build a doc tree you can get in the exact same form from the GHC website.

This means that only the opengl USE var remains recognized.

Attached you will find the ebuild, along with the new digest file and patches.

Greetings,
Sven Moritz
Comment 1 Sven Moritz Hallberg 2002-07-20 16:11:56 UTC
Created attachment 2421 [details]
GHC 5.04 ebuild script
Comment 2 Sven Moritz Hallberg 2002-07-20 16:30:16 UTC
Created attachment 2422 [details]
distfile digests
Comment 3 Sven Moritz Hallberg 2002-07-20 16:33:16 UTC
Created attachment 2423 [details, diff]
Patch to the GHC 5.04 build system

This patch is the 5.04 equivalent of ghc-5.02.3-gentoo.patch.
Comment 4 George Shapovalov (RETIRED) gentoo-dev 2002-08-04 16:38:40 UTC
Hi Sven.

Thanks for the submission!
And sorry for taking this time to get to it (we are doing a major portage
clean-up and new submissions/non-crytical stuff is on lower priority for now).

1. I am checking ebuild out and I have one question:
why in all ./configure invocations "--host=${CHOST}" was replaced with
"--build=${CHOST}"? Or was it this way in the version you started from?

2. (just a note). The patches are getting quite big, the last one >800k, quite a
piece! (thanks for taking your time on this).
I bzipped the patches and put bzcat where appropriate.

George
Comment 5 George Shapovalov (RETIRED) gentoo-dev 2002-08-07 16:54:05 UTC
Hi Sven.

Thanks for clarifications.
I am testing the ebuild, however I have trouble compiling it.

this is the tail of what I get with both --build=${CHOST} and --host=...:

=============part1===================================
===fptools== Finished making `boot' in cbits ...
PWD = /var/tmp/portage/ghc-5.04/work/stage1-build/ghc/lib/std
------------------------------------------------------------------------
------------------------------------------------------------------------
===fptools== Finished making `boot' in std ...
PWD = /var/tmp/portage/ghc-5.04/work/stage1-build/ghc/lib
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== make boot - --no-print-directory -r --jobserver-fds=3,4 -
--jobserver-fds=3,4 -j;
 in /var/tmp/portage/ghc-5.04/work/stage1-build/ghc/compiler
------------------------------------------------------------------------
../../glafp-utils/mkdependC/mkdependC -f .depend -D__GLASGOW_HASKELL__=408    --
-Iparser -I. -I../includes -O    --  parser/hschooks.c 
------------------------------------------------------------------------
===fptools== Finished making `boot' in utils driver includes rts docs lib
compiler ...
PWD = /var/tmp/portage/ghc-5.04/work/stage1-build/ghc
------------------------------------------------------------------------
------------------------------------------------------------------------
make: *** Waiting for unfinished jobs....
===fptools== Finished making `boot' in glafp-utils hslibs ghc ...
make: *** Waiting for unfinished jobs....
PWD = /var/tmp/portage/ghc-5.04/work/stage1-build
make: *** Waiting for unfinished jobs....
------------------------------------------------------------------------
make: *** Waiting for unfinished jobs....
============end of part 1=====================================


also I notice this scrolling by during the build (but it does not stop at that
point):

===============part2=============================
==fptools== make all - --no-print-directory -r --jobserver-fds=3,4 -
--jobserver-fds=3,4 - --jobserver-fds=3,4 - --jobserver-fds=3,4 -j;
 in /var/tmp/portage/ghc-5.04/work/stage1-build/hslibs/lang/cbits
------------------------------------------------------------------------
PWD = /var/tmp/portage/ghc-5.04/work/stage1-build/ghc/utils
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== make boot - --no-print-directory -r --jobserver-fds=3,4 -
--jobserver-fds=3,4 - --jobserver-fds=3,4 - --jobserver-fds=3,4 -j;
 in /var/tmp/portage/ghc-5.04/work/stage1-build/ghc/utils/hp2ps
------------------------------------------------------------------------
../../../ghc/driver/ghc-inplace -I../../../ghc/includes
-I../../../ghc/lib/std/cbits -static    -c PackedString.c -o PackedString.o
make[3]: ../../../ghc/driver/ghc-inplace: Command not found
make[3]: *** [PackedString.o] Error 127
make[2]: *** [all] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1
make: *** Waiting for unfinished jobs....
../../../glafp-utils/mkdependC/mkdependC -f .depend     -- -O    -- AreaBelow.c
AuxFile.c Axes.c Curves.c Deviation.c Dimensions.c Error.c HpFile.c Key.c Main.c
Marks.c PsFile.c Reorder.c Scale.c Shade.c TopTwenty.c TraceElement.c Utilities.c 
------------------------------------------------------------------------
==fptools== make boot - --no-print-directory -r --jobserver-fds=3,4 -
--jobserver-fds=3,4 - --jobserver-fds=3,4 - --jobserver-fds=3,4 -j;
 in /var/tmp/portage/ghc-5.04/work/stage1-build/ghc/utils/hscpp

and it continue on...
All this happens within 1st minute of build.
Could you please take a look at what's going on?
Can it be related to CFLAGS? I have them set quite strongly (partially to catch
some of CFLAGS related bugs). What are your settings?

George
Comment 6 George Shapovalov (RETIRED) gentoo-dev 2002-08-08 15:11:48 UTC
Hi Sven.

Thanks for finding the problem! 
(since you did not reply to the bug but rather directly via email, I am leaving
the note here that the problem was due to parallel build, needed to change all
emake's to make's).

Updated ebuild and committed.
Please test, I'll unmask this version upon successful report.

George
Comment 7 George Shapovalov (RETIRED) gentoo-dev 2002-08-09 16:46:46 UTC
Thanks for testing Sven!

unmasked, closing this bug.

George