Package: ocaml-bitstring Version: 2.0.0-5 Severity: grave Tags: patch Justification: renders package unusable
When I use the bitmatch syntax provided by the bitstring library, compiling my code always fails with Parse error: ":" expected after [patt] (in [patt_field]) The same happens when using the source package and trying to compile the examples, so it is not an error of usage. It turns out that the Fedora folks also had this issue, they included a patch which I'll attach here that fixes the problem (taken directly from the Fedora CVS). I checked out the debian source package from git, added the patch and rebuilt - applied perfectly and the package worked flawlessly. So this seems to be a general upstream error and this patch is necessary until upstream releases a fixed version. regards, Marek -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.30-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
--- ocaml-bitstring-2.0.0.orig/pa_bitstring.ml 2008-10-17 09:53:25.000000000 +0100 +++ ocaml-bitstring-2.0.0/pa_bitstring.ml 2008-11-20 18:10:27.000000000 +0000 @@ -1123,6 +1123,10 @@ fields = LIST0 patt_field SEP ";"; "}" -> List.concat fields + | "{"; + "_"; + "}" -> + [] ] ];