mbox series

[bug#53964,0/4] Build nhc98 and ghc@4 with regular dependencies

Message ID 20220212214307.22962-1-ludo@gnu.org
Headers show
Series Build nhc98 and ghc@4 with regular dependencies | expand

Message

Ludovic Courtès Feb. 12, 2022, 9:43 p.m. UTC
Hello Ricardo and all,

This series tweaks the recently-added nhc98 and ghc@4 so they
only depend on “regular” packages rather than intermediate
packages from commencement.scm.

It also fixes ‘tests/graph.scm’.  \o/

Thoughts?

Ludo’.

Ludovic Courtès (4):
  gnu: nhc98: Build with the current tool chain.
  gnu: gcc: Add 2.95.
  gnu: ghc@4: Build without referring to packages in commencement.scm.
  gnu: Remove glibc@2.2.5 and gcc-2.95-wrapper.

 gnu/local.mk                              |   1 +
 gnu/packages/base.scm                     |  99 ------------------
 gnu/packages/commencement.scm             |  63 +-----------
 gnu/packages/gcc.scm                      |  71 ++++++++++++-
 gnu/packages/haskell.scm                  | 116 +++++++---------------
 gnu/packages/patches/nhc98-c-update.patch |  42 ++++++++
 6 files changed, 153 insertions(+), 239 deletions(-)
 create mode 100644 gnu/packages/patches/nhc98-c-update.patch


base-commit: 0f1cb023628d738bb21425c1921d17672db4f890

Comments

Ricardo Wurmus Feb. 12, 2022, 10:14 p.m. UTC | #1
Hi Ludo,

> This series tweaks the recently-added nhc98 and ghc@4 so they
> only depend on “regular” packages rather than intermediate
> packages from commencement.scm.

Wow, excellent!

The patches look good to me.  I built ghc@4, fired up STGHugs, and
successfully loaded a module.

--8<---------------cut here---------------start------------->8---
cd $(guix build ghc@4)/lib/
export STGHUGSDIR=$PWD
$ ./hugs
__   __ __  __  ____   ___      _________________________________________
||   || ||  || ||  || ||__      STGHugs: Based on the Haskell 98 standard
||___|| ||__|| ||__||  __||     Copyright (c) 1994-2000
||---||         ___||           World Wide Web: http://haskell.org/hugs
||   ||                         Report bugs to: hugs-bugs@haskell.org
||   || Version: STGHugs-000425 _________________________________________

Haskell 98 mode: Restart with command line option -98 to enable extensions
Standalone mode: Restart with command line +c for combined mode

Reading source file "./Prelude.hs"
Reading source file "./PrelPrim.hs"
Hugs session for:
  PrelPrim
  Prelude
Type :? for help
Prelude> :load System
Reading source file "./System.lhs"
Hugs session for:
  PrelPrim
  Prelude
  System
System> 
--8<---------------cut here---------------end--------------->8---

Looks very good to me, thank you!
Ludovic Courtès Feb. 14, 2022, 2:58 p.m. UTC | #2
Hello!

Ricardo Wurmus <rekado@elephly.net> skribis:

> The patches look good to me.  I built ghc@4, fired up STGHugs, and
> successfully loaded a module.

Thanks for testing!

I adjusted as suggested by Maxime and pushed this series:

  ee230f15c6 gnu: Remove glibc@2.2.5 and gcc-2.95-wrapper.
  d9df65514c gnu: ghc@4: Build without referring to packages in commencement.scm.
  6ef0cd9ade gnu: ghc@4: Use 'search-patches'.
  66f12401d4 gnu: gcc: Add 2.95.
  4fa516474b gnu: nhc98: Build with the current tool chain.

Ludo’.