Your message dated Sat, 17 Dec 2011 23:40:31 +0100
with message-id <1324161631.3684.23.camel@kirk>
has caused the report #652507,
regarding c2hs: fails reading its own intermediate representation (.chi)
to be marked as having been forwarded to the upstream software
author(s) [email protected]
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
652507: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652507
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Dear c2hs hackers,
I have received the attached bugreport and patch against the c2hs
package. (And I hope your mailling list allows non-subscribers to post.)
Greetings,
Joachim
-------- Weitergeleitete Nachricht --------
Von: Dafydd Harries <[email protected]>
Reply-to: Dafydd Harries <[email protected]>, [email protected]
An: Debian Bug Tracking System <[email protected]>
Betreff: [Pkg-haskell-maintainers] Bug#652507: c2hs: fails reading its
own intermediate representation (.chi)
Datum: Sat, 17 Dec 2011 17:21:10 -0500
Package: c2hs
Version: 0.16.3-2
Severity: important
Tags: upstream patch
c2hs uses shown Language.C data structures as an intermediate
representation (the .chi files), and has its own code for parsing
them. It seems that Language.C has changed its Show instance for
lexemes, and c2hs can no longer parse its own .chi files.
The symptom for me is that "cabal build" fails with the following
error message:
c2hs: Prelude.read: no parse
Patch attached.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages c2hs depends on:
ii libc6 2.13-23
ii libffi5 3.0.10-3
ii libgmp10 2:5.0.2+dfsg-2
c2hs recommends no packages.
c2hs suggests no packages.
-- no debconf information
_______________________________________________
Pkg-haskell-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-haskell-maintainers
--
Joachim "nomeata" Breitner
Debian Developer
[email protected] | ICQ# 74513189 | GPG-Keyid: 4743206C
JID: [email protected] | http://people.debian.org/~nomeata
diff -ur c2hs-0.16.3/src/C2HS/Gen/Monad.hs c2hs-0.16.3.blegh/src/C2HS/Gen/Monad.hs
--- c2hs-0.16.3/src/C2HS/Gen/Monad.hs 2011-03-24 09:04:59.000000000 -0400
+++ c2hs-0.16.3.blegh/src/C2HS/Gen/Monad.hs 2011-12-10 11:13:54.000000000 -0500
@@ -212,6 +212,11 @@
-}
-- super kludgy (depends on Show instance of Ident)
instance Read Ident where
+ readsPrec _ ('"':lexeme) = let (ideChars, rest) = span (/= '"') lexeme
+ in
+ if null ideChars
+ then []
+ else [(internalIdent ideChars, tail rest)]
readsPrec _ ('`':lexeme) = let (ideChars, rest) = span (/= '\'') lexeme
in
if null ideChars
signature.asc
Description: This is a digitally signed message part
--- End Message ---