svn commit: r190943 - head/include

Vasil Dimov vd at FreeBSD.org
Sun Apr 12 18:58:06 UTC 2009


On Sat, Apr 11, 2009 at 21:44:10 +0400, Stanislav Sedov wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Sun, 12 Apr 2009 02:18:41 +0900
> Norikatsu Shigemura <nork at FreeBSD.org> mentioned:
> 
> > On Sat, 11 Apr 2009 21:07:02 +0400
> > Stanislav Sedov <stas at freebsd.org> wrote:
> > > > Log:
> > > >   GNU Pth has some fragile kludges that were broken by r189828.
> > > >   I've discussed this with the Pth maintainer and no clear solution
> > > >   has emerged on the ports side of things, so for now, hack around
> > > >   the issue in signal.h.
> > > Can't we just put a patch in ports tree itself? What meant under 'no
> > > clean solution emerged'? I can prepare a patch, if needed.
> > 
> > 	I think so, too.  I have a quick hack patch.
> > 
> > ports/devel/pth/files/patch-pth_p.h.in
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > --- pth_p.h.in.orig	2006-06-09 02:54:03.000000000 +0900
> > +++ pth_p.h.in	2009-04-08 15:05:12.911807009 +0900
> > @@ -32,7 +32,7 @@
> >  #include <stdarg.h>
> >  #include <string.h>
> >  #include <setjmp.h>
> > -#include <signal.h>
> > +//#include <signal.h>
> >  #include <unistd.h>
> >  #include <fcntl.h>
> >  #include <errno.h>
> > 
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > 
> 
> Or just drop the line. Vasil, what do you think about the possibility to
> commit this patch into the tree? I think we should have a workaround in ports
> tree (it is one of the things what it was designed for) than in the src tree.
> Better would be to implement a workaround upstream, though. I think something
> like
>  #if !(defined(__FreeBSD__) && __FreeBSD_version >= %%PTHREAD_CHANGE_VERSION%%)
>  #include <signal.h>
>  #endif
> where %%PTHREAD_CHANGE_VERSION%% would correspond to the __FreeBSD_version where
> the change was introduced, could be safely submitted upstream.
[...]

All, thank you! I have now committed this patch to devel/pth. Lets hope
it works :)

PS I still do not have access to an 8.0 machine...

-- 
Vasil Dimov
moc.elcaro at vomid.lisav        Software Developer @ Oracle/Innobase Oy
gro.DSBeerF at dv                Committer @ FreeBSD.org
gro.d5v at dv                    Home @ Sofia, Bulgaria
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20090412/d32ef838/attachment.pgp


More information about the svn-src-head mailing list