Bug 36139 - [Maintainer Update] Update lang/nhc98 to 1.12, remove FORBIDDEN
Summary: [Maintainer Update] Update lang/nhc98 to 1.12, remove FORBIDDEN
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-20 16:50 UTC by obraun
Modified: 2002-05-08 17:58 UTC (History)
0 users

See Also:


Attachments
file.diff (21.96 KB, patch)
2002-03-20 16:50 UTC, obraun
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description obraun 2002-03-20 16:50:01 UTC
* Update nhc98 to new version 1.12
* remove FORBIDDEN (build loop was because bento's uname script does not
  recognize -p. I have added a patch to change it to -m, which is
  sufficient for nhc98 build)
* added a patch for changing malloc.h to stdlib.h, so it should now
  build also on -current.
* removed files/patch-include::Array.hi
* added   files/patch-include::localmalloc.h
          files/patch-script::confhat
          files/patch-script::harch
          files/patch-src::hat::lib::Makefile
          scripts/pre-install

Regards,
         Olli
Comment 1 obraun 2002-03-26 12:44:01 UTC
* added two patches

Apply this patch after applying the initial one in this PR.

Could someone commit this port please, since the port in the
ports-collection is FORBIDDEN and does not build on -current.

With this update (submitted in the initial PR) it builds on -current and
should not longer be FORBIDDEN, since I have included a patch to avoid
problems on bento.

Regards,
         Olli

diff -ruN nhc98.bak/Makefile nhc98/Makefile
--- nhc98.bak/Makefile	Wed Mar 20 17:25:48 2002
+++ nhc98/Makefile	Tue Mar 26 13:04:43 2002
@@ -11,6 +11,10 @@
 DISTNAME=	${PORTNAME}src-${PORTVERSION}
 DIST_SUBDIR=	nhc98
 
+PATCH_SITES=	${MASTER_SITES}
+PATCHFILES=	patch-1.12-ranlib \
+		patch-1.12-hmake-config
+
 MAINTAINER=	obraun@informatik.unibw-muenchen.de
 
 .if defined(WITH_TRACER)
diff -ruN nhc98.bak/distinfo nhc98/distinfo
--- nhc98.bak/distinfo	Wed Mar 20 12:31:53 2002
+++ nhc98/distinfo	Tue Mar 26 13:05:05 2002
@@ -1 +1,3 @@
 MD5 (nhc98/nhc98src-1.12.tar.gz) = cd10466ba0f06a19c55a67d3b9afd95c
+MD5 (nhc98/patch-1.12-ranlib) = cdf4b449d96ca7b4caf25ac8176f1870
+MD5 (nhc98/patch-1.12-hmake-config) = 3d55e0f423cbf8a899d60b85cefcc844
Comment 2 dwcjr 2002-03-31 14:58:43 UTC
I get the following on -current

gmake[1]: Entering directory 
`/usr/home/poseiden/port/nhc98/work/nhc98-1.12/src/prelude/ix86-FreeBSD'
rm -f *.hi
rm -f    DErrNo.hc
rm -f 
/usr/home/poseiden/port/nhc98/work/nhc98-1.12/targets/ix86-FreeBSD/obj/prelude/DErrNo/*.o 
*.o
rm -f
rm -f
/usr/home/poseiden/port/nhc98/work/nhc98-1.12/script/nhc98 -cpp -c +CTS 
-lib  -redefine -CTS    -o 
/usr/home/poseiden/port/nhc98/work/nhc98-1.12/targets/ix86-FreeBSD/obj/prelude/DErrNo/DErrNo.o 
DErrNo.hs
Bus error - core dumped
gmake[1]: *** 
[/usr/home/poseiden/port/nhc98/work/nhc98-1.12/targets/ix86-FreeBSD/obj/prelude/DErrNo/DErrNo.o] 
Error 1
gmake[1]: Leaving directory 
`/usr/home/poseiden/port/nhc98/work/nhc98-1.12/src/prelude/ix86-FreeBSD'
gmake: *** [targets/ix86-FreeBSD/compiler-gcc] Error 2
*** Error code 2
Comment 3 obraun 2002-03-31 17:26:11 UTC
* David W. Chapman Jr. <dwcjr@inethouston.net> [2002-03-31 16:00]:
> I get the following on -current

> [ error message deleted ]

Thanks for your reply.

I am going to work with the developer on that.

Regards,
         Olli
-- 
Department of Computing Science
Federal Armed Forces University Munich
http://ist.unibw-muenchen.de/People/obraun/
Comment 4 obraun 2002-04-03 22:05:13 UTC
With the following patch nhc98 builds on -current using lang/ghc.

It was not possible to build nhc98 with cc on -current, but I assume
that most people who want to use nhc98 are also using ghc. So this might
be no big problem.

I am further working with the developers on this problem, which also
occurs on some Solaris versions.

I would appreciate, if someone could commit this monster ;o)

I can also submit an "all-in-one" diff against the current cvs version,
if this makes it easier to check and commit.

Kind Regards,
               Olli


diff -ruN nhc98.old/Makefile nhc98/Makefile
--- nhc98.old/Makefile	Wed Apr  3 22:50:47 2002
+++ nhc98/Makefile	Wed Apr  3 22:36:38 2002
@@ -22,6 +22,12 @@
 BUILD_DEPENDS=	${LOCALBASE}/jdk1.1.8/bin/javac:${PORTSDIR}/java/jdk
 .endif
 
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 500000
+BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+.endif
+
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 PLIST=		${WRKSRC}/pkg-plist
 
@@ -36,6 +42,10 @@
 USE_GMAKE=	yes
 HAS_CONFIGURE=	yes
 
+.if ${OSVERSION} >= 500000
+CONFIGURE_ARGS+=	--buildwith=ghc
+.endif
+
 .if !defined(NOPORTDOCS)
 CONFIGURE_ARGS+=	--docdir=${PREFIX}/share/doc/nhc98 +docs
 .endif
@@ -90,4 +100,4 @@
 .endfor
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Comment 5 obraun 2002-04-04 07:26:36 UTC
* David W. Chapman Jr. <dwcjr@inethouston.net> [2002-04-03 23:34]:
> yes, and all-in-one would be easier if you could.

Of course, no problem. Here it is

removed: files/patch-include::Array.hi
added:   files/patch-include::localmalloc.h
         files/patch-script::confhat
         files/patch-script::harch
         files/patch-src::hat::lib::Makefile
         scripts/pre-install

Regards,
         Olli


diff -ruN nhc98.old/Makefile nhc98/Makefile
--- nhc98.old/Makefile	Mon Mar 18 07:32:20 2002
+++ nhc98/Makefile	Wed Apr  3 22:36:38 2002
@@ -2,39 +2,34 @@
 # Date created:				04 October 2001
 # Whom:					Oliver Braun <obraun@informatik.unibw-muenchen.de>
 #
-# $FreeBSD: ports/lang/nhc98/Makefile,v 1.4 2002/03/18 06:32:20 kris Exp $
+# $FreeBSD: ports/lang/nhc98/Makefile,v 1.3 2002/01/23 18:14:52 sf Exp $
 
 PORTNAME=	nhc98
-PORTVERSION=	1.10
-PORTREVISION=	1
+PORTVERSION=	1.12
 CATEGORIES=	lang
 MASTER_SITES=	ftp://ftp.cs.york.ac.uk/pub/haskell/${PORTNAME}/
 DISTNAME=	${PORTNAME}src-${PORTVERSION}
 DIST_SUBDIR=	nhc98
 
 PATCH_SITES=	${MASTER_SITES}
-PATCHFILES=	patch-1.10-IO \
-		patch-1.10-arrow \
-		patch-1.10-blockbuffer \
-		patch-1.10-commas \
-		patch-1.10-counter \
-		patch-1.10-hp2graph \
-		patch-1.10-keywords \
-		patch-1.10-lhs \
-		patch-1.10-patterns \
-		patch-1.10-hiding \
-		patch-1.10-ghc5.02
+PATCHFILES=	patch-1.12-ranlib \
+		patch-1.12-hmake-config
 
 MAINTAINER=	obraun@informatik.unibw-muenchen.de
 
-FORBIDDEN=	"Loops infinitely during build"
-
 .if defined(WITH_TRACER)
 RUN_DEPENDS=	${LOCALBASE}/jdk1.1.8/bin/java:${PORTSDIR}/java/jdk
 BUILD_DEPENDS=	${LOCALBASE}/jdk1.1.8/bin/javac:${PORTSDIR}/java/jdk
 .endif
 
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 500000
+BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+.endif
+
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+PLIST=		${WRKSRC}/pkg-plist
 
 .if !defined(WITH_TRACER)
 ALL_TARGET=	basic
@@ -47,6 +42,10 @@
 USE_GMAKE=	yes
 HAS_CONFIGURE=	yes
 
+.if ${OSVERSION} >= 500000
+CONFIGURE_ARGS+=	--buildwith=ghc
+.endif
+
 .if !defined(NOPORTDOCS)
 CONFIGURE_ARGS+=	--docdir=${PREFIX}/share/doc/nhc98 +docs
 .endif
@@ -89,5 +88,16 @@
 	       < ${WRKSRC}/man/nhc98.1 > ${WRKSRC}/man/nhc98.1.fix
 	${INSTALL_MAN} ${WRKSRC}/man/nhc98.1.fix ${PREFIX}/man/man1/nhc98.1
 	${RM} ${WRKSRC}/man/nhc98.1.fix
+.if !defined(NOPORTDOCS)
+.for ending in aux log
+	${RM} ${PREFIX}/share/doc/nhc98/hat/tutorial1.${ending}
+.endfor
+.for ending in aux log out toc
+	${RM} ${PREFIX}/share/doc/nhc98/hat/hatuser.${ending}
+.endfor
+.for directory in . bugs examples hat hmake implementation-notes libs
+	${RM} -r ${PREFIX}/share/doc/nhc98/${directory}/CVS
+.endfor
+.endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN nhc98.old/distinfo nhc98/distinfo
--- nhc98.old/distinfo	Wed Jan 23 19:14:52 2002
+++ nhc98/distinfo	Wed Apr  3 22:31:46 2002
@@ -1,12 +1,3 @@
-MD5 (nhc98/nhc98src-1.10.tar.gz) = 159e043a520d2eaa886213b53d50f666
-MD5 (nhc98/patch-1.10-IO) = 1b5ee9d82854217973d5a128f913b285
-MD5 (nhc98/patch-1.10-arrow) = d27deb1683c33d58a41c3eb28e9c0e9a
-MD5 (nhc98/patch-1.10-blockbuffer) = f66a8885fd0bd037b68e8024942fc274
-MD5 (nhc98/patch-1.10-commas) = fda47aeaa34b6bcb981f93d905baf889
-MD5 (nhc98/patch-1.10-counter) = e78121249b077e57489f0b0ad72e6bad
-MD5 (nhc98/patch-1.10-hp2graph) = 447391cc6f882caaf7f1ba64cff06e07
-MD5 (nhc98/patch-1.10-keywords) = 6d25095fa09626ce088daba7e7c70e48
-MD5 (nhc98/patch-1.10-lhs) = 99883604c9d7fabebf5d2c5932f4c090
-MD5 (nhc98/patch-1.10-patterns) = 605013e0a7678fe7789e5ccb917018bf
-MD5 (nhc98/patch-1.10-hiding) = 9203ebd44bda7db58f5ba8cd92861645
-MD5 (nhc98/patch-1.10-ghc5.02) = f7eb18ac28feb431f651b5e571724bc9
+MD5 (nhc98/nhc98src-1.12.tar.gz) = cd10466ba0f06a19c55a67d3b9afd95c
+MD5 (nhc98/patch-1.12-ranlib) = cdf4b449d96ca7b4caf25ac8176f1870
+MD5 (nhc98/patch-1.12-hmake-config) = 3d55e0f423cbf8a899d60b85cefcc844
diff -ruN nhc98.old/files/patch-Makefile nhc98/files/patch-Makefile
--- nhc98.old/files/patch-Makefile	Fri Dec 21 21:23:40 2001
+++ nhc98/files/patch-Makefile	Wed Apr  3 22:31:31 2002
@@ -1,6 +1,6 @@
---- Makefile.orig	Thu Oct  4 10:21:53 2001
-+++ Makefile	Thu Oct  4 10:22:02 2001
-@@ -148,14 +148,14 @@
+--- Makefile.orig	Fri Mar 15 20:32:19 2002
++++ Makefile	Fri Mar 15 20:33:50 2002
+@@ -143,15 +143,15 @@
  
  TARGDIR= targets
  TARGETS= runtime prelude greencard hp2graph hattools \
@@ -13,16 +13,17 @@
 -	 compiler-nhc compiler-hbc compiler-ghc compiler-$(CC) \
 -	 hmake-nhc hmake-hbc hmake-ghc hmake-$(CC) \
 -	 greencard-nhc greencard-hbc greencard-ghc greencard-$(CC) \
--	 prelude-$(CC) pragma-$(CC)
 +	 traceruntime traceprelude traceprelude-gcc \
 +	 compiler-nhc compiler-hbc compiler-ghc compiler-gcc \
 +	 hmake-nhc hmake-hbc hmake-ghc hmake-gcc \
 +	 greencard-nhc greencard-hbc greencard-ghc greencard-gcc \
+ 	 hat-nhc hat-ghc \
+-	 prelude-$(CC) pragma-$(CC)
 +	 prelude-gcc pragma-gcc
  
- .PHONY: default basic all tracer compiler help config install hattools
+ .PHONY: default basic all tracer compiler help config install hat hattools
  
-@@ -188,8 +188,8 @@
+@@ -185,8 +185,8 @@
  basic-nhc: $(PRAGMA) runtime hmake-nhc greencard-nhc compiler-nhc prelude
  basic-hbc: $(PRAGMA) runtime hmake-hbc greencard-hbc compiler-hbc prelude
  basic-ghc: $(PRAGMA) runtime hmake-ghc greencard-ghc compiler-ghc prelude
@@ -31,10 +32,10 @@
 +basic-gcc:   runtime prelude-gcc pragma-gcc compiler-gcc \
 +		 greencard-gcc hmake-gcc
  
- all-$(BUILDCOMP): basic-$(BUILDCOMP) heapprofile timeprofile tracer lib/hood.jar
+ all-$(BUILDCOMP): basic-$(BUILDCOMP) heapprofile timeprofile tracer hoodui
  
-@@ -209,9 +209,9 @@
- 		compiler-ghc traceruntime traceprelude hattools
+@@ -206,9 +206,9 @@
+ 		compiler-ghc traceruntime traceprelude hattools hat-ghc
  tracer-hbc: $(PRAGMA) runtime hmake-hbc greencard-hbc \
  		compiler-hbc traceruntime traceprelude hattools
 -tracer-$(CC): runtime prelude-$(CC) pragma-$(CC) compiler-$(CC) \
@@ -46,7 +47,7 @@
  timetraceprofile: timetraceruntime timetraceprelude
  
  $(TARGETS): % : $(TARGDIR)/$(MACHINE)/%
-@@ -324,44 +324,44 @@
+@@ -328,44 +328,44 @@
  	touch $(TARGDIR)/$(MACHINE)/timeprelude
  
  
@@ -100,7 +101,7 @@
 -$(TARGDIR)/$(MACHINE)/hmake-$(CC): $(HMAKEC)
 +	touch $(TARGDIR)/$(MACHINE)/pragma-gcc
 +$(TARGDIR)/$(MACHINE)/hmake-gcc: $(HMAKEC)
- 	cd src/hmake;          $(MAKE) fromC
+ 	cd src/hmake;          $(MAKE) fromC config
  	cd src/interpreter;    $(MAKE) fromC
 -	touch $(TARGDIR)/$(MACHINE)/hmake-$(CC)
 +	touch $(TARGDIR)/$(MACHINE)/hmake-gcc
diff -ruN nhc98.old/files/patch-include::Array.hi nhc98/files/patch-include::Array.hi
--- nhc98.old/files/patch-include::Array.hi	Sat Dec 22 07:21:46 2001
+++ nhc98/files/patch-include::Array.hi	Thu Jan  1 01:00:00 1970
@@ -1,12 +0,0 @@
-diff -ruN include.bak/Array.hi include/Array.hi
---- include.bak/Array.hi	Tue Sep 18 12:50:40 2001
-+++ include/Array.hi	Fri Dec 21 23:25:13 2001
-@@ -113,7 +113,7 @@
- {-# NEED _tupleRange #-}
- _tupleRange{-# 3 #-}::(Ix a) => (a -> (a -> ([(a -> b)] -> [b])));
- 
--{-# NEED {Ix range index inRange} #-}
-+{-# NEED {Ix range index inRange rangeSize} #-}
- class (Prelude.Ord a) => Ix a where {
-   range{-# 1 #-}::((a,a) -> [a]);
-   index{-# 2 #-}::((a,a) -> (a -> Prelude.Int));
diff -ruN nhc98.old/files/patch-include::localmalloc.h nhc98/files/patch-include::localmalloc.h
--- nhc98.old/files/patch-include::localmalloc.h	Thu Jan  1 01:00:00 1970
+++ nhc98/files/patch-include::localmalloc.h	Wed Apr  3 22:44:58 2002
@@ -0,0 +1,9 @@
+--- include/localmalloc.h.orig	Sun Mar 17 21:18:36 2002
++++ include/localmalloc.h	Sun Mar 17 21:18:55 2002
+@@ -1,5 +1,5 @@
+ #if defined(__APPLE__)
+ #include <sys/malloc.h>
+ #else
+-#include <malloc.h>
++#include <stdlib.h>
+ #endif
diff -ruN nhc98.old/files/patch-script::confhat nhc98/files/patch-script::confhat
--- nhc98.old/files/patch-script::confhat	Thu Jan  1 01:00:00 1970
+++ nhc98/files/patch-script::confhat	Wed Apr  3 22:45:44 2002
@@ -0,0 +1,9 @@
+--- script/confhat.orig	Wed Mar 20 12:03:42 2002
++++ script/confhat	Wed Mar 20 12:35:43 2002
+@@ -14,5 +14,5 @@
+ 
+ cp -p lib/$MACHINE/libHShat.a $GHCLIBDIR
+ cp -p lib/hat/*.hi lib/hat/*.hx $GHCINCDIR/hat
+-ghc-pkg --remove-package=hat || /bin/true
++ghc-pkg --remove-package=hat || /usr/bin/true
+ ghc-pkg --add-package <lib/hat/hat-package.conf
diff -ruN nhc98.old/files/patch-script::harch nhc98/files/patch-script::harch
--- nhc98.old/files/patch-script::harch	Thu Jan  1 01:00:00 1970
+++ nhc98/files/patch-script::harch	Wed Apr  3 22:46:14 2002
@@ -0,0 +1,13 @@
+--- script/harch.orig	Tue Mar 19 13:20:39 2002
++++ script/harch	Tue Mar 19 13:22:26 2002
+@@ -13,8 +13,8 @@
+ 
+ if uname >/dev/null 2>&1
+ then
+-  if uname -p >/dev/null 2>&1
+-  then PROCESSOR=`uname -p`
++  if uname -m >/dev/null 2>&1
++  then PROCESSOR=`uname -m`
+     case "$PROCESSOR" in
+     unknown|*\ *)
+       PROCESSOR=`uname -m`
diff -ruN nhc98.old/files/patch-src::greencard::Makefile nhc98/files/patch-src::greencard::Makefile
--- nhc98.old/files/patch-src::greencard::Makefile	Fri Dec 21 21:23:40 2001
+++ nhc98/files/patch-src::greencard::Makefile	Wed Apr  3 22:31:31 2002
@@ -1,6 +1,5 @@
-diff -ruN src.bak/greencard/Makefile src/greencard/Makefile
---- src.bak/greencard/Makefile	Tue May 29 16:22:46 2001
-+++ src/greencard/Makefile	Mon Jun 18 16:31:45 2001
+--- src/greencard/Makefile.orig	Fri Mar 15 21:04:02 2002
++++ src/greencard/Makefile	Fri Mar 15 21:06:49 2002
 @@ -34,7 +34,7 @@
  
  
diff -ruN nhc98.old/files/patch-src::hat::lib::Makefile nhc98/files/patch-src::hat::lib::Makefile
--- nhc98.old/files/patch-src::hat::lib::Makefile	Thu Jan  1 01:00:00 1970
+++ nhc98/files/patch-src::hat::lib::Makefile	Wed Apr  3 22:47:08 2002
@@ -0,0 +1,11 @@
+--- src/hat/lib/Makefile.orig	Fri Mar 15 21:03:40 2002
++++ src/hat/lib/Makefile	Fri Mar 15 21:06:25 2002
+@@ -41,7 +41,7 @@
+ all: $(OBJDIR) $(TARGET)
+ install: install-$(HC)
+ install-ghc: $(OBJDIR) $(TARGET)
+-	mkdir $(LIBDIR)/hat || /bin/true
++	mkdir $(LIBDIR)/hat || /usr/bin/true
+ 	$(INSTALL) *.hi *.hx hat-package.conf $(LIBDIR)/hat
+ install-nhc98: $(OBJDIR) $(TARGET)
+ 	$(INSTALL) *.hi *.hx $(INCDIR)
diff -ruN nhc98.old/files/patch-src::hmake::Makefile nhc98/files/patch-src::hmake::Makefile
--- nhc98.old/files/patch-src::hmake::Makefile	Fri Dec 21 21:23:40 2001
+++ nhc98/files/patch-src::hmake::Makefile	Wed Apr  3 22:31:31 2002
@@ -1,7 +1,6 @@
-diff -ruN src.bak/hmake/Makefile src/hmake/Makefile
---- src.bak/hmake/Makefile	Tue May 29 16:29:07 2001
-+++ src/hmake/Makefile	Mon Jun 18 16:32:21 2001
-@@ -48,7 +48,7 @@
+--- src/hmake/Makefile.orig	Fri Mar 15 21:04:20 2002
++++ src/hmake/Makefile	Fri Mar 15 21:07:06 2002
+@@ -63,7 +63,7 @@
  	strip $@
  
  $(OBJDIR):
@@ -9,4 +8,4 @@
 +	mkdir -p $(OBJDIR) || /usr/bin/true
  $(OBJS): $(OBJDIR)/%.$O : %.hs
  	$(HC) $(HFLAGS) -c -o $@ $<
- $(CPPOBJS) $(OBJDIR)/Older.$O: $(OBJDIR)/%.$O : %.hs
+ $(CPPOBJS) $(OBJDIR)/Older.$O $(OBJDIR)/MkConfig.$O: $(OBJDIR)/%.$O : %.hs
diff -ruN nhc98.old/files/patch-src::hp2graph::Makefile nhc98/files/patch-src::hp2graph::Makefile
--- nhc98.old/files/patch-src::hp2graph::Makefile	Fri Dec 21 21:23:40 2001
+++ nhc98/files/patch-src::hp2graph::Makefile	Wed Apr  3 22:31:31 2002
@@ -1,6 +1,5 @@
-diff -ruN src.bak/hp2graph/Makefile src/hp2graph/Makefile
---- src.bak/hp2graph/Makefile	Mon Oct 11 13:50:38 1999
-+++ src/hp2graph/Makefile	Mon Jun 18 16:32:04 2001
+--- src/hp2graph/Makefile.orig	Fri Mar 15 21:04:12 2002
++++ src/hp2graph/Makefile	Fri Mar 15 21:06:58 2002
 @@ -31,7 +31,7 @@
  
  
diff -ruN nhc98.old/files/patch-src::prelude::Makefile nhc98/files/patch-src::prelude::Makefile
--- nhc98.old/files/patch-src::prelude::Makefile	Fri Dec 21 21:23:40 2001
+++ nhc98/files/patch-src::prelude::Makefile	Wed Apr  3 22:31:31 2002
@@ -1,7 +1,6 @@
-diff -ruN src.bak/prelude/Makefile src/prelude/Makefile
---- src.bak/prelude/Makefile	Mon Jun  4 12:40:41 2001
-+++ src/prelude/Makefile	Mon Jun 18 16:31:24 2001
-@@ -80,7 +80,7 @@
+--- src/prelude/Makefile.orig	Fri Mar 15 21:03:48 2002
++++ src/prelude/Makefile	Fri Mar 15 21:06:41 2002
+@@ -79,7 +79,7 @@
  	mkdir -p ${OBJDIR}
  
  ${OBJDIRS}: ${OBJDIR}/% :
@@ -10,7 +9,7 @@
  
  
  ifeq "${TPROF}" ""
-@@ -326,9 +326,9 @@
+@@ -328,9 +328,9 @@
  
  
  ${OBJDIR}:
@@ -20,5 +19,5 @@
 -	mkdir -p $@ || /bin/true
 +	mkdir -p $@ || /usr/bin/true
  
- ${ARCHIVE}: ${OBJDIR} ${OBJDIRS} ${SUBDIRSMK}
- 	rm -f $@
+ ifeq "${TPROF}" ""
+ 
diff -ruN nhc98.old/files/patch-src::runtime::Makefile nhc98/files/patch-src::runtime::Makefile
--- nhc98.old/files/patch-src::runtime::Makefile	Fri Dec 21 21:23:40 2001
+++ nhc98/files/patch-src::runtime::Makefile	Wed Apr  3 22:31:31 2002
@@ -1,16 +1,15 @@
-diff -ruN src.bak/runtime/Makefile src/runtime/Makefile
---- src.bak/runtime/Makefile	Thu Dec 16 11:58:42 1999
-+++ src/runtime/Makefile	Mon Jun 18 16:30:56 2001
-@@ -9,7 +9,7 @@
+--- src/runtime/Makefile.orig	Fri Mar 15 21:03:33 2002
++++ src/runtime/Makefile	Fri Mar 15 21:06:15 2002
+@@ -13,7 +13,7 @@
+   SUF=.${CFG}
+ endif
  
- LD = ld
- LDFLAGS = -r
 -TRUE = /bin/true
 +TRUE = /usr/bin/true
- CC = gcc
- AR = ar
+ LDFLAGS = -r
  ARFLAGS = r
-@@ -48,7 +48,7 @@
+ 
+@@ -51,7 +51,7 @@
  	mkdir -p ${OBJDIR}
  
  ${OBJDIRS}: ${OBJDIR}/% :
diff -ruN nhc98.old/pkg-plist nhc98/pkg-plist
--- nhc98.old/pkg-plist	Sat Dec 22 07:21:45 2001
+++ nhc98/pkg-plist	Wed Apr  3 22:31:31 2002
@@ -1,12 +1,14 @@
 bin/harch
 bin/nhc98
 bin/hmake
+bin/hmake-config
 bin/hi
 bin/hood
 bin/greencard-nhc98
 bin/tprofprel
 bin/hp2graph
-bin/hat-trail
+bin/hat-trail-in-java
+bin/hat-trans
 bin/hat-stack
 bin/hat-connect
 bin/hat-check
@@ -14,6 +16,9 @@
 bin/hat-detect
 bin/hat-checki
 bin/hat-port
+bin/hat-view
+bin/hat-names
+bin/hat-trail
 lib/nhc98/hat-trail.jar
 lib/nhc98/hood.jar
 lib/nhc98/ix86-FreeBSD/Prelude.a
@@ -21,7 +26,7 @@
 lib/nhc98/ix86-FreeBSD/config
 lib/nhc98/ix86-FreeBSD/greencard-nhc98
 lib/nhc98/ix86-FreeBSD/hmake-PRAGMA
-lib/nhc98/ix86-FreeBSD/hmake.config
+lib/nhc98/ix86-FreeBSD/hmakerc
 lib/nhc98/ix86-FreeBSD/libdebug.a
 lib/nhc98/ix86-FreeBSD/main.o
 lib/nhc98/ix86-FreeBSD/mutator.o
@@ -29,6 +34,7 @@
 lib/nhc98/ix86-FreeBSD/nhc98comp
 lib/nhc98/ix86-FreeBSD/nhc98heap
 lib/nhc98/ix86-FreeBSD/HInteractive
+lib/nhc98/ix86-FreeBSD/MkConfig
 lib/nhc98/ix86-FreeBSD/MkProg
 lib/nhc98/ix86-FreeBSD/Older
 %%TRACER%%lib/nhc98/ix86-FreeBSD/hat-check
@@ -37,6 +43,8 @@
 %%TRACER%%lib/nhc98/ix86-FreeBSD/hat-detect
 %%TRACER%%lib/nhc98/ix86-FreeBSD/hat-observe
 %%TRACER%%lib/nhc98/ix86-FreeBSD/hat-stack
+%%TRACER%%lib/nhc98/ix86-FreeBSD/hat-trail
+%%TRACER%%lib/nhc98/ix86-FreeBSD/hat-view
 %%TRACER%%lib/nhc98/ix86-FreeBSD/hp2graph
 %%TRACER%%lib/nhc98/ix86-FreeBSD/Array.z.a
 %%TRACER%%lib/nhc98/ix86-FreeBSD/BinArray.z.a
@@ -98,68 +106,98 @@
 %%TRACER%%lib/nhc98/ix86-FreeBSD/tprofprel3.z.o
 include/nhc98/Array.T.hi
 include/nhc98/Array.hi
+include/nhc98/Array.hx
 include/nhc98/BinArray.hi
+include/nhc98/BinArray.hx
 include/nhc98/Binary.T.hi
 include/nhc98/Binary.hi
+include/nhc98/Binary.hx
 include/nhc98/Bit.hi
+include/nhc98/Bit.hx
 include/nhc98/CPUTime.T.hi
 include/nhc98/CPUTime.hi
+include/nhc98/CPUTime.hx
 include/nhc98/Char.T.hi
 include/nhc98/Char.hi
+include/nhc98/Char.hx
 include/nhc98/Complex.T.hi
 include/nhc98/Complex.hi
+include/nhc98/Complex.hx
 include/nhc98/DPrelude.hi
 include/nhc98/DbgIface.hi
 include/nhc98/DbgStub.hi
 include/nhc98/Directory.T.hi
 include/nhc98/Directory.hi
+include/nhc98/Directory.hx
 include/nhc98/FFI.T.hi
 include/nhc98/FFI.hi
+include/nhc98/FFI.hx
 include/nhc98/FFIBuiltin.T.hi
 include/nhc98/FFIBuiltin.hi
+include/nhc98/FFIBuiltin.hx
 include/nhc98/GreenCard.T.hi
 include/nhc98/GreenCard.gc
 include/nhc98/GreenCard.hi
+include/nhc98/GreenCard.hx
 include/nhc98/Haskell.hi
+include/nhc98/Haskell.hx
 include/nhc98/Hat.hi
 include/nhc98/HatBuiltin.hi
 include/nhc98/HsFFI.h
 include/nhc98/IO.T.hi
 include/nhc98/IO.hi
+include/nhc98/IO.hx
 include/nhc98/IOExtras.T.hi
 include/nhc98/IOExtras.hi
+include/nhc98/IOExtras.hx
 include/nhc98/Ix.T.hi
 include/nhc98/Ix.hi
+include/nhc98/Ix.hx
 include/nhc98/List.T.hi
 include/nhc98/List.hi
+include/nhc98/List.hx
 include/nhc98/Locale.hi
+include/nhc98/Locale.hx
 include/nhc98/Maybe.T.hi
 include/nhc98/Maybe.hi
+include/nhc98/Maybe.hx
 include/nhc98/Monad.T.hi
 include/nhc98/Monad.hi
+include/nhc98/Monad.hx
 include/nhc98/NonStdEval.hi
 include/nhc98/NonStdGetPID.hi
 include/nhc98/NonStdProfile.hi
 include/nhc98/NonStdTrace.T.hi
 include/nhc98/NonStdTrace.hi
+include/nhc98/NonStdTrace.hx
 include/nhc98/NonStdUnsafeCoerce.T.hi
 include/nhc98/NonStdUnsafeCoerce.hi
 include/nhc98/Numeric.T.hi
 include/nhc98/Numeric.hi
+include/nhc98/Numeric.hx
 include/nhc98/Observe.hi
 include/nhc98/PackedString.T.hi
 include/nhc98/PackedString.hi
+include/nhc98/PackedString.hx
 include/nhc98/Prelude.T.hi
 include/nhc98/Prelude.hi
+include/nhc98/Prelude.hx
 include/nhc98/PreludeBuiltin.T.hi
 include/nhc98/PreludeBuiltin.hi
+include/nhc98/PreludeBuiltin.hx
+include/nhc98/Q8defs.h
 include/nhc98/Random.T.hi
 include/nhc98/Random.hi
+include/nhc98/Random.hx
 include/nhc98/Ratio.T.hi
 include/nhc98/Ratio.hi
+include/nhc98/Ratio.hx
 include/nhc98/System.T.hi
 include/nhc98/System.hi
+include/nhc98/System.hx
+include/nhc98/TChar.hi
 include/nhc98/Time.hi
+include/nhc98/Time.hx
 include/nhc98/TPrelude.hi
 include/nhc98/Warning.hi
 include/nhc98/art.h
@@ -195,6 +233,7 @@
 %%PORTDOCS%%share/doc/nhc98/cvs.html
 %%PORTDOCS%%share/doc/nhc98/download.html
 %%PORTDOCS%%share/doc/nhc98/errmsgs.html
+%%PORTDOCS%%share/doc/nhc98/extensions.html
 %%PORTDOCS%%share/doc/nhc98/ffi.html
 %%PORTDOCS%%share/doc/nhc98/fig2.html
 %%PORTDOCS%%share/doc/nhc98/fig3.html
@@ -221,9 +260,6 @@
 %%PORTDOCS%%share/doc/nhc98/fig1.gif
 %%PORTDOCS%%share/doc/nhc98/nhc13.gif
 %%PORTDOCS%%share/doc/nhc98/nhc98.gif
-%%PORTDOCS%%share/doc/nhc98/CVS/Entries
-%%PORTDOCS%%share/doc/nhc98/CVS/Repository
-%%PORTDOCS%%share/doc/nhc98/CVS/Root
 %%PORTDOCS%%share/doc/nhc98/bugs/Nhc13Test1.hs
 %%PORTDOCS%%share/doc/nhc98/bugs/Nhc13Test10.hs
 %%PORTDOCS%%share/doc/nhc98/bugs/Nhc13Test13.hs
@@ -253,20 +289,20 @@
 %%PORTDOCS%%share/doc/nhc98/bugs/nhc98test22.hs
 %%PORTDOCS%%share/doc/nhc98/bugs/nhc98test23.hs
 %%PORTDOCS%%share/doc/nhc98/bugs/README
-%%PORTDOCS%%share/doc/nhc98/bugs/CVS/Entries
-%%PORTDOCS%%share/doc/nhc98/bugs/CVS/Repository
-%%PORTDOCS%%share/doc/nhc98/bugs/CVS/Root
 %%PORTDOCS%%share/doc/nhc98/examples/ZooQuiz.hs
-%%PORTDOCS%%share/doc/nhc98/examples/CVS/Entries
-%%PORTDOCS%%share/doc/nhc98/examples/CVS/Repository
-%%PORTDOCS%%share/doc/nhc98/examples/CVS/Root
+%%PORTDOCS%%share/doc/nhc98/hat/BadInsort.hs
+%%PORTDOCS%%share/doc/nhc98/hat/Insort.hs
 %%PORTDOCS%%share/doc/nhc98/hat/browser-detail.html
+%%PORTDOCS%%share/doc/nhc98/hat/bugs-tools.html
 %%PORTDOCS%%share/doc/nhc98/hat/faq.html
+%%PORTDOCS%%share/doc/nhc98/hat/fest-0202.bugs
 %%PORTDOCS%%share/doc/nhc98/hat/feature-table.html
 %%PORTDOCS%%share/doc/nhc98/hat/frejaHatHood.ps.gz
 %%PORTDOCS%%share/doc/nhc98/hat/hat-trail-1.eps
+%%PORTDOCS%%share/doc/nhc98/hat/hat-trail-1.pdf
 %%PORTDOCS%%share/doc/nhc98/hat/hat-trail.gif
 %%PORTDOCS%%share/doc/nhc98/hat/hat.gif
+%%PORTDOCS%%share/doc/nhc98/hat/hatuser.dvi
 %%PORTDOCS%%share/doc/nhc98/hat/hatuser.tex
 %%PORTDOCS%%share/doc/nhc98/hat/index.html
 %%PORTDOCS%%share/doc/nhc98/hat/limitations-detail.html
@@ -275,50 +311,45 @@
 %%PORTDOCS%%share/doc/nhc98/hat/old-tracing.html
 %%PORTDOCS%%share/doc/nhc98/hat/paper.dvi
 %%PORTDOCS%%share/doc/nhc98/hat/proposal.html
+%%PORTDOCS%%share/doc/nhc98/hat/toolkitThesis.ps.gz
 %%PORTDOCS%%share/doc/nhc98/hat/tracing.html
+%%PORTDOCS%%share/doc/nhc98/hat/tutorial1.dvi
+%%PORTDOCS%%share/doc/nhc98/hat/tutorial1.html
+%%PORTDOCS%%share/doc/nhc98/hat/tutorial1.hva
+%%PORTDOCS%%share/doc/nhc98/hat/tutorial1.pdf
+%%PORTDOCS%%share/doc/nhc98/hat/tutorial1.ps
+%%PORTDOCS%%share/doc/nhc98/hat/tutorial1.tex
 %%PORTDOCS%%share/doc/nhc98/hat/hatuser.pdf
+%%PORTDOCS%%share/doc/nhc98/hat/hatuser.html
+%%PORTDOCS%%share/doc/nhc98/hat/hatuser001.gif
 %%PORTDOCS%%share/doc/nhc98/hat/hatuser.ps
 %%PORTDOCS%%share/doc/nhc98/hat/hw01-draft.ps.gz
 %%PORTDOCS%%share/doc/nhc98/hat/newhat.ps.gz
-%%PORTDOCS%%share/doc/nhc98/hat/CVS/Entries
-%%PORTDOCS%%share/doc/nhc98/hat/CVS/Repository
-%%PORTDOCS%%share/doc/nhc98/hat/CVS/Root
 %%PORTDOCS%%share/doc/nhc98/hmake/changes.html
+%%PORTDOCS%%share/doc/nhc98/hmake/hi-commands.html
 %%PORTDOCS%%share/doc/nhc98/hmake/hmake.html
+%%PORTDOCS%%share/doc/nhc98/hmake/hmake-config.html
 %%PORTDOCS%%share/doc/nhc98/hmake/index.html
 %%PORTDOCS%%share/doc/nhc98/hmake/interactive.html
 %%PORTDOCS%%share/doc/nhc98/hmake/lineedit.html
-%%PORTDOCS%%share/doc/nhc98/hmake/CVS/Entries
-%%PORTDOCS%%share/doc/nhc98/hmake/CVS/Repository
-%%PORTDOCS%%share/doc/nhc98/hmake/CVS/Root
 %%PORTDOCS%%share/doc/nhc98/implementation-notes/build-system
 %%PORTDOCS%%share/doc/nhc98/implementation-notes/index.html
 %%PORTDOCS%%share/doc/nhc98/implementation-notes/intro
 %%PORTDOCS%%share/doc/nhc98/implementation-notes/phases
-%%PORTDOCS%%share/doc/nhc98/implementation-notes/CVS/Entries
-%%PORTDOCS%%share/doc/nhc98/implementation-notes/CVS/Repository
-%%PORTDOCS%%share/doc/nhc98/implementation-notes/CVS/Root
 %%PORTDOCS%%share/doc/nhc98/implementation-notes/space-efficient
 %%PORTDOCS%%share/doc/nhc98/libs/BinArray.html
 %%PORTDOCS%%share/doc/nhc98/libs/Binary.html
 %%PORTDOCS%%share/doc/nhc98/libs/Bit.html
+%%PORTDOCS%%share/doc/nhc98/libs/FFI.html
+%%PORTDOCS%%share/doc/nhc98/libs/IOExtras.html
 %%PORTDOCS%%share/doc/nhc98/libs/OldBinary.html
+%%PORTDOCS%%share/doc/nhc98/libs/PackedString.html
 %%PORTDOCS%%share/doc/nhc98/libs/Time.html
-%%PORTDOCS%%share/doc/nhc98/libs/CVS/Entries
-%%PORTDOCS%%share/doc/nhc98/libs/CVS/Repository
-%%PORTDOCS%%share/doc/nhc98/libs/CVS/Root
 %%PORTDOCS%%share/doc/nhc98/libs/index.html
-%%PORTDOCS%%@dirrm share/doc/nhc98/bugs/CVS
 %%PORTDOCS%%@dirrm share/doc/nhc98/bugs
-%%PORTDOCS%%@dirrm share/doc/nhc98/examples/CVS
 %%PORTDOCS%%@dirrm share/doc/nhc98/examples
-%%PORTDOCS%%@dirrm share/doc/nhc98/hat/CVS
 %%PORTDOCS%%@dirrm share/doc/nhc98/hat
-%%PORTDOCS%%@dirrm share/doc/nhc98/hmake/CVS
 %%PORTDOCS%%@dirrm share/doc/nhc98/hmake
-%%PORTDOCS%%@dirrm share/doc/nhc98/implementation-notes/CVS
 %%PORTDOCS%%@dirrm share/doc/nhc98/implementation-notes
-%%PORTDOCS%%@dirrm share/doc/nhc98/libs/CVS
 %%PORTDOCS%%@dirrm share/doc/nhc98/libs
-%%PORTDOCS%%@dirrm share/doc/nhc98/CVS
 %%PORTDOCS%%@dirrm share/doc/nhc98
diff -ruN nhc98.old/scripts/pre-install nhc98/scripts/pre-install
--- nhc98.old/scripts/pre-install	Thu Jan  1 01:00:00 1970
+++ nhc98/scripts/pre-install	Wed Apr  3 22:48:13 2002
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+rm -f ${WRKSRC}/pkg-plist && touch ${WRKSRC}/pkg-plist
+
+MACHINE=`${WRKSRC}/script/harch`
+
+if [ `grep -c ghc ${WRKSRC}/lib/${MACHINE}/hmakerc` -gt 0 ]
+then
+    echo "lib/nhc98/ix86-FreeBSD/hat-trans" >> ${WRKSRC}/pkg-plist
+    if [ ${WITH_TRACER} ]
+    then
+	ONEDIR=`grep ghc ${WRKSRC}/lib/${MACHINE}/hmakerc | grep import | head -1 | cut -d'"' -f2 | sed -e "s#${PREFIX}/##"`
+	GHCINCDIR=`dirname $ONEDIR`
+	GHCLIBDIR=`dirname $GHCINCDIR`
+	FILES=`ls ${WRKSRC}/lib/hat/ | grep 'hi$\|hx$' | sed -e "s#^.*/lib/hat/##g"`
+	echo "lib/nhc98/ix86-FreeBSD/libHShat.a" >> ${WRKSRC}/pkg-plist
+	echo "${GHCLIBDIR}/libHShat.a" >> ${WRKSRC}/pkg-plist
+	for file in ${FILES}; do
+		echo ${GHCINCDIR}/hat/${file} >> ${WRKSRC}/pkg-plist
+	done
+	echo "@dirrm ${GHCINCDIR}/hat" >> ${WRKSRC}/pkg-plist
+    fi
+fi
+
+cat ${CURDIR}/pkg-plist >> ${WRKSRC}/pkg-plist
Comment 6 dwcjr 2002-04-04 23:46:44 UTC
On Thu, Apr 04, 2002 at 08:26:36AM +0200, Oliver Braun wrote:
> * David W. Chapman Jr. <dwcjr@inethouston.net> [2002-04-03 23:34]:
> > yes, and all-in-one would be easier if you could.
> 

I got those details, but I cannot compile ghc, I'll see if I can fix 
it, but here's what I get on -current, its looking for -stable's libc

in /usr/ports/lang/ghc/work/ghc-5.02.2/ghc/utils/ghc-pkg
------------------------------------------------------------------------
/usr/ports/lang/ghc/work/ghc-5.02.2-boot/bin/i386-unknown-freebsd/ghc-5.02.2 -M -optdep-f -optdep.depend  -osuf o    -cpp -DPKG_TOOL -DWANT_PRETTY -package lang -package util -package text -O Main.hs Package.hs
/usr/libexec/ld-elf.so.1: Shared object "libc.so.4" not found
gmake[3]: *** [depend] Error 1
gmake[2]: *** [boot] Error 1
gmake[1]: *** [boot] Error 1
gmake[1]: Leaving directory `/usr/ports/lang/ghc/work/ghc-5.02.2/ghc'
gmake: *** [all] Error 1
*** Error code 2

-- 
David W. Chapman Jr.
dwcjr@inethouston.net	Raintree Network Services, Inc. <www.inethouston.net>
dwcjr@freebsd.org	FreeBSD Committer <www.FreeBSD.org>
Comment 7 obraun 2002-04-05 07:58:33 UTC
[CC ghc maintainer]

Oh, I am sorry. I have not noticed that dependency, since my -current
box has compat4x. Without compat4x I got the same error.
Maybe we can add the dependency on compat4x to the ghc port to fix it.

BTW, why does it work on bento?
  -> http://bento.freebsd.org/errorlogs/5-latest-logs/ghc-5.02.2.log

Regards,
         Olli

* David W. Chapman Jr. <dwcjr@inethouston.net> [2002-04-05 00:48]:
> I got those details, but I cannot compile ghc, I'll see if I can fix 
> it, but here's what I get on -current, its looking for -stable's libc

> in /usr/ports/lang/ghc/work/ghc-5.02.2/ghc/utils/ghc-pkg
> ------------------------------------------------------------------------
> /usr/ports/lang/ghc/work/ghc-5.02.2-boot/bin/i386-unknown-freebsd/ghc-5.02.2 -M -optdep-f -optdep.depend  -osuf o    -cpp -DPKG_TOOL -DWANT_PRETTY -package lang -package util -package text -O Main.hs Package.hs
> /usr/libexec/ld-elf.so.1: Shared object "libc.so.4" not found
> gmake[3]: *** [depend] Error 1
> gmake[2]: *** [boot] Error 1
> gmake[1]: *** [boot] Error 1
> gmake[1]: Leaving directory `/usr/ports/lang/ghc/work/ghc-5.02.2/ghc'
> gmake: *** [all] Error 1
> *** Error code 2

-- 
Department of Computing Science
Federal Armed Forces University Munich
http://ist.unibw-muenchen.de/People/obraun/
Comment 8 Simon Marlow 2002-04-05 09:42:06 UTC
Yes, GHC will need compat4x because it uses a pre-built binary to
bootstrap from.  The other alternative is to build a -current version of
the bootstrap build, but I'm afraid I don't have a -current box on which
to do this.

Cheers,
	Simon

> -----Original Message-----
> From: Oliver Braun [mailto:obraun@informatik.unibw-muenchen.de]=20
> Sent: 05 April 2002 07:59
> To: David W. Chapman Jr.
> Cc: freebsd-gnats-submit@FreeBSD.org; Simon Marlow
> Subject: Re: ports/36139: [Maintainer Update] Update=20
> lang/nhc98 to 1.12, remove FORBIDDEN
>=20
>=20
> [CC ghc maintainer]
>=20
> Oh, I am sorry. I have not noticed that dependency, since my -current
> box has compat4x. Without compat4x I got the same error.
> Maybe we can add the dependency on compat4x to the ghc port to fix it.
>=20
> BTW, why does it work on bento?
>   -> http://bento.freebsd.org/errorlogs/5-latest-logs/ghc-5.02.2.log
>=20
> Regards,
>          Olli
>=20
> * David W. Chapman Jr. <dwcjr@inethouston.net> [2002-04-05 00:48]:
> > I got those details, but I cannot compile ghc, I'll see if=20
> I can fix=20
> > it, but here's what I get on -current, its looking for=20
> -stable's libc
>=20
> > in /usr/ports/lang/ghc/work/ghc-5.02.2/ghc/utils/ghc-pkg
> >=20
> --------------------------------------------------------------
> ----------
> >=20
> /usr/ports/lang/ghc/work/ghc-5.02.2-boot/bin/i386-unknown-free
> bsd/ghc-5.02.2 -M -optdep-f -optdep.depend  -osuf o    -cpp=20
> -DPKG_TOOL -DWANT_PRETTY -package lang -package util -package=20
> text -O Main.hs Package.hs
> > /usr/libexec/ld-elf.so.1: Shared object "libc.so.4" not found
> > gmake[3]: *** [depend] Error 1
> > gmake[2]: *** [boot] Error 1
> > gmake[1]: *** [boot] Error 1
> > gmake[1]: Leaving directory=20
> `/usr/ports/lang/ghc/work/ghc-5.02.2/ghc'
> > gmake: *** [all] Error 1
> > *** Error code 2
>=20
> --=20
> Department of Computing Science
> Federal Armed Forces University Munich
> http://ist.unibw-muenchen.de/People/obraun/
>=20
Comment 9 obraun 2002-04-05 09:50:43 UTC
* Simon Marlow <simonmar@microsoft.com> [2002-04-05 10:44]:
> Yes, GHC will need compat4x because it uses a pre-built binary to
> bootstrap from.  The other alternative is to build a -current version of
> the bootstrap build, but I'm afraid I don't have a -current box on which
> to do this.

If you could tell me what to do, I can try to build it on my -current box.
Unfortunately the box is behind a NAT server, so I can't give you
access.

Regards,
         Olli
-- 
Department of Computing Science
Federal Armed Forces University Munich
http://ist.unibw-muenchen.de/People/obraun/
Comment 10 Simon Marlow 2002-04-05 10:43:24 UTC
> * Simon Marlow <simonmar@microsoft.com> [2002-04-05 10:44]:
> > Yes, GHC will need compat4x because it uses a pre-built binary to
> > bootstrap from.  The other alternative is to build a=20
> -current version of
> > the bootstrap build, but I'm afraid I don't have a -current=20
> box on which
> > to do this.
>=20
> If you could tell me what to do, I can try to build it on my=20
> -current box.
> Unfortunately the box is behind a NAT server, so I can't give you
> access.

You should be able to do it like this:

  - You need to have GHC installed first (maybe use compat4x to
    get the port to build, or install compat4x and the 4.x package).

  - Grab the GHC source dist, unpack it,

  - create the file mk/build.mk with the single line "BIN_DIST=3D1".

  - ./configure && gmake && gmake binary-dist

  - if everything went well, you should have a directory ghc-5.02.2
    hanging off the top level of the source tree, containing=20
    a "binary distribution" ready for packing.  Delete everything
    that isn't also in the contents of=20
=09
		ghc-5.02.2-i386-unknown-freebsd-boot.tar.gz

    and pack it up.

  - you're done.  Send me (a link to) the package and I'll put it
    on haskell.org, maybe call it ...-freebsd5-boot.tar.gz.

  - fix the lang/ghc port to select the right bootstrap distribution
    depending on the host OS version.

Hope I haven't forgotten anything!  Let me know if it doesn't go
according to plan.

Cheers,
	Simon
Comment 11 obraun 2002-04-05 11:28:53 UTC
I am working on this.

Simon,

Can you please take a look at

 http://bento.freebsd.org/errorlogs/5-latest/happy-1.11.log

and give me a hint on how to fix this?

Regards,
         Olli

* Simon Marlow <simonmar@microsoft.com> [2002-04-05 11:44]:
> > If you could tell me what to do, I can try to build it on my 
> > -current box.

> You should be able to do it like this:

>   - You need to have GHC installed first (maybe use compat4x to
>     get the port to build, or install compat4x and the 4.x package).

>   - Grab the GHC source dist, unpack it,

>   - create the file mk/build.mk with the single line "BIN_DIST=1".

>   - ./configure && gmake && gmake binary-dist

>   - if everything went well, you should have a directory ghc-5.02.2
>     hanging off the top level of the source tree, containing 
>     a "binary distribution" ready for packing.  Delete everything
>     that isn't also in the contents of 

> 		ghc-5.02.2-i386-unknown-freebsd-boot.tar.gz

>     and pack it up.

>   - you're done.  Send me (a link to) the package and I'll put it
>     on haskell.org, maybe call it ...-freebsd5-boot.tar.gz.

>   - fix the lang/ghc port to select the right bootstrap distribution
>     depending on the host OS version.

> Hope I haven't forgotten anything!  Let me know if it doesn't go
> according to plan.


-- 
Department of Computing Science
Federal Armed Forces University Munich
http://ist.unibw-muenchen.de/People/obraun/
Comment 12 Simon Marlow 2002-04-05 12:22:46 UTC
I've looked at it, but got stuck because I didn't have a -current box to
investigate further - perhaps you can help out. =20

The problem is with the documentation building, here's a bit of
background: we attempt to work with the local DocBook installation by
trying various SGML CATALOG files to see which one works (the configure
script does this), and apparently on -current it isn't finding one that
works.  The one in glafp-utils/docbook/CATALOG.FreeBSD is the one that
usually works on a FreeBSD box with the relevant docbook packages
installed from ports (see BUILD_DEPENDS in
/usr/ports/devel/happy/Makefile).

If you could investigate to see exactly why the configure test for the
CATALOG is failing I'd be very grateful.

Cheers,
	Simon

> -----Original Message-----
> From: Oliver Braun [mailto:obraun@informatik.unibw-muenchen.de]=20
> Sent: 05 April 2002 11:29
> To: Simon Marlow
> Cc: David W. Chapman Jr.; freebsd-gnats-submit@FreeBSD.org
> Subject: Re: ports/36139: [Maintainer Update] Update=20
> lang/nhc98 to 1.12, remove FORBIDDEN
>=20
>=20
> I am working on this.
>=20
> Simon,
>=20
> Can you please take a look at
>=20
>  http://bento.freebsd.org/errorlogs/5-latest/happy-1.11.log
>=20
> and give me a hint on how to fix this?
>=20
> Regards,
>          Olli
>=20
> * Simon Marlow <simonmar@microsoft.com> [2002-04-05 11:44]:
> > > If you could tell me what to do, I can try to build it on my=20
> > > -current box.
>=20
> > You should be able to do it like this:
>=20
> >   - You need to have GHC installed first (maybe use compat4x to
> >     get the port to build, or install compat4x and the 4.x package).
>=20
> >   - Grab the GHC source dist, unpack it,
>=20
> >   - create the file mk/build.mk with the single line "BIN_DIST=3D1".
>=20
> >   - ./configure && gmake && gmake binary-dist
>=20
> >   - if everything went well, you should have a directory ghc-5.02.2
> >     hanging off the top level of the source tree, containing=20
> >     a "binary distribution" ready for packing.  Delete everything
> >     that isn't also in the contents of=20
>=20
> > 		ghc-5.02.2-i386-unknown-freebsd-boot.tar.gz
>=20
> >     and pack it up.
>=20
> >   - you're done.  Send me (a link to) the package and I'll put it
> >     on haskell.org, maybe call it ...-freebsd5-boot.tar.gz.
>=20
> >   - fix the lang/ghc port to select the right bootstrap distribution
> >     depending on the host OS version.
>=20
> > Hope I haven't forgotten anything!  Let me know if it doesn't go
> > according to plan.
>=20
>=20
> --=20
> Department of Computing Science
> Federal Armed Forces University Munich
> http://ist.unibw-muenchen.de/People/obraun/
>=20
Comment 13 dwcjr 2002-04-14 00:54:22 UTC
Could you prove a link to the final patch for this?
Comment 14 obraun 2002-04-15 09:58:09 UTC
* David W. Chapman Jr. <dwcjr@inethouston.net> [2002-04-14 01:56]:
> Could you prove a link to the final patch for this?

Of course,

-> http://ist.unibw-muenchen.de/People/obraun/nhc98.diff

removed: files/patch-include::Array.hi
added:   files/patch-include::localmalloc.h
         files/patch-script::confhat
         files/patch-script::harch
         files/patch-src::hat::lib::Makefile
         scripts/pre-install

Regards,
         Olli
-- 
Department of Computing Science
Federal Armed Forces University Munich
http://ist.unibw-muenchen.de/People/obraun/
Comment 15 obraun 2002-04-18 14:42:47 UTC
David,

I have changed the diff once again to add the newest patch the nhc98
team provides.

Same location -> http://ist.unibw-muenchen.de/People/obraun/nhc98.diff

Regards,
         Olli
-- 
Department of Computing Science
Federal Armed Forces University Munich
http://ist.unibw-muenchen.de/People/obraun/
Comment 16 dwcjr freebsd_committer freebsd_triage 2002-05-08 17:57:57 UTC
State Changed
From-To: open->closed

Committed, thanks!