The following commit has been merged in the master branch:
commit f0ab99a4f80d3f6d84736bdb13a09402a8ba6c55
Author: Mehdi Dogguy <me...@debian.org>
Date:   Thu Jan 5 11:50:00 2012 +0100

    Build native library with debugging symbols

diff --git a/debian/changelog b/debian/changelog
index 49a0fda..c86a88e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+extlib (1.5.2-2) UNRELEASED; urgency=low
+
+  * Team upload.
+  * Update patch 0001-Compile-ocaml-objects-with-debugging-information.patch
+    to build native library with debugging symbols too (Closes: #649862)
+
+ -- Mehdi Dogguy <me...@debian.org>  Thu, 05 Jan 2012 11:48:51 +0100
+
 extlib (1.5.2-1) unstable; urgency=low
 
   * New upstream release
diff --git 
a/debian/patches/0001-Compile-ocaml-objects-with-debugging-information.patch 
b/debian/patches/0001-Compile-ocaml-objects-with-debugging-information.patch
index ed999d7..2a1dacf 100644
--- a/debian/patches/0001-Compile-ocaml-objects-with-debugging-information.patch
+++ b/debian/patches/0001-Compile-ocaml-objects-with-debugging-information.patch
@@ -3,14 +3,14 @@ Date: Mon, 15 Aug 2011 20:42:10 +0200
 Subject: Compile ocaml objects with debugging information
 
 ---
- install.ml |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
+ install.ml |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/install.ml b/install.ml
-index 193f683..39cb166 100644
+index 193f683..85396a8 100644
 --- a/install.ml
 +++ b/install.ml
-@@ -160,7 +160,7 @@ let install() =
+@@ -160,13 +160,13 @@ let install() =
        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
@@ -19,4 +19,11 @@ index 193f683..39cb166 100644
                run (sprintf "ocamlc -a -o extLib.cma %s extLib.ml" (m_list 
".cmo"));
                List.iter (fun m -> remove (m ^ ".cmo")) modules;
                remove "extLib.cmo";
+       end;
+       if !autonative then begin
+-              List.iter (fun m -> run (sprintf "ocamlopt -c %s.ml" m)) 
modules;
++              List.iter (fun m -> run (sprintf "ocamlopt -g -c %s.ml" m)) 
modules;
+               run (sprintf "ocamlopt -a -o extLib.cmxa %s extLib.ml" (m_list 
".cmx"));
+               List.iter (fun m -> remove (m ^ obj_ext)) modules;
+               remove ("extLib" ^ obj_ext);
 -- 

-- 
extlib packaging

_______________________________________________
Pkg-ocaml-maint-commits mailing list
Pkg-ocaml-maint-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits

Reply via email to