diff -Nru libhdf4-4.2.10/debian/changelog libhdf4-4.2.10/debian/changelog --- libhdf4-4.2.10/debian/changelog 2014-10-05 20:35:40.000000000 +0000 +++ libhdf4-4.2.10/debian/changelog 2014-10-10 23:13:42.000000000 +0000 @@ -1,3 +1,9 @@ +libhdf4 (4.2.10-2ppc64el2) UNRELEASED; urgency=medium + + * Fix endianness definition for ppc64el. + + -- Fernando Seiti Furusato Fri, 10 Oct 2014 23:13:28 +0000 + libhdf4 (4.2.10-2) unstable; urgency=medium * Add build-time checks diff -Nru libhdf4-4.2.10/debian/patches/ppc64el.patch libhdf4-4.2.10/debian/patches/ppc64el.patch --- libhdf4-4.2.10/debian/patches/ppc64el.patch 1970-01-01 00:00:00.000000000 +0000 +++ libhdf4-4.2.10/debian/patches/ppc64el.patch 2014-10-10 23:13:24.000000000 +0000 @@ -0,0 +1,22 @@ +Index: libhdf4-4.2.10/HDF4/mfhdf/libsrc/xdrposix.c +=================================================================== +--- libhdf4-4.2.10.orig/HDF4/mfhdf/libsrc/xdrposix.c 2014-10-05 20:35:40.000000000 +0000 ++++ libhdf4-4.2.10/HDF4/mfhdf/libsrc/xdrposix.c 2014-10-08 16:30:11.170013021 +0000 +@@ -431,7 +431,7 @@ + #endif + { + unsigned char *up = (unsigned char *)lp ; +-#if (defined AIX5L64 || defined __powerpc64__ || (defined __hpux && __LP64__)) ++#if (defined AIX5L64 || (defined __powerpc64__ && !defined __LITTLE_ENDIAN__) || defined __s390x__ || (defined __hpux && __LP64__)) + *lp = 0 ; + up += (sizeof(long) - 4) ; + #endif +@@ -458,7 +458,7 @@ + netlong mycopy = htonl(*lp); + up = (unsigned char *)&mycopy; + #endif +-#if (defined AIX5L64 || defined __powerpc64__ || (defined __hpux && __LP64__)) ++#if (defined AIX5L64 || (defined __powerpc64__ && !defined __LITTLE_ENDIAN__) || defined __s390x__ || (defined __hpux && __LP64__)) + up += (sizeof(long) - 4) ; + #endif + diff -Nru libhdf4-4.2.10/debian/patches/series libhdf4-4.2.10/debian/patches/series --- libhdf4-4.2.10/debian/patches/series 2014-10-05 20:35:40.000000000 +0000 +++ libhdf4-4.2.10/debian/patches/series 2014-10-10 23:11:55.000000000 +0000 @@ -10,4 +10,5 @@ install-examples.diff missing-includes.diff fix_string_literals.diff +ppc64el.patch