Package: cfitsio3 Version: 3.340-2 Severity: normal Tags: patch User: [email protected] Usertags: origin-ubuntu ubuntu-patch trusty
Like some others, the PPC64 CPU can be used in either big- or little-endian modes (see e.g. http://lists.debian.org/debian-powerpc/2013/09/msg00045.html). This patch adds support for little-endian mode. * Handle little-endian PowerPC64. diff -Nru cfitsio3-3.340/debian/patches/ppc64el.patch cfitsio3-3.340/debian/patches/ppc64el.patch --- cfitsio3-3.340/debian/patches/ppc64el.patch 1970-01-01 01:00:00.000000000 +0100 +++ cfitsio3-3.340/debian/patches/ppc64el.patch 2013-12-30 17:21:26.000000000 +0000 @@ -0,0 +1,25 @@ +Description: Handle little-endian PowerPC64 +Author: Colin Watson <[email protected]> +Forwarded: no +Last-Update: 2013-12-30 + +Index: b/fitsio2.h +=================================================================== +--- a/fitsio2.h ++++ b/fitsio2.h +@@ -107,7 +107,15 @@ + + #elif defined(__powerpc64__) || defined(__64BIT__) /* IBM 64-bit AIX powerpc*/ + /* could also test for __ppc64__ or __PPC64 */ ++ ++/* powerpc CPU can be used in both little and big endian modes */ ++ ++#if defined(__LITTLE_ENDIAN__) ++#define BYTESWAPPED TRUE ++#else + #define BYTESWAPPED FALSE ++#endif ++ + #define MACHINE NATIVE + #define LONGSIZE 64 + 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-30 17:08:25.000000000 +0000 @@ -7,3 +7,4 @@ 07-dont-export-constants.patch 08-fits_compress_img.patch 09-off_t.diff +ppc64el.patch Thanks, -- Colin Watson [[email protected]] -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

