Hello community, here is the log from the commit of package hdf for openSUSE:Factory checked in at 2018-03-19 23:38:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/hdf (Old) and /work/SRC/openSUSE:Factory/.hdf.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hdf" Mon Mar 19 23:38:42 2018 rev:10 rq:588449 version:4.2.11 Changes: -------- --- /work/SRC/openSUSE:Factory/hdf/hdf.changes 2017-11-21 15:20:11.355704775 +0100 +++ /work/SRC/openSUSE:Factory/.hdf.new/hdf.changes 2018-03-19 23:38:44.788556268 +0100 @@ -1,0 +2,6 @@ +Sat Mar 17 11:56:20 CET 2018 - [email protected] + +- add hdf-ppc64le.patch (bsc#1085754) + properly detect ppc64le as a little endian platform + +------------------------------------------------------------------- New: ---- hdf-ppc64le.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hdf.spec ++++++ --- /var/tmp/diff_new_pack.SJKypy/_old 2018-03-19 23:38:46.072509951 +0100 +++ /var/tmp/diff_new_pack.SJKypy/_new 2018-03-19 23:38:46.076509806 +0100 @@ -1,7 +1,7 @@ # # spec file for package hdf # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -52,6 +52,7 @@ Patch12: hdf-s390.patch # The test for fortestF is failing, causing buildfailures for different platforms. Disable for now. Patch13: hdf-disable-fortestF.patch +Patch14: hdf-ppc64le.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: bison BuildRequires: bzip2 @@ -392,6 +393,7 @@ %patch11 -p1 %patch12 -p0 %patch13 -p1 +%patch14 -p1 for mpi in %_mpi; do ++++++ hdf-ppc64le.patch ++++++ --- hdf-4.2.11/hdf/src/hdfi.h 2018/03/17 10:41:43 1.1 +++ hdf-4.2.11/hdf/src/hdfi.h 2018/03/17 10:54:24 @@ -931,7 +931,11 @@ #include <sys/file.h> /* for unbuffered i/o stuff */ #include <sys/stat.h> +#if defined(__LITTLE_ENDIAN__) +#define DF_MT DFMT_LINUX64 +#else #define DF_MT DFMT_POWERPC64 +#endif typedef void VOID; typedef void *VOIDP; typedef char *_fcd; @@ -955,6 +959,10 @@ #define _fcdtocp(desc) (desc) #define FILELIB UNIXBUFIO +#ifndef BIG_LONGS +#define BIG_LONGS +#endif + /* JPEG #define's - Look in the JPEG docs before changing - (Q) */ /* Determine the memory manager we are going to use. Valid values are: */ --- hdf-4.2.11/mfhdf/libsrc/xdrposix.c 2018/03/17 11:02:34 1.1 +++ hdf-4.2.11/mfhdf/libsrc/xdrposix.c 2018/03/17 11:04:16 @@ -435,7 +435,7 @@ #endif { unsigned char *up = (unsigned char *)lp ; -#if (defined AIX5L64 || defined __powerpc64__ || defined __s390x__ || (defined __hpux && __LP64__)) +#if (defined AIX5L64 || (defined __powerpc64__ && __BIG_ENDIAN__) || defined __s390x__ || (defined __hpux && __LP64__)) *lp = 0 ; up += (sizeof(long) - 4) ; #endif @@ -462,7 +462,7 @@ netlong mycopy = htonl(*lp); up = (unsigned char *)&mycopy; #endif -#if (defined AIX5L64 || defined __powerpc64__ || defined __s390x__ || (defined __hpux && __LP64__)) +#if (defined AIX5L64 || (defined __powerpc64__ && __BIG_ENDIAN__) || defined __s390x__ || (defined __hpux && __LP64__)) up += (sizeof(long) - 4) ; #endif --- hdf-4.2.11/hdf/src/hconv.h 2018/03/17 11:28:46 1.1 +++ hdf-4.2.11/hdf/src/hconv.h 2018/03/17 11:29:35 @@ -59,7 +59,7 @@ /* CONSTANT DEFINITIONS */ /*****************************************************************************/ /* Generally Big-Endian machines */ -#if !defined(INTEL86) && !defined(MIPSEL) && !defined(DEC_ALPHA) && !defined(I860) && !defined(SUN386) && !(defined(__ia64) && !(defined(hpux) || defined(__hpux))) && !defined(__x86_64__) && !defined(__arm__) && !defined __aarch64__ +#if !defined(INTEL86) && !defined(MIPSEL) && !defined(DEC_ALPHA) && !defined(I860) && !defined(SUN386) && !(defined(__ia64) && !(defined(hpux) || defined(__hpux))) && !defined(__x86_64__) && !defined(__arm__) && !defined __aarch64__ && !(defined(__powerpc__) && defined(__LITTLE_ENDIAN__)) # define UI8_IN DFKnb1b /* Unsigned Integer, 8 bits */ # define UI8_OUT DFKnb1b # define SI16_IN DFKnb2b /* S = Signed */
