[DHG_packages] 01/01: ieee754: rename local versions of nextdown, nextdownf, nextup, nextupf

Clint Adams clint at moszumanska.debian.org
Thu Nov 3 21:12:24 UTC 2016


This is an automated email from the git hooks/post-receive script.

clint pushed a commit to branch master
in repository DHG_packages.

commit 2c98a2d44ed1cdb537032c2eb6a754ed0f5cdaf1
Author: Clint Adams <clint at debian.org>
Date:   Thu Nov 3 17:11:04 2016 -0400

    ieee754: rename local versions of nextdown, nextdownf, nextup, nextupf
---
 p/haskell-ieee754/debian/changelog                 |  8 +++
 .../debian/patches/rename-math-functions           | 69 ++++++++++++++++++++++
 p/haskell-ieee754/debian/patches/series            |  1 +
 3 files changed, 78 insertions(+)

diff --git a/p/haskell-ieee754/debian/changelog b/p/haskell-ieee754/debian/changelog
index 7d7033d..2b9c765 100644
--- a/p/haskell-ieee754/debian/changelog
+++ b/p/haskell-ieee754/debian/changelog
@@ -1,3 +1,11 @@
+haskell-ieee754 (0.7.8-4) unstable; urgency=medium
+
+  * Rename local versions of nextdown, nextdownf, nextup, nextupf,
+    because of prototype collision when building with
+    unregisterised GHC 8.0.
+
+ -- Clint Adams <clint at debian.org>  Thu, 03 Nov 2016 13:25:14 -0400
+
 haskell-ieee754 (0.7.8-3) unstable; urgency=medium
 
   * Upload to unstable as part of GHC 8 transition.
diff --git a/p/haskell-ieee754/debian/patches/rename-math-functions b/p/haskell-ieee754/debian/patches/rename-math-functions
new file mode 100644
index 0000000..629d9bb
--- /dev/null
+++ b/p/haskell-ieee754/debian/patches/rename-math-functions
@@ -0,0 +1,69 @@
+--- a/Numeric/IEEE.hs
++++ b/Numeric/IEEE.hs
+@@ -240,16 +240,16 @@
+ foreign import ccall unsafe "feqrelf"
+     c_feqrelf :: Float -> Float -> Int
+ 
+-foreign import ccall unsafe "nextup"
++foreign import ccall unsafe "hsi7_nextup"
+     c_nextup :: Double -> Double
+ 
+-foreign import ccall unsafe "nextupf"
++foreign import ccall unsafe "hsi7_nextupf"
+     c_nextupf :: Float -> Float
+ 
+-foreign import ccall unsafe "nextdown"
++foreign import ccall unsafe "hsi7_nextdown"
+     c_nextdown :: Double -> Double
+ 
+-foreign import ccall unsafe "nextdownf"
++foreign import ccall unsafe "hsi7_nextdownf"
+     c_nextdownf :: Float -> Float
+ 
+ foreign import ccall unsafe "ieeemean"
+--- a/cbits/double.c
++++ b/cbits/double.c
+@@ -41,7 +41,7 @@
+ 
+ /* ported from tango/math/IEEE.d */
+ double
+-nextup (double x)
++hsi7_nextup (double x)
+ {
+     union double_t ps = { x };
+ 
+@@ -64,9 +64,9 @@
+ 
+ /* ported from tango/math/IEEE.d */
+ double
+-nextdown (double x)
++hsi7_nextdown (double x)
+ {
+-    return -nextup(-x);
++    return -hsi7_nextup(-x);
+ }
+ 
+ /* ported from tango/math/IEEE.d */
+--- a/cbits/float.c
++++ b/cbits/float.c
+@@ -42,7 +42,7 @@
+ 
+ /* ported from tango/math/IEEE.d */
+ float
+-nextupf (float x)
++hsi7_nextupf (float x)
+ {
+     union float_t ps = { x };
+ 
+@@ -65,9 +65,9 @@
+ 
+ /* ported from tango/math/IEEE.d */
+ float
+-nextdownf (float x)
++hsi7_nextdownf (float x)
+ {
+-    return -nextupf(-x);
++    return -hsi7_nextupf(-x);
+ }
+ 
+ /* ported from tango/math/IEEE.d */
diff --git a/p/haskell-ieee754/debian/patches/series b/p/haskell-ieee754/debian/patches/series
new file mode 100644
index 0000000..6d32ee9
--- /dev/null
+++ b/p/haskell-ieee754/debian/patches/series
@@ -0,0 +1 @@
+rename-math-functions

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/DHG_packages.git



More information about the Pkg-haskell-commits mailing list