diff options
author | ryoon <ryoon@pkgsrc.org> | 2011-09-27 12:43:20 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2011-09-27 12:43:20 +0000 |
commit | 7518e4deb6e19199925030bfefff823b25389077 (patch) | |
tree | 973a08f61f99950c6f1c8da6beadcdf471186d1f /devel/scmcvs | |
parent | 7f66e9fc691bc48813fcd57f21bf4d79bcae689c (diff) | |
download | pkgsrc-7518e4deb6e19199925030bfefff823b25389077.tar.gz |
Fix PR pkg/45408.
Treat getine as like as getopt.
Thank you, obache@.
Diffstat (limited to 'devel/scmcvs')
-rw-r--r-- | devel/scmcvs/distinfo | 8 | ||||
-rw-r--r-- | devel/scmcvs/patches/patch-config.h.in | 14 | ||||
-rw-r--r-- | devel/scmcvs/patches/patch-configure | 12 | ||||
-rw-r--r-- | devel/scmcvs/patches/patch-lib_getline.c | 19 | ||||
-rw-r--r-- | devel/scmcvs/patches/patch-lib_getline.h | 10 |
5 files changed, 50 insertions, 13 deletions
diff --git a/devel/scmcvs/distinfo b/devel/scmcvs/distinfo index 2cb369c4627..5a51b05deb1 100644 --- a/devel/scmcvs/distinfo +++ b/devel/scmcvs/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.6 2011/09/22 15:16:26 ryoon Exp $ +$NetBSD: distinfo,v 1.7 2011/09/27 12:43:20 ryoon Exp $ SHA1 (cvs-1.11.23.tar.bz2) = a51c531eebaff2dfdcc0fb6d94c8c6e509e06d7d RMD160 (cvs-1.11.23.tar.bz2) = ff8c5c6777f1c12ee9134a3cf59e00c2ebaad279 @@ -26,6 +26,8 @@ SHA1 (patch-av) = f638f5bf5489c35c493885af5f7dfd7708660199 SHA1 (patch-ay) = ec49abaa286e6be440a0efd910cf26c86835fe20 SHA1 (patch-az) = 8000247fb946b4ac07261b1dedae4581a29476d7 SHA1 (patch-ba) = 7153e12e5da86effd4285e147f9f534011982e07 -SHA1 (patch-lib_getline.c) = 2b21ebe8a9601723a12dfc18f124ed333c93b90b -SHA1 (patch-lib_getline.h) = b1d41a81f63b5dea6dd5754de1dd898ae0d85fcc +SHA1 (patch-config.h.in) = 5a9ba2d2ec2eac8e1a1b4480d5ebe62d72987559 +SHA1 (patch-configure) = a264244219f583e072a3ec7c04945eb3b8cc5221 +SHA1 (patch-lib_getline.c) = e1bb8ac852abd8a25ea3b84455d09e1b4ba728e5 +SHA1 (patch-lib_getline.h) = 1d91f3f22e4e5aad9f8941f88855d4f41ba25dfe SHA1 (patch-lib_xsize.h) = d16bd33322fb7e3750f425d5ea58fbc3413b910b diff --git a/devel/scmcvs/patches/patch-config.h.in b/devel/scmcvs/patches/patch-config.h.in new file mode 100644 index 00000000000..590bce80f5d --- /dev/null +++ b/devel/scmcvs/patches/patch-config.h.in @@ -0,0 +1,14 @@ +$NetBSD: patch-config.h.in,v 1.1 2011/09/27 12:43:21 ryoon Exp $ + +--- config.h.in.orig 2008-05-07 20:13:06.000000000 +0000 ++++ config.h.in +@@ -115,6 +115,9 @@ + /* Define to 1 if you have the `gethostname' function. */ + #undef HAVE_GETHOSTNAME + ++/* Define to 1 if you have the `getline' function. */ ++#undef HAVE_GETLINE ++ + /* Define to 1 if you have the `getopt' function. */ + #undef HAVE_GETOPT + diff --git a/devel/scmcvs/patches/patch-configure b/devel/scmcvs/patches/patch-configure new file mode 100644 index 00000000000..c76d1bb06bc --- /dev/null +++ b/devel/scmcvs/patches/patch-configure @@ -0,0 +1,12 @@ +$NetBSD: patch-configure,v 1.1 2011/09/27 12:43:21 ryoon Exp $ + +--- configure.orig 2008-05-07 20:12:30.000000000 +0000 ++++ configure +@@ -8098,6 +8098,7 @@ for ac_func in \ + ftime \ + geteuid \ + getgroups \ ++ getline \ + getopt \ + getpagesize \ + getpid \ diff --git a/devel/scmcvs/patches/patch-lib_getline.c b/devel/scmcvs/patches/patch-lib_getline.c index 3615138c9ff..8f2e3f32735 100644 --- a/devel/scmcvs/patches/patch-lib_getline.c +++ b/devel/scmcvs/patches/patch-lib_getline.c @@ -1,15 +1,22 @@ -$NetBSD: patch-lib_getline.c,v 1.1 2011/09/22 15:16:26 ryoon Exp $ +$NetBSD: patch-lib_getline.c,v 1.2 2011/09/27 12:43:21 ryoon Exp $ * Avoid getline conflict --- lib/getline.c.orig 2005-04-04 20:46:05.000000000 +0000 +++ lib/getline.c -@@ -155,7 +155,7 @@ getstr (lineptr, n, stream, terminator, +@@ -154,6 +154,7 @@ getstr (lineptr, n, stream, terminator, + return ret; } ++#ifndef HAVE_GETLINE int --getline (lineptr, n, stream) -+getline_cvs (lineptr, n, stream) + getline (lineptr, n, stream) char **lineptr; - size_t *n; - FILE *stream; +@@ -162,6 +163,7 @@ getline (lineptr, n, stream) + { + return getstr (lineptr, n, stream, '\n', 0, GETLINE_NO_LIMIT); + } ++#endif + + int + getline_safe (lineptr, n, stream, limit) diff --git a/devel/scmcvs/patches/patch-lib_getline.h b/devel/scmcvs/patches/patch-lib_getline.h index 5e37b70d513..97f08ca2632 100644 --- a/devel/scmcvs/patches/patch-lib_getline.h +++ b/devel/scmcvs/patches/patch-lib_getline.h @@ -1,15 +1,17 @@ -$NetBSD: patch-lib_getline.h,v 1.1 2011/09/22 15:16:26 ryoon Exp $ +$NetBSD: patch-lib_getline.h,v 1.2 2011/09/27 12:43:21 ryoon Exp $ * Avoid getline conflict --- lib/getline.h.orig 2005-04-04 20:46:05.000000000 +0000 +++ lib/getline.h -@@ -12,7 +12,7 @@ +@@ -11,8 +11,10 @@ + #define GETLINE_NO_LIMIT -1 ++#ifndef HAVE_GETLINE int -- getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream)); -+ getline_cvs __PROTO ((char **_lineptr, size_t *_n, FILE *_stream)); + getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream)); ++#endif int getline_safe __PROTO ((char **_lineptr, size_t *_n, FILE *_stream, int limit)); |