pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/subtitleripper Add patch-ac to avoid conflict...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/07d370e2a4f5
branches:  trunk
changeset: 569127:07d370e2a4f5
user:      obache <obache%pkgsrc.org@localhost>
date:      Sat Jan 09 12:25:20 2010 +0000

description:
Add patch-ac to avoid conflict with getline(3) defined in IEEE Std 1003.1-2008.
PR#42595.

diffstat:

 textproc/subtitleripper/distinfo         |   3 ++-
 textproc/subtitleripper/patches/patch-ac |  30 ++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletions(-)

diffs (47 lines):

diff -r 300d84a8f102 -r 07d370e2a4f5 textproc/subtitleripper/distinfo
--- a/textproc/subtitleripper/distinfo  Sat Jan 09 12:03:03 2010 +0000
+++ b/textproc/subtitleripper/distinfo  Sat Jan 09 12:25:20 2010 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.5 2008/09/06 09:19:02 wiz Exp $
+$NetBSD: distinfo,v 1.6 2010/01/09 12:25:20 obache Exp $
 
 SHA1 (subtitleripper-0.3-4.tgz) = d93ff3578dd5f722c8f4ef16bc0903eec5781a0d
 RMD160 (subtitleripper-0.3-4.tgz) = 141355960773ab2dfe3782522858273d197cf797
 Size (subtitleripper-0.3-4.tgz) = 47299 bytes
 SHA1 (patch-aa) = f99aad2fd864aeb3d051510e63b4bd96c580a4d3
 SHA1 (patch-ab) = 22335a412899b7cdb552185ff051c7d2f2e1ba59
+SHA1 (patch-ac) = 98edef3e84b287ad64fb9054630b0b2aecf2953a
diff -r 300d84a8f102 -r 07d370e2a4f5 textproc/subtitleripper/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/subtitleripper/patches/patch-ac  Sat Jan 09 12:25:20 2010 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-ac,v 1.1 2010/01/09 12:25:20 obache Exp $
+
+Add patch-ac to avoid conflict with getline(3) defined in IEEE Std 1003.1-2008.
+
+--- vobsub.c.orig      2003-12-08 09:28:02.000000000 +0000
++++ vobsub.c
+@@ -51,12 +51,12 @@ extern int vobsub_id;
+ extern int verbose;
+ 
+ #ifdef HAVE_GETLINE
+-extern ssize_t getline(char **, size_t *, FILE *);
++extern ssize_t get_line(char **, size_t *, FILE *);
+ #else
+ /* FIXME This should go into a general purpose library or even a
+    separate file. */
+ static ssize_t
+-getline (char **lineptr, size_t *n, FILE *stream)
++get_line (char **lineptr, size_t *n, FILE *stream)
+ {
+     size_t res = 0;
+     int c;
+@@ -753,7 +753,7 @@ vobsub_parse_one_line(vobsub_t *vob, FIL
+     do {
+       size_t line_reserve = 0;
+       char *line = NULL;
+-      line_size = getline(&line, &line_reserve, fd);
++      line_size = get_line(&line, &line_reserve, fd);
+       if (line_size < 0) {
+           if (line)
+               free(line);



Home | Main Index | Thread Index | Old Index