[Pkg-ocaml-maint-commits] [SCM] coq packaging branch, master, updated. debian/8.2.pl1+dfsg-2-4-gd8e2663

Stephane Glondu steph at glondu.net
Sat Aug 29 15:53:02 UTC 2009


The following commit has been merged in the master branch:
commit 52af446e4104d711a4fce53438b4bd29920a5e3d
Author: Stephane Glondu <steph at glondu.net>
Date:   Sat Aug 29 16:36:44 2009 +0200

    Add 0001-Update-for-why-2.19.patch

diff --git a/debian/patches/0001-Update-for-why-2.19.patch b/debian/patches/0001-Update-for-why-2.19.patch
new file mode 100644
index 0000000..fc6ab68
--- /dev/null
+++ b/debian/patches/0001-Update-for-why-2.19.patch
@@ -0,0 +1,91 @@
+From: Stephane Glondu <steph at glondu.net>
+Date: Sat, 29 Aug 2009 16:35:56 +0200
+Subject: [PATCH] Update for why 2.19
+
+Patch taken from upstream SVN.
+
+Signed-off-by: Stephane Glondu <steph at glondu.net>
+---
+ contrib/dp/dp.ml |   18 +++++++++---------
+ 1 files changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/contrib/dp/dp.ml b/contrib/dp/dp.ml
+index 79ffaf3..d880384 100644
+--- a/contrib/dp/dp.ml
++++ b/contrib/dp/dp.ml
+@@ -701,7 +701,7 @@ let file_contents f =
+ let timeout_sys_command cmd =
+   if !debug then Format.eprintf "command line: %s at ." cmd;
+   let out = Filename.temp_file "out" "" in
+-  let cmd = sprintf "cpulimit %d %s > %s 2>&1" !timeout cmd out in
++  let cmd = sprintf "why-cpulimit %d %s > %s 2>&1" !timeout cmd out in
+   let ret = Sys.command cmd in
+   if !debug then 
+     Format.eprintf "Output file %s:@.%s at ." out (file_contents out);
+@@ -731,12 +731,12 @@ let why_files f = String.concat " " (!prelude_files @ [f])
+ 
+ let call_simplify fwhy =
+   let cmd = 
+-    sprintf "why --no-arrays --simplify --encoding sstrat %s" (why_files fwhy) 
++    sprintf "why --simplify %s" (why_files fwhy)
+   in
+   if Sys.command cmd <> 0 then error ("call to " ^ cmd ^ " failed");
+   let fsx = Filename.chop_suffix fwhy ".why" ^ "_why.sx" in
+   let cmd = 
+-    sprintf "timeout %d Simplify %s > out 2>&1 && grep -q -w Valid out" 
++    sprintf "why-cpulimit %d Simplify %s > out 2>&1 && grep -q -w Valid out"
+       !timeout fsx
+   in
+   let out = Sys.command cmd in
+@@ -747,7 +747,7 @@ let call_simplify fwhy =
+   r
+ 
+ let call_ergo fwhy =
+-  let cmd = sprintf "why --no-arrays --why %s" (why_files fwhy) in
++  let cmd = sprintf "why --alt-ergo %s" (why_files fwhy) in
+   if Sys.command cmd <> 0 then error ("call to " ^ cmd ^ " failed");
+   let fwhy = Filename.chop_suffix fwhy ".why" ^ "_why.why" in
+   let ftrace = Filename.temp_file "ergo_trace" "" in
+@@ -797,12 +797,12 @@ let call_zenon fwhy =
+ 
+ let call_yices fwhy =
+   let cmd = 
+-    sprintf "why --no-arrays -smtlib --encoding sstrat %s" (why_files fwhy)
++    sprintf "why -smtlib --encoding sstrat %s" (why_files fwhy)
+   in
+   if Sys.command cmd <> 0 then error ("call to " ^ cmd ^ " failed");
+   let fsmt = Filename.chop_suffix fwhy ".why" ^ "_why.smt" in
+   let cmd = 
+-    sprintf "timeout %d yices -pc 0 -smt < %s > out 2>&1 && grep -q -w unsat out" 
++    sprintf "why-cpulimit %d yices -pc 0 -smt %s > out 2>&1 && grep -q -w unsat out"
+       !timeout fsmt
+   in
+   let out = Sys.command cmd in
+@@ -814,7 +814,7 @@ let call_yices fwhy =
+ 
+ let call_cvcl fwhy =
+   let cmd = 
+-    sprintf "why --no-arrays --cvcl --encoding sstrat %s" (why_files fwhy)
++    sprintf "why --cvcl --encoding sstrat %s" (why_files fwhy)
+   in
+   if Sys.command cmd <> 0 then error ("call to " ^ cmd ^ " failed");
+   let fcvc = Filename.chop_suffix fwhy ".why" ^ "_why.cvc" in
+@@ -831,7 +831,7 @@ let call_cvcl fwhy =
+ 
+ let call_harvey fwhy =
+   let cmd = 
+-    sprintf "why --no-arrays --harvey --encoding strat %s" (why_files fwhy)
++    sprintf "why --harvey --encoding strat %s" (why_files fwhy)
+   in
+   if Sys.command cmd <> 0 then error ("call to " ^ cmd ^ " failed");
+   let frv = Filename.chop_suffix fwhy ".why" ^ "_why.rv" in
+@@ -856,7 +856,7 @@ let call_harvey fwhy =
+   r
+ 
+ let call_gwhy fwhy =
+-  let cmd = sprintf "gwhy --no-arrays  %s" (why_files fwhy) in
++  let cmd = sprintf "gwhy %s" (why_files fwhy) in
+   if Sys.command cmd <> 0 then ignore (Sys.command (sprintf "emacs %s" fwhy));
+   NoAnswer
+ 
+-- 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1693a78
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Update-for-why-2.19.patch

-- 
coq packaging



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