[Pkg-ocaml-maint-commits] [SCM] janest-core packaging branch, master, updated. debian/0.5.3-1-28-ge7c75ab

Stefano Zacchiroli zack at upsilon.cc
Thu Nov 12 10:31:57 UTC 2009


The following commit has been merged in the master branch:
commit e7c75ab9174c3d18abd87693b52228467cd42bf8
Author: Stefano Zacchiroli <zack at upsilon.cc>
Date:   Thu Nov 12 11:30:45 2009 +0100

    debian/README.Debian: document how to use thread support w/ Core

diff --git a/debian/README.Debian b/debian/README.Debian
index d9e0c4f..d4ee0a7 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -1,4 +1,56 @@
 
+Thread support with ocamlc and ocaml
+====================================
+
+Both Core and Core_extended require thread support. To enable it for programs
+you're building you can use findlib and pass -thread to ocamlc, e.g.:
+
+  $ ocamlfind ocamlc -thread -package core -libkpkg foo.ml
+
+To experiment with Core in the top-level you can use the #thread directive just
+before #require-ing Core, e.g.:
+
+  zack at usha:~$ ledit ocaml -init /dev/null
+          Objective Caml version 3.11.1
+
+  # #use "topfind";;
+  - : unit = ()
+  Findlib has been successfully loaded. Additional directives:
+    #require "package";;      to load a package
+    #list;;                   to list the available packages
+    #camlp4o;;                to load camlp4 (standard syntax)
+    #camlp4r;;                to load camlp4 (revised syntax)
+    #predicates "p,q,...";;   to set these predicates
+    Topfind.reset();;         to force that packages will be reloaded
+    #thread;;                 to enable threads
+
+  - : unit = ()
+  # #thread;;
+  /usr/lib/ocaml/threads: added to search path
+  /usr/lib/ocaml/unix.cma: loaded
+  /usr/lib/ocaml/threads/threads.cma: loaded
+  # #require "core";;
+  /usr/lib/ocaml/bigarray.cma: loaded
+  /usr/lib/ocaml/res: added to search path
+  /usr/lib/ocaml/res/res.cma: loaded
+  /usr/lib/ocaml/nums.cma: loaded
+  /usr/lib/ocaml/num-top: added to search path
+  /usr/lib/ocaml/num-top/num_top.cma: loaded
+  /usr/lib/ocaml/sexplib: added to search path
+  /usr/lib/ocaml/sexplib/sexplib.cma: loaded
+  /usr/lib/ocaml/sexplib/sexplib_top.cma: loaded
+  /usr/lib/ocaml/bin_prot: added to search path
+  /usr/lib/ocaml/bin_prot/bin_prot.cma: loaded
+  /usr/lib/ocaml/fieldslib: added to search path
+  /usr/lib/ocaml/fieldslib/fieldslib.cma: loaded
+  /usr/lib/ocaml/core: added to search path
+  /usr/lib/ocaml/core/core.cma: loaded
+  # open Core.Std;;
+  # 
+
+ -- Stefano Zacchiroli <zack at debian.org>, Thu, 12 Nov 2009 11:29:21 +0100
+
+
 bin_opt support not fully functional on all architectures
 =========================================================
 
@@ -21,8 +73,9 @@ http://caml.inria.fr/pub/ml-archives/caml-list/2008/05/296bd8cda27c408a793b3ec16
  -- Stefano Zacchiroli <zack at debian.org>  Sat, 19 Jul 2008 19:24:56 +0200
 
 
-Summary of "core" functionalities
-=================================
+
+Summary of Core functionalities
+===============================
 
 - Bag (set type with duplicates)
 - Bigbuffer (unlimited Buffer type)
diff --git a/debian/changelog b/debian/changelog
index a21e88f..cc53f85 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,8 @@ janest-core (0.6.0-1) unstable; urgency=low
   * debian/copyright:
     - bump copyright years
     - add MLton license, which applies to extended/union_find.ml
+  * debian/README.Debian: document the need of and how to use thread
+    support with Core (for newbies)
 
  -- Stefano Zacchiroli <zack at debian.org>  Thu, 12 Nov 2009 11:00:38 +0100
 

-- 
janest-core packaging



More information about the Pkg-ocaml-maint-commits mailing list