[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#699495: ocamldsort breaks with recent versions of ocamldep



Package: ocamldsort
Version: 0.15.0-2
Severity: grave
Justification: renders package unusable


the 4.00 release of OCaml comes with a version of ocamldep that outputs dependency lines of the
form

  foo : bar baz

instead of the old

  foo: bar baz

Since the parser in ocamldsort is not expecting the extra blanks before the colon, it gets stymied,
and outputs a puzzling error message like

Error: what kind of file foo.cmx  is?

The fix is easy in dep_parse.ml

--- dep_parse.ml        2010-08-02 01:10:03.000000000 +0200
+++ /home/dicosmo/ocamldsort-0.15.0/dep_parse.ml        2013-02-01 00:41:04.000000000 +0100
@@ -41,6 +41,7 @@
 
 let rec parse_target = parser
   | [< '':' >] -> ""
+  | [< '' '; _ = parse_target >] -> ""
 | [< 'a;  n = parse_target >] -> concat a n
 
 let rec parse_ocamldep stream =

Please forward upstream, as this is a general issue.

-- System Information:
Debian Release: 6.0.1
  APT prefers testing
  APT policy: (760, 'testing'), (700, 'stable'), (600, 'unstable'), (550, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ocamldsort depends on:
ii  libc6                         2.13-35    Embedded GNU C Library: Shared lib

ocamldsort recommends no packages.

ocamldsort suggests no packages.

-- no debconf information


Reply to: