Patch configure to correctly detect sparc machines, and thus align doubles
authorJulien Cristau <julien.cristau@ens-lyon.org>
Tue, 3 Jan 2006 16:08:27 +0000 (16:08 +0000)
committerJulien Cristau <julien.cristau@ens-lyon.org>
Tue, 3 Jan 2006 16:08:27 +0000 (16:08 +0000)
on double-word boundaries (closes: #338437).

debian/changelog
debian/patches/sparc_needs_double_align.dpatch [new file with mode: 0644]

index 2cbf14fbe02d639f635faf570d6cc31478692ab4..fa0650c7ae13e8f5e94ec71d8e0c4d4fb9cf55af 100644 (file)
@@ -1,10 +1,15 @@
 ocaml (3.09.0-5) UNRELEASED; urgency=low
 
+  [ Samuel Mimram ]
   * NOT RELEASED YET
   * Removing possibly leftover /usr/lib/ocaml/ld.conf, closes: #300846.
   * Added a watch file.
 
- -- Samuel Mimram <smimram@debian.org>  Tue, 27 Dec 2005 13:40:07 +0100
+  [ Julien Cristau ]
+  * Patch configure to correctly detect sparc machines, and thus align doubles
+    on double-word boundaries (closes: #338437).
+
+ -- Julien Cristau <julien.cristau@ens-lyon.org>  Tue,  3 Jan 2006 17:04:52 +0100
 
 ocaml (3.09.0-4) unstable; urgency=low
 
diff --git a/debian/patches/sparc_needs_double_align.dpatch b/debian/patches/sparc_needs_double_align.dpatch
new file mode 100644 (file)
index 0000000..d089908
--- /dev/null
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## sparc_needs_double_align.dpatch
+##
+## DP: correctly detect sparc64 which needs to align doubles on double-word
+## DP: boundaries (bug#344615, upstream 3944)
+
+@DPATCH@
+
+--- ocaml-3.09.0.orig/configure        8 Nov 2005 14:00:23 -0000       1.229
++++ ocaml-3.09.0/configure     3 Jan 2006 15:52:10 -0000
+@@ -400,7 +400,7 @@
+ # Determine alignment constraints
+ case "$host" in
+-  sparc-*-*|hppa*-*-*)
++  sparc*-*-*|hppa*-*-*)
+     # On Sparc V9 with certain versions of gcc, determination of double
+     # alignment is not reliable (PR#1521), hence force it.
+     # Same goes for hppa.