Package: lcms2
Severity: normal
Tags: patch
User: [email protected]
Usertags: ppc64el

Dear Maintainer,

The patch attached would fix the problem reported by Breno in
his last mail on https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745749
The error occurs due to use of incorrect preprocessor macros in 2.6-1.
Also in the patch, the code is simplified so there are less but suficient
endianness verifications that cover powerpc.
Thank you in advance.

Regards,
Fernando


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)

Kernel: Linux 3.13-1-powerpc64le (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: lcms2-2.6/include/lcms2.h
===================================================================
--- lcms2-2.6.orig/include/lcms2.h      2014-03-17 16:09:30.000000000 +0000
+++ lcms2-2.6/include/lcms2.h   2014-06-05 16:34:47.570000003 +0000
@@ -192,11 +192,9 @@

 #if defined(__powerpc__) || defined(__ppc__) || defined(TARGET_CPU_PPC)
 #   define CMS_USE_BIG_ENDIAN   1
-#   if defined (__GNUC__) && defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN)
-#       if __BYTE_ORDER  == __LITTLE_ENDIAN
+#   if defined (__GNUC__) && defined(__LITTLE_ENDIAN__)
 //	       // Don't use big endian for PowerPC little endian mode
 #		undef CMS_USE_BIG_ENDIAN
-#       endif
 #   endif
 #endif

Reply via email to