ANNOUNCE: hat-2.00

Jens Petersen juhp@01.246.ne.jp
21 Jun 2002 02:05:45 +0900


Jens Petersen <petersen@redhat.com> writes:

> Malcolm Wallace <Malcolm.Wallace@cs.york.ac.uk> writes:
> 
> > We are pleased to announce a new release of Hat, the Haskell tracing
> > (an debugging) system for Haskell'98.

>         http://haskell.org/~petersen/rpms/i386/hat-2.00-1.i386.rpm

>         http://haskell.org/~petersen/rpms/i386/hat-doc-2.00-1.i386.rpm

>         http://haskell.org/~petersen/srpms/hat-2.00-1.src.rpm

Oh, FYI below is the patch I applied in order to be able to
package hat correctly.

I just added DESTDIR to onedir and stopped the ghc-pkg during
build time, since that needs to be done at package install
time (see hat.spec in the srpm).  Trivial stuff, but thought
you might like to know.

You're welcome to include hat.spec file in the distribution
if you wish (and the hmake one too in hmake).

Cheers, Jens


diff -u hat-2.00/script/confhat~ hat-2.00/script/confhat
--- hat-2.00/script/confhat~	Sun Jun 16 16:07:35 2002
+++ hat-2.00/script/confhat	Sun Jun 16 16:07:35 2002
@@ -18,7 +18,7 @@
 if [ -d lib/$MACHINE/hatlib/ghc ]
 then
   # discover ghc location
-  onedir=`grep ghc $HMAKERC | grep import | head -1 | cut -d'"' -f2`
+  onedir=$DESTDIR`grep ghc $HMAKERC | grep import | head -1 | cut -d'"' -f2`
   GHCINCDIR=`dirname $onedir`
   GHCLIBDIR=`dirname $GHCINCDIR`
   echo >&2 "Installing hat package for ghc under $GHCLIBDIR"
@@ -28,14 +28,14 @@
   if [ -d $GHCINCDIR/hat ]
   then
     cp -p lib/$MACHINE/hatlib/ghc/libHShat.a $GHCLIBDIR  && \
-    cp -p lib/$MACHINE/hatlib/ghc/*.hi $GHCINCDIR/hat  && \
-    { ghc-pkg --remove-package=hat || $TRUE; } && \
-    ghc-pkg --add-package <lib/$MACHINE/hatlib/ghc/hat-package.conf
+    cp -p lib/$MACHINE/hatlib/ghc/*.hi $GHCINCDIR/hat  # && \
+#    { ghc-pkg --remove-package=hat || $TRUE; } && \
+#    ghc-pkg --add-package <lib/$MACHINE/hatlib/ghc/hat-package.conf
   else
     mkdir $GHCINCDIR/hat  && \
     cp -p lib/$MACHINE/hatlib/ghc/libHShat.a $GHCLIBDIR  && \
-    cp -p lib/$MACHINE/hatlib/ghc/*.hi $GHCINCDIR/hat  && \
-    ghc-pkg --add-package <lib/$MACHINE/hatlib/ghc/hat-package.conf
+    cp -p lib/$MACHINE/hatlib/ghc/*.hi $GHCINCDIR/hat  # && \
+#    ghc-pkg --add-package <lib/$MACHINE/hatlib/ghc/hat-package.conf
   fi
 fi
 if [ -d lib/$MACHINE/hatlib/nhc98 ]