pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/colortail Make this compile with gcc-3.3; fix pro...
details: https://anonhg.NetBSD.org/pkgsrc/rev/59b9292a9e5a
branches: trunk
changeset: 466118:59b9292a9e5a
user: jschauma <jschauma%pkgsrc.org@localhost>
date: Sun Jan 11 21:22:41 2004 +0000
description:
Make this compile with gcc-3.3; fix problems seen in agc's latest bulk build.
diffstat:
misc/colortail/distinfo | 8 ++++-
misc/colortail/patches/patch-aa | 27 ++++++++++++-------
misc/colortail/patches/patch-ad | 15 +++++++++++
misc/colortail/patches/patch-ae | 55 +++++++++++++++++++++++++++++++++++++++++
misc/colortail/patches/patch-af | 22 ++++++++++++++++
misc/colortail/patches/patch-ag | 23 +++++++++++++++++
6 files changed, 138 insertions(+), 12 deletions(-)
diffs (185 lines):
diff -r 0302133cb1cd -r 59b9292a9e5a misc/colortail/distinfo
--- a/misc/colortail/distinfo Sun Jan 11 20:55:49 2004 +0000
+++ b/misc/colortail/distinfo Sun Jan 11 21:22:41 2004 +0000
@@ -1,7 +1,11 @@
-$NetBSD: distinfo,v 1.3 2002/12/13 23:01:42 jschauma Exp $
+$NetBSD: distinfo,v 1.4 2004/01/11 21:22:41 jschauma Exp $
SHA1 (colortail-0.3.0.tar.gz) = 5c55a9b0550868129d8ede133f6b34fa5356c5ce
Size (colortail-0.3.0.tar.gz) = 54329 bytes
-SHA1 (patch-aa) = 21a8249fd27487078d141a2e30e1e917586e1c3a
+SHA1 (patch-aa) = 4db6ef6d231c98914c572f320700f67ae09101a7
SHA1 (patch-ab) = 055d1a11e6a555b569d11fe2c870332ae93b13e6
SHA1 (patch-ac) = fed43fd42497b951dd237f86ef08337f76fef494
+SHA1 (patch-ad) = d5d7c7c7b13856d097eaf21113a1a15cef8640f8
+SHA1 (patch-ae) = 09aaf9aebad66b0b220387f0b230fb615f8bef08
+SHA1 (patch-af) = 00fc20aa9508db7c3894a8cab0d5f75ed6a4a967
+SHA1 (patch-ag) = 29222baff0953c1c78255092426926061ccd92c5
diff -r 0302133cb1cd -r 59b9292a9e5a misc/colortail/patches/patch-aa
--- a/misc/colortail/patches/patch-aa Sun Jan 11 20:55:49 2004 +0000
+++ b/misc/colortail/patches/patch-aa Sun Jan 11 21:22:41 2004 +0000
@@ -1,16 +1,23 @@
-$NetBSD: patch-aa,v 1.1.1.1 2001/01/24 03:53:06 hubertf Exp $
+$NetBSD: patch-aa,v 1.2 2004/01/11 21:22:41 jschauma Exp $
---- TailFile.cc.orig Wed Jan 24 04:44:29 2001
-+++ TailFile.cc
-@@ -417,7 +417,10 @@
+--- TailFile.cc.orig 2004-01-11 16:19:14.000000000 -0500
++++ TailFile.cc 2004-01-11 16:20:33.000000000 -0500
+@@ -375,7 +375,7 @@
+ // check if there isn't a follow buffer
+ if (m_follow_buffer == NULL)
+ {
+- m_follow_buffer = new ostrstream();
++ m_follow_buffer = new std::ostrstream();
+ }
+
+ // make buffer
+@@ -417,6 +417,9 @@
int ch = fgetc(m_file);
// add the character to the string
-- m_follow_buffer->put(ch);
-+ if (ch == EOF)
-+ clearerr(m_file); // required by POSIX and ANSI
-+ else
-+ m_follow_buffer->put(ch);
++ if (ch == EOF)
++ clearerr(m_file); // required by POSIX and ANSI
++ else
+ m_follow_buffer->put(ch);
// check if return
- if (ch == '\n')
diff -r 0302133cb1cd -r 59b9292a9e5a misc/colortail/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/colortail/patches/patch-ad Sun Jan 11 21:22:41 2004 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ad,v 1.1 2004/01/11 21:22:41 jschauma Exp $
+
+--- CfgFileParser.cc.orig 2004-01-11 16:15:05.000000000 -0500
++++ CfgFileParser.cc 2004-01-11 16:15:08.000000000 -0500
+@@ -25,6 +25,10 @@
+ #include <string.h>
+ #include <malloc.h>
+
++#include <iostream>
++
++using namespace std;
++
+
+ // ## class SearchData ##
+
diff -r 0302133cb1cd -r 59b9292a9e5a misc/colortail/patches/patch-ae
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/colortail/patches/patch-ae Sun Jan 11 21:22:41 2004 +0000
@@ -0,0 +1,55 @@
+$NetBSD: patch-ae,v 1.1 2004/01/11 21:22:41 jschauma Exp $
+
+--- Colorizer.cc.orig 2004-01-11 16:15:16.000000000 -0500
++++ Colorizer.cc 2004-01-11 16:15:46.000000000 -0500
+@@ -23,7 +23,7 @@
+
+ #include <assert.h>
+ #include <stdio.h>
+-#include <strstream.h>
++#include <strstream>
+
+
+ Colorizer::Colorizer()
+@@ -111,7 +111,7 @@
+ ListIterator<SearchData*> itr(*m_items_list);
+
+ // will contain the new string
+- ostrstream newstr;
++ std::ostrstream newstr;
+
+ SearchData *current;
+ int i = 0;
+@@ -172,7 +172,7 @@
+ }
+
+ // write ansi reset str and a newline
+- newstr << ANSI_RESET_STR << endl << ends;
++ newstr << ANSI_RESET_STR << std::endl << std::ends;
+ // return the new string
+ return newstr.str();
+ }
+@@ -187,12 +187,12 @@
+ // check if str ends in '\n'
+ if (str[strlen(str)] == '\n')
+ {
+- newstr << str << ends;
++ newstr << str << std::ends;
+ }
+ else
+ {
+ // doesn't end in '\n'
+- newstr << str << endl << ends;
++ newstr << str << std::endl << std::ends;
+ }
+
+ // return the new string
+@@ -240,7 +240,7 @@
+
+ // write newline and null
+ //newstr << endl << ends;
+- newstr << ends;
++ newstr << std::ends;
+
+
+ // return the new string
diff -r 0302133cb1cd -r 59b9292a9e5a misc/colortail/patches/patch-af
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/colortail/patches/patch-af Sun Jan 11 21:22:41 2004 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-af,v 1.1 2004/01/11 21:22:41 jschauma Exp $
+
+--- OptionsParser.cc.orig 2004-01-11 16:15:24.000000000 -0500
++++ OptionsParser.cc 2004-01-11 16:15:42.000000000 -0500
+@@ -18,7 +18,7 @@
+ */
+
+ #include <iostream.h>
+-#include <strstream.h>
++#include <strstream>
+ #include <string.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+@@ -130,7 +130,7 @@
+ int loop = 1;
+ while (loop)
+ {
+- ostrstream filename;
++ std::ostrstream filename;
+
+ while (1)
+ {
diff -r 0302133cb1cd -r 59b9292a9e5a misc/colortail/patches/patch-ag
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/colortail/patches/patch-ag Sun Jan 11 21:22:41 2004 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-ag,v 1.1 2004/01/11 21:22:41 jschauma Exp $
+
+--- TailFile.h.orig 2004-01-11 16:15:51.000000000 -0500
++++ TailFile.h 2004-01-11 16:15:55.000000000 -0500
+@@ -23,7 +23,8 @@
+ #include "Colorizer.h"
+
+ #include <stdio.h>
+-#include <strstream.h>
++#include <iostream>
++#include <strstream>
+
+ #define MAX_CHARS_READ 1024
+
+@@ -40,7 +41,7 @@
+ // the stream position
+ long m_position;
+ // the follow buffer, used in follow_print
+- ostrstream *m_follow_buffer;
++ std::ostrstream *m_follow_buffer;
+
+ // private methods
+ void find_position(int n);
Home |
Main Index |
Thread Index |
Old Index