[CMake] [PATCHES] patch to build on Hurd

Pierre Habouzit madcoder at debian.org
Thu Jun 14 12:10:06 EDT 2007


On Thu, Jun 14, 2007 at 10:12:40AM -0400, Alexander Neundorf wrote:
> 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 ?

  No I don't, I'm not _that_ interested in Hurd, but Debian porters did
wrote those patches to make it build properly, I just transmitted them.
We could continue to work like that, and you would just have to mention
in the notes that you "try" to make cmake work on Hurd, but that it
could be broken on some occasions.

  Each time Debian Hurd Porters have a patch, I'll forward it to you.
That's all I'm able to promise.

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

  Yes.
-- 
·O·  Pierre Habouzit
··O                                                madcoder at debian.org
OOO                                                http://www.madism.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20070614/d76323a9/attachment.pgp


More information about the CMake mailing list