Giuliano Procida <[EMAIL PROTECTED]> writes:
Hi Guiliano,
> I would like to package ghc for Debian. To do this properly, the make
> has to be automatable. ghc does not have a prominently displayed
> licence; is it under the GNU GPL?
For details about copying and distributing GHC, please contact our
Fearless Leader <[EMAIL PROTECTED]>.
> 1. You probably want to patch makeinfo (2.06) thusly:
>
> --- literate/info-utils/makeinfo.c~ Fri Jun 6 00:16:35 1997
> +++ literate/info-utils/makeinfo.c Thu Sep 18 16:47:58 1997
> @@ -6332,7 +6332,9 @@
>
> if (!find_and_load (filename))
> {
> -#ifndef __FreeBSD__
> +#if defined (__GLIBC__) && __GLIBC__ > 1
> +#warning fix makeinfo.c
> +#else
> extern char *sys_errlist[];
> #endif
> extern int errno, sys_nerr;
>
> (I'm fairly sure you can remove any reference to FreeBSD) and wait for
> the next version of makeinfo to fix this properly.
I don't think this will work with FreeBSD, which doesn't use GLIBC.
In any case, you're right that we need to do something more general
here.
> 2. autoconf; autoheader on my machine yields:
>
> /usr/bin/autoheader: Symbol `HAVE_ALTZONE' is not covered by
> /usr/lib/autoconf/acconfig.h
>
> and there was another one with 2.06 (TIME_TYPE I think). Is this a
> problem with not having a recent enough autoconf installed? I have:
> Autoconf version 2.12
I haven't seen this one; we have Autoconf 2.12 installed here too.
> 3. ./ghc/docs/users_guide/2-0{5,6}-notes.lit are missing and this
> causes problems
Yes, I know <sigh>
> 4. ./ghc/runtime/main/Signals.c moans about a missing caddr_t (not defined in
> sys/types unless I use -D__USE_BSD).
Ok, what's the correct fix? I guess you don't really want to #define
__USE_BSD.
> 5. With 2.06 some script tries to run mkdependHS-1.2, expecting to
> find it in my path!
Only if you are compiling with ghc-0.29. The mkdependHS that comes
with ghc-0.29 should be renamed to mkdependHS-1.2.
> 8. Is the -traditional argument really needed for cpp (mkdependC)?
Good question. I think it has some impact on how quoting is
interpreted, which is why we use it for hscpp, and mkdependC just uses
the same $(RAWCPP) as hscpp.
Is it causing you any problems?
> 9. At one point something tried to run ghc 0.29.
Could you be more specific? :)
Cheers,
Simon
--
Simon Marlow [EMAIL PROTECTED]
University of Glasgow http://www.dcs.gla.ac.uk/~simonm/
finger for PGP public key