Package: haskell-ieee754 Version:0.7.3-3 Severity: serious Tags: sid + patch User: [email protected] Usertags: mips-patch
Hello, Package haskell-ieee754 is reason why package haskell-hastache is FTBFS on big-endian. I have attached a patch for this issue. With this patch applied to package haskell-ieee754 I was able to build package haskell-hastache on mips big-endian successfully. Upstream issue: https://github.com/lymar/hastache/issues/36# Thank you! Regards, Jurica
--- haskell-ieee754-0.7.3.orig/cbits/feqrel_source.c +++ haskell-ieee754-0.7.3/cbits/feqrel_source.c @@ -16,7 +16,7 @@ # define REAL_EXPBIAS ((uint16_t) 0x3F00) # define REAL_EXPBIAS_INT32 ((uint32_t) 0x7F800000) # define REAL_MANTISSAMASK_INT32 ((uint32_t) 0x007FFFFF) -# if BIG_ENDIAN == 1 +# if BYTE_ORDER == BIG_ENDIAN # define REAL_EXPPOS_INT16 0 # else # define REAL_EXPPOS_INT16 1 @@ -28,7 +28,7 @@ # define REAL_EXPBIAS ((uint16_t) 0x3FE0) # define REAL_EXPBIAS_INT32 ((uint32_t) 0x7FF00000) # define REAL_MANTISSAMASK_INT32 ((uint32_t) 0x000FFFFF); /* for the MSB only */ -# if BIG_ENDIAN == 1 +# if BYTE_ORDER == BIG_ENDIAN # define REAL_EXPPOS_INT16 0 # define REAL_SIGNPOS_BYTE 0 # else

