Bug#542718: opencascade: FTBFS on GNU/kFreeBSD

Aurelien Jarno aurel32 at debian.org
Thu Aug 20 23:45:45 UTC 2009


Package: opencascade
Version: 6.3.0.dfsg.1-3
Severity: important
User: debian-bsd at lists.debian.org

A small patch is need to make opencascade buildable on GNU/kFreeBSD. 
Please find it below. Could you apply it in the next upload?

Thanks in advance,
Aurelien


--- opencascade-6.3.0.dfsg.1.orig/ros/src/OSD/OSD_Path.cxx
+++ opencascade-6.3.0.dfsg.1/ros/src/OSD/OSD_Path.cxx
@@ -16,7 +16,7 @@
 #endif
 
 static OSD_SysType whereAmI(){
-#if defined(__digital__) || defined(__FreeBSD__) || defined(SUNOS) || defined(__APPLE__)
+#if defined(__digital__) || defined(__FreeBSD__) || defined(SUNOS) || defined(__APPLE__) || defined(__FreeBSD_kernel__)
   return OSD_UnixBSD;
 }
 #elif defined(sgi)  || defined(IRIX) || defined(__sun)  || defined(SOLARIS) ||  defined(__sco__) || defined(__hpux) || defined(HPUX)
only in patch2:
unchanged:
--- opencascade-6.3.0.dfsg.1.orig/ros/src/WOKUnix/WOKUnix_Signal.cxx
+++ opencascade-6.3.0.dfsg.1/ros/src/WOKUnix/WOKUnix_Signal.cxx
@@ -80,7 +80,7 @@
   act.sa_mask.sigset[5]    = 0;
   act.sa_mask.sigset[6]    = 0;
   act.sa_mask.sigset[7]    = 0;
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
   act.sa_mask.__bits[0]    = 0;
   act.sa_mask.__bits[1]    = 0;
   act.sa_mask.__bits[2]    = 0;


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-i386 (i686)

Kernel: kFreeBSD 7.2-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash





More information about the debian-science-maintainers mailing list