tags 350595 + patch thanks
Hi, The following patch fixes the FTBFS on mips and should on m68k too. But, I don't have any m68k machine to test on. Note that I am actually not very familiar with fpu_control.h. But the comments near the #define's seem to indicate that this is the correct way to replace the generic _FPU_MASK_FOOs with mips and m68k specific _FPU_MASK_BARs. Thanks, Brice
diff -u gerris-0.6.0/src/init.c gerris-0.6.0/src/init.c --- gerris-0.6.0/src/init.c +++ gerris-0.6.0/src/init.c @@ -23,7 +23,14 @@ # include <fpu_control.h> # ifdef _FPU_IEEE static fpu_control_t fpu_trap_exceptions = - _FPU_IEEE & ~(_FPU_MASK_ZM /*| _FPU_MASK_IM | _FPU_MASK_OM*/); + _FPU_IEEE & +# ifdef __mc68000__ + ~(__FPU_MASK_DZ /*| _FPU_MASK_OPERR | _FPU_MASK_OVFL*/); +# elif defined(__mips__) + ~(_FPU_MASK_Z /*| _FPU_MASK_V | _FPU_MASK_O*/); +# else + ~(_FPU_MASK_ZM /*| _FPU_MASK_IM | _FPU_MASK_OM*/); +# endif # endif /* _FPU_IEEE */ #endif /* HAVE_FPU_CONTROL_H */ diff -u gerris-0.6.0/debian/changelog gerris-0.6.0/debian/changelog --- gerris-0.6.0/debian/changelog +++ gerris-0.6.0/debian/changelog @@ -1,3 +1,11 @@ +gerris (0.6.0-3.1) unstable; urgency=low + + * Non-maintainer upload. + * Add a wrapper for fpu_control.h's difference on mips and m68k, + closes: #350595. + + -- Brice Goglin <[EMAIL PROTECTED]> Tue, 9 Jan 2007 23:29:38 +0100 + gerris (0.6.0-3) unstable; urgency=low * NMU