Hi, As you can see on [1], webkitgtk failed to build on kfreebsd. That was an old version, but I believe latest 2.0.x in experimental is also affected. I expect hurd to be affected as well, after the PATH_MAX bug is fixed (I have reintroduced the patch from #669059 that was lost in experimental for the next upload).
I have prepared a patch (untested) that I believe would fix or would start fixing this. Could you comment on it and/or ACK/NACK it? I will probably make a new upload sometime next week so it will be good to get this in so we can see if we need any additional fixes on bsd/hurd. (I know, the builds are currently blocked on libsoup2.4. That is #710696 and help is very welcome.) Thanks, Emilio [1] https://buildd.debian.org/status/fetch.php?pkg=webkitgtk&arch=kfreebsd-amd64&ver=1.10.2-2&stamp=1361866687
diff --git a/Source/ThirdParty/gtest/include/gtest/internal/gtest-port.h b/Source/ThirdParty/gtest/include/gtest/internal/gtest-port.h index fb3b376..2f22a1e 100644 --- a/Source/ThirdParty/gtest/include/gtest/internal/gtest-port.h +++ b/Source/ThirdParty/gtest/include/gtest/internal/gtest-port.h @@ -81,6 +81,8 @@ // GTEST_OS_AIX - IBM AIX // GTEST_OS_CYGWIN - Cygwin // GTEST_OS_LINUX - Linux +// GTEST_OS_FREEBSD - FreeBSD +// GTEST_OS_HURD - GNU/Hurd // GTEST_OS_MAC - Mac OS X // GTEST_OS_SOLARIS - Sun Solaris // GTEST_OS_SYMBIAN - Symbian @@ -221,6 +223,10 @@ #define GTEST_OS_MAC 1 #elif defined __linux__ #define GTEST_OS_LINUX 1 +#elif defined __GNU__ +#define GTEST_OS_HURD 1 +#elif defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__) +#define GTEST_OS_FREEBSD 1 #elif defined __MVS__ #define GTEST_OS_ZOS 1 #elif defined(__sun) && defined(__SVR4) @@ -230,7 +236,7 @@ #endif // __CYGWIN__ #if GTEST_OS_CYGWIN || GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_SYMBIAN || \ - GTEST_OS_SOLARIS || GTEST_OS_AIX + GTEST_OS_SOLARIS || GTEST_OS_AIX || GTEST_OS_FREEBSD || GTEST_OS_HURD // On some platforms, <regex.h> needs someone to define size_t, and // won't compile otherwise. We can #include it here as we already @@ -262,7 +268,8 @@ #define GTEST_USES_SIMPLE_RE 1 #endif // GTEST_OS_CYGWIN || GTEST_OS_LINUX || GTEST_OS_MAC || - // GTEST_OS_SYMBIAN || GTEST_OS_SOLARIS || GTEST_OS_AIX + // GTEST_OS_SYMBIAN || GTEST_OS_SOLARIS || GTEST_OS_AIX || + // GTEST_OS_FREEBSD || GTEST_OS_HURD #ifndef GTEST_HAS_EXCEPTIONS // The user didn't tell us whether exceptions are enabled, so we need @@ -384,7 +391,7 @@ // // To disable threading support in Google Test, add -DGTEST_HAS_PTHREAD=0 // to your compiler flags. -#define GTEST_HAS_PTHREAD (GTEST_OS_LINUX || GTEST_OS_MAC) +#define GTEST_HAS_PTHREAD (GTEST_OS_LINUX || GTEST_OS_FREEBSD || GTEST_OS_HURD || GTEST_OS_MAC) #endif // GTEST_HAS_PTHREAD // Determines whether Google Test can use tr1/tuple. You can define @@ -490,7 +497,8 @@ // Google Test does not support death tests for VC 7.1 and earlier as // abort() in a VC 7.1 application compiled as GUI in debug config // pops up a dialog window that cannot be suppressed programmatically. -#if (GTEST_OS_LINUX || GTEST_OS_MAC || GTEST_OS_CYGWIN || GTEST_OS_SOLARIS || \ +#if (GTEST_OS_LINUX || GTEST_OS_FREEBSD || GTEST_OS_HURD || \ + GTEST_OS_MAC || GTEST_OS_CYGWIN || GTEST_OS_SOLARIS || \ (GTEST_OS_WINDOWS_DESKTOP && _MSC_VER >= 1400) || \ GTEST_OS_WINDOWS_MINGW || GTEST_OS_AIX) #define GTEST_HAS_DEATH_TEST 1