Bug#764500: erlang-jiffy: FTBFS on arm64

2015-02-15 Thread Artur Rona

In Ubuntu, we've applied the attached patch to achieve the following:

  * debian/patches/arm64-support.patch:
- Add ARM 64 support.

We thought you might be interested in doing the same.
diff -Nru erlang-jiffy-0.8.5+dfsg/debian/patches/arm64-support.patch 
erlang-jiffy-0.8.5+dfsg/debian/patches/arm64-support.patch
--- erlang-jiffy-0.8.5+dfsg/debian/patches/arm64-support.patch  1970-01-01 
01:00:00.0 +0100
+++ erlang-jiffy-0.8.5+dfsg/debian/patches/arm64-support.patch  2015-02-15 
23:59:11.0 +0100
@@ -0,0 +1,18 @@
+From: Artur Rona ari-tc...@ubuntu.com
+Description: Add ARM 64 support. 
+Bug-Debian: http://bugs.debian.org/764500
+Origin: upstream, 
https://github.com/vitaut/double-conversion/commit/86c52dab02836843e9e32793768ec5b9b3401049
+
https://code.google.com/p/double-conversion/source/detail?r=4e24bb31bcc76d6d218f3056b4c24a109d367561
+
+--- erlang-jiffy-0.8.5+dfsg.orig/c_src/double-conversion/utils.h
 erlang-jiffy-0.8.5+dfsg/c_src/double-conversion/utils.h
+@@ -58,7 +58,8 @@
+ defined(__mips__) || defined(__powerpc__) || \
+ defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
+ defined(__SH4__) || defined(__alpha__) || \
+-defined(_MIPS_ARCH_MIPS32R2)
++defined(_MIPS_ARCH_MIPS32R2) || \
++defined(__AARCH64EL__)
+ #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
+ #elif defined(_M_IX86) || defined(__i386__) || defined(__i386)
+ #if defined(_WIN32)
diff -Nru erlang-jiffy-0.8.5+dfsg/debian/patches/series 
erlang-jiffy-0.8.5+dfsg/debian/patches/series
--- erlang-jiffy-0.8.5+dfsg/debian/patches/series   2013-10-11 
06:11:54.0 +0200
+++ erlang-jiffy-0.8.5+dfsg/debian/patches/series   2015-02-16 
00:28:58.0 +0100
@@ -2,3 +2,4 @@
 fix_makefile
 remove_git_clean
 change_optimize
+arm64-support.patch


Bug#764500: erlang-jiffy: FTBFS on arm64

2014-10-08 Thread Edmund Grimley Evans
Source: erlang-jiffy
Version: 0.8.5+dfsg-1

It didn't build on arm64:

https://buildd.debian.org/status/package.php?p=erlang-jiffysuite=sid

The error was:

c_src/double-conversion/utils.h:71:2: error: #error Target
architecture was not detected as supported by Double-Conversion.
 #error Target architecture was not detected as supported by Double-Conversion.
  ^

Assuming you don't want to turn this into an automatic configure test,
you could just add defined(__aarch64__) to the long list of tests in
lines 55-61 of c_src/double-conversion/utils.h.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org