2
1

qt5base-0001-Fix-build-MIPS64-bigendian.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. qt5base: Fix build error on 64bit BigEndian platforms
  2. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
  3. From cea101bd10cc158b97d5fbf45b33dad9b649c08b Mon Sep 17 00:00:00 2001
  4. From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
  5. Date: Mon, 2 Dec 2013 13:59:34 +0000
  6. Subject: [PATCH] qtbase: Fix build error on 64bit BigEndian platforms
  7. The functions fromBytesToWord() and fromWordToBytes() are called when
  8. building on 64bit BigEndian platforms. It fails because those
  9. functions are disabled on the source code. Enabling those functions for
  10. 64bit BigEndian platforms fixes the problem.
  11. Task-number: QTBUG-35228
  12. Change-Id: I5ccacd4fb5051df05f67c8da879b3a9e49953861
  13. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
  14. Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
  15. Reviewed-by: Richard J. Moore <rich@kde.org>
  16. ---
  17. src/3rdparty/sha3/KeccakF-1600-opt64.c | 4 ++--
  18. 1 file changed, 2 insertions(+), 2 deletions(-)
  19. mode change 100755 => 100644 src/3rdparty/sha3/KeccakF-1600-opt64.c
  20. diff --git a/src/3rdparty/sha3/KeccakF-1600-opt64.c b/src/3rdparty/sha3/KeccakF-1600-opt64.c
  21. old mode 100755
  22. new mode 100644
  23. index 7bd442e..a547bb5
  24. --- a/src/3rdparty/sha3/KeccakF-1600-opt64.c
  25. +++ b/src/3rdparty/sha3/KeccakF-1600-opt64.c
  26. @@ -328,7 +328,7 @@ static void KeccakPermutation(unsigned char *state)
  27. KeccakPermutationOnWords((UINT64*)state);
  28. }
  29. -#if 0 // Unused in the Qt configuration
  30. +#if (PLATFORM_BYTE_ORDER == IS_BIG_ENDIAN)
  31. static void fromBytesToWord(UINT64 *word, const UINT8 *bytes)
  32. {
  33. unsigned int i;
  34. @@ -449,7 +449,7 @@ static void KeccakAbsorb(unsigned char *state, const unsigned char *data, unsign
  35. #endif
  36. }
  37. -#if 0 // Unused in the Qt configuration
  38. +#if (PLATFORM_BYTE_ORDER == IS_BIG_ENDIAN)
  39. static void fromWordToBytes(UINT8 *bytes, const UINT64 word)
  40. {
  41. unsigned int i;
  42. --
  43. 1.8.5.1