From 4f2ae6f52699dbd42db57502cc60c80eeadb443a Mon Sep 17 00:00:00 2001 From: Modestas Vainius Date: Sun, 19 Feb 2012 13:31:18 +0200 Subject: [PATCH] Properly detect mipsel as little endian architecture. Fixes FTBFS (patch mipsel_is_little_endian.diff). --- debian/changelog | 2 ++ debian/patches/mipsel_is_little_endian.diff | 26 +++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 29 insertions(+) create mode 100644 debian/patches/mipsel_is_little_endian.diff diff --git a/debian/changelog b/debian/changelog index 9a46e2d6f..13807b3cd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,7 @@ cmake (2.8.7-2) UNRELEASED; urgency=low + * Properly detect mipsel as little endian architecture. Fixes FTBFS (patch + mipsel_is_little_endian.diff). -- Modestas Vainius Sun, 19 Feb 2012 13:29:30 +0200 diff --git a/debian/patches/mipsel_is_little_endian.diff b/debian/patches/mipsel_is_little_endian.diff new file mode 100644 index 000000000..849131506 --- /dev/null +++ b/debian/patches/mipsel_is_little_endian.diff @@ -0,0 +1,26 @@ +From: Modestas Vainius +Subject: KWIML: detect little endian ABI on MIPSEL +Forwarded: yes +Bug: http://public.kitware.com/Bug/view.php?id=12982 +Last-Update: 2012-02-19 +Origin: vendor + +--- a/Utilities/KWIML/ABI.h.in ++++ b/Utilities/KWIML/ABI.h.in +@@ -380,7 +380,15 @@ suppression macro @KWIML@_ABI_NO_VERIFY + #elif defined(__m68k__) || defined(M68000) + # define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG + +-/* MIPS */ ++/* MIPSel (MIPS little endian) */ ++#elif defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) ++# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_LITTLE ++ ++/* MIPSeb (MIPS big endian) */ ++#elif defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) ++# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG ++ ++/* MIPS (fallback, big endian) */ + #elif defined(__mips) || defined(__mips__) || defined(__MIPS__) + # define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG + diff --git a/debian/patches/series b/debian/patches/series index a8d600845..5c0c782c9 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,3 +2,4 @@ FindBoost_add_-lpthread_#563479.diff multiarch_findgtk2_fix.diff support_cppflags.diff manpage_fixes.diff +mipsel_is_little_endian.diff