[Pkg-ocaml-maint-commits] r1406 - in trunk/packages/ocaml/trunk/debian: . patches

Julien Cristau jcristau-guest@costa.debian.org
Mon, 20 Jun 2005 18:18:02 +0000


Author: jcristau-guest
Date: 2005-06-20 18:18:02 +0000 (Mon, 20 Jun 2005)
New Revision: 1406

Added:
   trunk/packages/ocaml/trunk/debian/patches/fix_i386_gcc4_build.dpatch
Modified:
   trunk/packages/ocaml/trunk/debian/changelog
   trunk/packages/ocaml/trunk/debian/patches/00list
   trunk/packages/ocaml/trunk/debian/patches/asmcomp_amd64_emit.mlp.dpatch
Log:
Add new patch fix_i386_gcc4_build taken from Fedora to fix inline assembly in
the num library and allow building on i386 with gcc-4.0 (Closes: #309317).


Modified: trunk/packages/ocaml/trunk/debian/changelog
===================================================================
--- trunk/packages/ocaml/trunk/debian/changelog	2005-06-20 18:05:21 UTC (rev 1405)
+++ trunk/packages/ocaml/trunk/debian/changelog	2005-06-20 18:18:02 UTC (rev 1406)
@@ -8,8 +8,10 @@
     generation on amd64 (reported by John Skaller).
   * debian/control: Add a dependency on emacsen-common, because this is needed
     to install the caml emacs mode in ocaml-nox (Closes: #312618).
+  * Add patch from Fedora to fix inline i386 assembly in the num library
+    to allow building ocaml with gcc-4.0 (Closes: #309317).
 
- -- Julien Cristau <julien.cristau@ens-lyon.org>  Mon, 20 Jun 2005 19:58:32 +0200
+ -- Julien Cristau <julien.cristau@ens-lyon.org>  Mon, 20 Jun 2005 20:13:17 +0200
 
 ocaml (3.08.3-3) unstable; urgency=medium
 

Modified: trunk/packages/ocaml/trunk/debian/patches/00list
===================================================================
--- trunk/packages/ocaml/trunk/debian/patches/00list	2005-06-20 18:05:21 UTC (rev 1405)
+++ trunk/packages/ocaml/trunk/debian/patches/00list	2005-06-20 18:18:02 UTC (rev 1406)
@@ -2,3 +2,4 @@
 objinfo
 man-ocamlmklib
 asmcomp_amd64_emit.mlp
+fix_i386_gcc4_build

Modified: trunk/packages/ocaml/trunk/debian/patches/asmcomp_amd64_emit.mlp.dpatch
===================================================================
--- trunk/packages/ocaml/trunk/debian/patches/asmcomp_amd64_emit.mlp.dpatch	2005-06-20 18:05:21 UTC (rev 1405)
+++ trunk/packages/ocaml/trunk/debian/patches/asmcomp_amd64_emit.mlp.dpatch	2005-06-20 18:18:02 UTC (rev 1406)
@@ -6,8 +6,8 @@
 
 @DPATCH@
 diff -urNad ocaml-3.08.3.orig/asmcomp/amd64/emit.mlp ocaml-3.08.3/asmcomp/amd64/emit.mlp
---- ocaml-3.08.3/asmcomp/amd64/emit.mlp	2004-07-01 18:09:03.000000000 +0200
-+++ /tmp/dpep.7xGPae/ocaml-3.08.3/asmcomp/amd64/emit.mlp	2005-06-14 03:08:25.481518269 +0200
+--- ocaml-3.08.3.orig/asmcomp/amd64/emit.mlp	2004-07-01 18:09:03.000000000 +0200
++++ ocaml-3.08.3/asmcomp/amd64/emit.mlp	2005-06-14 03:08:25.481518269 +0200
 @@ -10,7 +10,7 @@
  (*                                                                     *)
  (***********************************************************************)

Added: trunk/packages/ocaml/trunk/debian/patches/fix_i386_gcc4_build.dpatch
===================================================================
--- trunk/packages/ocaml/trunk/debian/patches/fix_i386_gcc4_build.dpatch	2005-06-20 18:05:21 UTC (rev 1405)
+++ trunk/packages/ocaml/trunk/debian/patches/fix_i386_gcc4_build.dpatch	2005-06-20 18:18:02 UTC (rev 1406)
@@ -0,0 +1,29 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## fix_i386_gcc4_build.dpatch by Julien Cristau <julien.cristau@ens-lyon.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Patch from Fedora to fix build on i386 with gcc4.
+## DP: http://cvs.fedora.redhat.com/viewcvs/devel/ocaml/ocaml-num-gcc4.patch?root=extras&rev=1.1&view=markup
+
+@DPATCH@
+diff -urNad ocaml-3.08.3.orig/otherlibs/num/bng_ia32.c ocaml-3.08.3/otherlibs/num/bng_ia32.c
+--- ocaml-3.08.3.orig/otherlibs/num/bng_ia32.c	2003-10-26 10:51:11.000000000 +0100
++++ ocaml-3.08.3/otherlibs/num/bng_ia32.c	2005-06-20 17:34:10.015173470 +0200
+@@ -121,7 +121,7 @@
+         "leal 4(%1), %1 \n\t"
+         "decl %2 \n\t"
+         "jnz 1b"
+-        : "+&r" (a), "+&r" (b), "+&rm" (blen), "+&r" (out)
++        : "+&r" (a), "+&r" (b), "+m" (blen), "+&r" (out)
+         : "rm" (d)
+         : "eax", "edx");
+   }
+@@ -164,7 +164,7 @@
+         "leal 4(%1), %1 \n\t"
+         "decl %2 \n\t"
+         "jnz 1b"
+-        : "+&r" (a), "+&r" (b), "+&rm" (blen), "+&rm" (out), "=&r" (tmp)
++        : "+&r" (a), "+&r" (b), "+m" (blen), "+m" (out), "=&r" (tmp)
+         : "rm" (d)
+         : "eax", "edx");
+   }


Property changes on: trunk/packages/ocaml/trunk/debian/patches/fix_i386_gcc4_build.dpatch
___________________________________________________________________
Name: svn:executable
   + *