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

Bug#661775: FTBFS with ocamlnet 3.5.1



Package: src:approx
Version: 3.5-1
Severity: serious
Tags: patch

Hello,

approx fails to build from source with ocamlnet 3.5.1:

> /usr/bin/ocamlopt -c -warn-error A -I +netstring -o url.cmx url.ml
> + /usr/bin/ocamlopt -c -warn-error A -I +netstring -o url.cmx url.ml
> File "url.ml", line 1, characters 0-1:
> Error: The implementation url.ml does not match the interface url.cmi:
>        Values do not match:
>          val time_of_string : ?localzone:bool -> string -> float
>        is not included in
>          val time_of_string : string -> float
> Command exited with code 2.
> make[1]: *** [approx] Error 10
> make[1]: Leaving directory `/tmp/approx-5.1'
> dh_auto_build: make -j1 returned exit code 2
> make: *** [build] Error 2
> dpkg-buildpackage: error: debian/rules build gave error exit status 2

An obvious patch fixes that...


Cheers,

-- 
Stéphane


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- approx-5.1.orig/url.ml
+++ approx-5.1/url.ml
@@ -9,7 +9,7 @@ open Util
 let string_of_time t =
   Netdate.format ~fmt: "%a, %d %b %Y %T GMT" (Netdate.create ~zone: 0 t)
 
-let time_of_string = Netdate.parse_epoch ?zone: None
+let time_of_string x = Netdate.parse_epoch ?zone: None x
 
 let translate_request url =
   let path = relative_url url in

Reply to: