Package: cfitsio3 Version: 3.340-2 Severity: normal Tags: patch User: [email protected] Usertags: origin-ubuntu ubuntu-patch trusty
This patch adds support for the arm64 architecture. It would be nice if this package would fail to build if it ends up with wrong byteswapping / word size rather than apparently building successfully but then failing later (in my case, when trying to build wcslib). Isn't there some test program that could be run at build time? * Handle 64-bit ARM. diff -Nru cfitsio3-3.340/debian/patches/arm64.patch cfitsio3-3.340/debian/patches/arm64.patch --- cfitsio3-3.340/debian/patches/arm64.patch 1970-01-01 01:00:00.000000000 +0100 +++ cfitsio3-3.340/debian/patches/arm64.patch 2013-12-31 16:25:17.000000000 +0000 @@ -0,0 +1,21 @@ +Description: Handle 64-bit ARM +Author: Colin Watson <[email protected]> +Forwarded: no +Last-Update: 2013-12-31 + +Index: b/fitsio2.h +=================================================================== +--- a/fitsio2.h ++++ b/fitsio2.h +@@ -136,6 +136,11 @@ + # error "can't handle long size given by _MIPS_SZLONG" + # endif + ++#elif defined(__aarch64__) ++ ++#define BYTESWAPPED TRUE ++#define LONGSIZE 64 ++ + /* ============================================================== */ + /* the following are all 32-bit byteswapped platforms */ + diff -Nru cfitsio3-3.340/debian/patches/series cfitsio3-3.340/debian/patches/series --- cfitsio3-3.340/debian/patches/series 2012-06-03 01:12:20.000000000 +0100 +++ cfitsio3-3.340/debian/patches/series 2013-12-31 16:23:56.000000000 +0000 @@ -7,3 +7,4 @@ 07-dont-export-constants.patch 08-fits_compress_img.patch 09-off_t.diff +arm64.patch Thanks, -- Colin Watson [[email protected]] -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

