tags 427311 + patch thanks The output of ghc -E (the pre-processing phase) must have changed to add LINE pragmas. The ghcsym() function in script/confhc doesn't take this into account, so "{-# LINE 1 ghcsym.hs #-}\n" ends up in lib/debian/config. Given that __GLASGOW_HASKELL__ is always an integer according to http://www.haskell.org/ghc/docs/latest/html/users_guide/options-phases.html#c-pre-processor, I think that it's better to look for it specifically than to try to filter out everything else.
--- hmake-3.12.orig/script/confhc +++ hmake-3.12/script/confhc @@ -78,7 +78,7 @@ ghcsym () { echo __GLASGOW_HASKELL__ >ghcsym.hs; $1 -E -cpp -optP-P ghcsym.hs -o ghcsym.out; - grep -v '^#' ghcsym.out | grep -v '^$' > $2; + grep '^[0-9]\+$' ghcsym.out > $2; rm -f ghcsym.hs ghcsym.out; } echo -n " Looking for ghc... " -- Magnus Holmgren [EMAIL PROTECTED] (No Cc of list mail needed, thanks)
pgpMneRoXkQGo.pgp
Description: PGP signature