diff options
author | shattered <shattered@pkgsrc.org> | 2011-10-04 20:52:09 +0000 |
---|---|---|
committer | shattered <shattered@pkgsrc.org> | 2011-10-04 20:52:09 +0000 |
commit | 4d0184f43e4bacd021ff2040adc315d5c2f80173 (patch) | |
tree | a436ec074798c4293f980fddbafb07dfba706116 | |
parent | a17e8c32b0bca8497290b15fc6f8378af9ab880b (diff) | |
download | pkgsrc-4d0184f43e4bacd021ff2040adc315d5c2f80173.tar.gz |
PR/41638 -- dup() the descriptor before passing it to stdio_filebuf,
so it can be closed without affecting anybody else. gcc < 3.4 used to
have a separate argument to control this behaviour which was apparently
removed.
Untested, please report any problems to GNATS.
-rw-r--r-- | devel/prcs/Makefile | 4 | ||||
-rw-r--r-- | devel/prcs/distinfo | 4 | ||||
-rw-r--r-- | devel/prcs/patches/patch-aa | 9 |
3 files changed, 11 insertions, 6 deletions
diff --git a/devel/prcs/Makefile b/devel/prcs/Makefile index 1b07b74bcce..ad23645407d 100644 --- a/devel/prcs/Makefile +++ b/devel/prcs/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.46 2010/03/08 10:54:12 wiz Exp $ +# $NetBSD: Makefile,v 1.47 2011/10/04 20:52:09 shattered Exp $ DISTNAME= prcs-1.3.3 -PKGREVISION= 5 +PKGREVISION= 6 CATEGORIES= devel scm MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=prcs/} diff --git a/devel/prcs/distinfo b/devel/prcs/distinfo index 47252026c4f..d8e553b2ece 100644 --- a/devel/prcs/distinfo +++ b/devel/prcs/distinfo @@ -1,9 +1,9 @@ -$NetBSD: distinfo,v 1.10 2010/07/31 21:37:25 dholland Exp $ +$NetBSD: distinfo,v 1.11 2011/10/04 20:52:09 shattered Exp $ SHA1 (prcs-1.3.3.tar.gz) = 0f1770289ee4e9e8028c1aee9e19fd4fae8d2da6 RMD160 (prcs-1.3.3.tar.gz) = 85d90b12eb7e00585f1fd880939ee01642293b4e Size (prcs-1.3.3.tar.gz) = 907482 bytes -SHA1 (patch-aa) = 46cfb535d79cce8b337dc28d1c421db8676e3d69 +SHA1 (patch-aa) = 944c496579e8dd3954679d570e9c22914dcf88df SHA1 (patch-ab) = d5b2db175d8ffe5297aa98739d1eb7c8e9b70974 SHA1 (patch-ac) = 3325292dc27785dc01beaa6586b23ced6cbc4c42 SHA1 (patch-ad) = 4356ab5828e3e09b257d145649b2db1855de55d1 diff --git a/devel/prcs/patches/patch-aa b/devel/prcs/patches/patch-aa index d9b50491956..ee941534900 100644 --- a/devel/prcs/patches/patch-aa +++ b/devel/prcs/patches/patch-aa @@ -1,4 +1,9 @@ -$NetBSD: patch-aa,v 1.6 2006/06/03 01:13:40 joerg Exp $ +$NetBSD: patch-aa,v 1.7 2011/10/04 20:52:09 shattered Exp $ + +PR 41638 -- dup() the descriptor before passing it to stdio_filebuf, +so it can be closed without affecting anybody else. gcc < 3.4 used to +have a separate argument to control this behaviour which was apparently +removed. --- src/rebuild.cc.orig 2006-06-03 00:54:52.000000000 +0000 +++ src/rebuild.cc @@ -7,7 +12,7 @@ $NetBSD: patch-aa,v 1.6 2006/06/03 01:13:40 joerg Exp $ buf = new filebuf(fdopen(dup(seg->fd()), "a+"), ios::out); buf->pubseekoff(0, ios::end, ios::out); +#elif __GNUG__ > 3 || (__GNUG__ == 3 && __GNUC_MINOR__ >= 4) -+ buf = new __gnu_cxx::stdio_filebuf<char> (seg->fd(), ios::out, default_segment_size); ++ buf = new __gnu_cxx::stdio_filebuf<char> (dup(seg->fd()), ios::out, default_segment_size); + buf->pubseekoff(0, ios::end, ios::out); #else buf = new __gnu_cxx::stdio_filebuf<char> (seg->fd(), ios::out, |