[CMake] [PATCHES] patch to build on Hurd

Alexander Neundorf a.neundorf-work at gmx.net
Thu Jun 14 10:12:40 EDT 2007


On Wednesday 13 June 2007 06:32, Pierre Habouzit wrote:
>   Hurd does not have SA_SIGINFO, this patch is needed in order to build
> cmake.
>
> Index: cmake-2.4.6/Source/kwsys/ProcessUNIX.c
> ===================================================================
> --- cmake-2.4.6.orig/Source/kwsys/ProcessUNIX.c
> +++ cmake-2.4.6/Source/kwsys/ProcessUNIX.c
> @@ -2328,7 +2328,12 @@
>      struct sigaction newSigChldAction;
>      memset(&newSigChldAction, 0, sizeof(struct sigaction));
>      newSigChldAction.sa_sigaction = kwsysProcessesSignalHandler;
> +    /* SA_SIGINFO isn't supported by Hurd. Checking is needed to avoid
> build failure */ +#ifdef SA_SIGINFO
>      newSigChldAction.sa_flags = SA_NOCLDSTOP | SA_SIGINFO;
> +#else
> +    newSigChldAction.sa_flags = SA_NOCLDSTOP;
> +#endif
>  #ifdef SA_RESTART
>      newSigChldAction.sa_flags |= SA_RESTART;
>  #endif

Thanks for the Hurd patches.
In order to really support Hurd in CMake, we need Nightly builds for it, 
otherwise we don't see whether any changes in CMake break Hurd.
http://public.kitware.com/dashboard.php?name=cmake (Continuous builds also 
wouldn't hurt).
Do you have access to a machine where you could set up a Nightly build ?
Here you can find some information about this:
http://www.cmake.org/Wiki/CMake#CTest
If you have questions we are happy to help.

So on Hurd uname reports "GNU" as system name ?

Bye
Alex


More information about the CMake mailing list