diff options
author | joerg <joerg@pkgsrc.org> | 2006-06-03 01:13:40 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-06-03 01:13:40 +0000 |
commit | 6e51c01f473c0f526f3c286409ab60e4dbb6bbaf (patch) | |
tree | 9c1008c85c39196601e36fdee037802821aa3f1f | |
parent | 096b86e54c828c7f3f07c97ea9c84179dbee185f (diff) | |
download | pkgsrc-6e51c01f473c0f526f3c286409ab60e4dbb6bbaf.tar.gz |
Fix build on DragonFly and with GCC 3.4+.
-rw-r--r-- | devel/prcs/distinfo | 4 | ||||
-rw-r--r-- | devel/prcs/patches/patch-aa | 14 | ||||
-rw-r--r-- | devel/prcs/patches/patch-ab | 13 |
3 files changed, 30 insertions, 1 deletions
diff --git a/devel/prcs/distinfo b/devel/prcs/distinfo index a41eb017dc8..822fcc39c07 100644 --- a/devel/prcs/distinfo +++ b/devel/prcs/distinfo @@ -1,5 +1,7 @@ -$NetBSD: distinfo,v 1.6 2005/02/23 22:24:31 agc Exp $ +$NetBSD: distinfo,v 1.7 2006/06/03 01:13:40 joerg 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-ab) = d13c14c776fc4abab32b50f1fca82469e9dfd855 diff --git a/devel/prcs/patches/patch-aa b/devel/prcs/patches/patch-aa new file mode 100644 index 00000000000..d9b50491956 --- /dev/null +++ b/devel/prcs/patches/patch-aa @@ -0,0 +1,14 @@ +$NetBSD: patch-aa,v 1.6 2006/06/03 01:13:40 joerg Exp $ + +--- src/rebuild.cc.orig 2006-06-03 00:54:52.000000000 +0000 ++++ src/rebuild.cc +@@ -1001,6 +1001,9 @@ void RebuildFile::init_stream() + #elif __GNUG__ == 3 and __GNUC_MINOR__ < 2 + 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->pubseekoff(0, ios::end, ios::out); + #else + buf = new __gnu_cxx::stdio_filebuf<char> (seg->fd(), ios::out, + false /* close */, default_segment_size); diff --git a/devel/prcs/patches/patch-ab b/devel/prcs/patches/patch-ab new file mode 100644 index 00000000000..960f56de7c1 --- /dev/null +++ b/devel/prcs/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.4 2006/06/03 01:13:40 joerg Exp $ + +--- src/regex.c.orig 2006-06-03 01:04:53.000000000 +0000 ++++ src/regex.c +@@ -297,7 +297,7 @@ init_syntax_once () + # endif /* emacs */ + + /* Integer type for pointers. */ +-# if !defined _LIBC ++# if !defined _LIBC && !defined(__DragonFly__) + typedef unsigned long int uintptr_t; + # endif + |