[nhc-bugs] Re: Error building hmake-3.00 in RH Linux with ghc-5.02.2

José Romildo Malaquias romildo@uber.com.br
Mon, 21 Jan 2002 21:50:59 -0200


On Mon, Jan 21, 2002 at 10:06:05PM +0000, Malcolm Wallace wrote:
> > There is a /usr/bin/ghc Bourne shell script:
> > 
> > 	#!/bin/sh
> > 	GHCBIN=3D"/usr/lib/ghc-5.02.2/ghc-5.02.2";
> > 	TOPDIROPT=3D"-B/usr/lib/ghc-5.02.2";
> > 	# Mini-driver for GHC
> > 	exec $GHCBIN $TOPDIROPT ${1+"$@"}
> 
> Thank you.  It would seem that this shell script is very different
> in RPM-versions of ghc than the standard tar distributions.  In
> particular, the regular expression 'libdir=.*' (which was supplied
> to me by the GHC team as a foolproof way of recognising import
> directories) is completely absent.
> 
> Here is a small patch to try to use the TOPDIROPT variable if the
> libdir test fails.  Can you let me know whether it works please?

It works. Thanks.

Romildo
-- 
Prof. José Romildo Malaquias               Departamento de Computação
http://iceb.ufop.br/~romildo       Universidade Federal de Ouro Preto
romildo@iceb.ufop.br                                           Brasil
romildo@uber.com.br