Source: openfoam
Version: 4.1+dfsg1-1
Severity: important
Tags: patch

Hi,

openfoam FTBFS on all 3 mips architectures with the error:
> writeFuns.C:30:27: fatal error: standards.h: No such file or directory
>      #include <standards.h>
>                            ^
> compilation terminated.

The 2 copies of writeFuns.C try to include standards.h because this was
needed on IRIX systems. However, on GNU systems this is not needed and
the file doesn't even exist. Given that IRIX is dead, I suggest you just
remove the mips specific includes. Patch attached.

Thanks,
James
Description: Remote IRIX specific MIPS includes
 The standards.h header was required on IRIX systems, but does not exist and
 is not needed on GNU systems so don't include it.
Author: James Cowgill <jcowg...@debian.org>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/applications/utilities/mesh/manipulation/setSet/writeFuns.C
+++ b/applications/utilities/mesh/manipulation/setSet/writeFuns.C
@@ -25,11 +25,6 @@ License
 
 #include "writeFuns.H"
 
-#if defined(__mips)
-    #include <standards.h>
-    #include <sys/endian.h>
-#endif
-
 #if defined(LITTLE_ENDIAN) \
  || defined(_LITTLE_ENDIAN) \
  || defined(__LITTLE_ENDIAN)
--- a/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK/writeFuns.C
+++ b/applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK/writeFuns.C
@@ -26,11 +26,6 @@ License
 #include "writeFuns.H"
 #include "vtkTopo.H"
 
-#if defined(__mips)
-    #include <standards.h>
-    #include <sys/endian.h>
-#endif
-
 // MacOSX
 #ifdef __DARWIN_BYTE_ORDER
     #if __DARWIN_BYTE_ORDER==__DARWIN_BIG_ENDIAN

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to