Package: libextlib-ocaml-dev
Version: 1.5-6
Severity: normal
Tags: patch

The bytecode files are currently compiled without debugging support.
This makes it hard to debug other code that might be called by it. Eg, a
function passed to List.iter.

Since the standard libraries are compiled with debugging support it
seems like it would make sense to do the same for others. Yes, it might
be slightly slower, but anyone who cares about speed will probably be
compiling native code anyways.

Here's a pretty trivial patch:

diff -ru extlib.orig/install.ml extlib-1.5/install.ml
--- extlib.orig/install.ml      2007-03-16 18:46:27.000000000 -0400
+++ extlib-1.5/install.ml       2007-03-16 18:47:41.000000000 -0400
@@ -160,7 +160,7 @@
        if !autodoc && not (Sys.file_exists doc_dir) then run (sprintf "mkdir 
%s" doc_dir);
        run (sprintf "ocamlc -c %s" (m_list ".mli"));
        if !autobyte then begin
-               List.iter (fun m -> run (sprintf "ocamlc -c %s.ml" m)) modules;
+               List.iter (fun m -> run (sprintf "ocamlc -g -c %s.ml" m)) 
modules;
                run (sprintf "ocamlc -a -o extLib.cma %s extLib.ml" (m_list 
".cmo"));
                List.iter (fun m -> remove (m ^ ".cmo")) modules;
                remove "extLib.cmo";




-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages libextlib-ocaml-dev depends on:
ii  ocaml-findlib                 1.1.2pl1-1 Management tool for OCaml programm
ii  ocaml-nox [ocaml-nox-3.09.2]  3.09.2-9   ML language implementation with a 

libextlib-ocaml-dev recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to