pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/source-highlight Fix build with older GNU lib...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3c074173c4f3
branches:  trunk
changeset: 475478:3c074173c4f3
user:      seb <seb%pkgsrc.org@localhost>
date:      Sun May 16 12:22:40 2004 +0000

description:
Fix build with older GNU libstdc++ (mentioned in PR pkg/25590).
While here add support for test target.

diffstat:

 textproc/source-highlight/Makefile         |   4 +++-
 textproc/source-highlight/distinfo         |   3 ++-
 textproc/source-highlight/patches/patch-ae |  13 +++++++++++++
 3 files changed, 18 insertions(+), 2 deletions(-)

diffs (51 lines):

diff -r 58689762e129 -r 3c074173c4f3 textproc/source-highlight/Makefile
--- a/textproc/source-highlight/Makefile        Sun May 16 11:52:50 2004 +0000
+++ b/textproc/source-highlight/Makefile        Sun May 16 12:22:40 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2004/05/15 14:55:38 seb Exp $
+# $NetBSD: Makefile,v 1.13 2004/05/16 12:22:40 seb Exp $
 #
 
 DISTNAME=      source-highlight-1.9
@@ -13,6 +13,8 @@
 GNU_CONFIGURE= YES
 USE_BUILDLINK3=        YES
 
+TEST_TARGET=   check
+
 .include "../../mk/bsd.prefs.mk"
 
 .ifdef SOURCE_HIGHLIGHT_INPUT_CHROOT
diff -r 58689762e129 -r 3c074173c4f3 textproc/source-highlight/distinfo
--- a/textproc/source-highlight/distinfo        Sun May 16 11:52:50 2004 +0000
+++ b/textproc/source-highlight/distinfo        Sun May 16 12:22:40 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2004/05/15 14:55:38 seb Exp $
+$NetBSD: distinfo,v 1.8 2004/05/16 12:22:40 seb Exp $
 
 SHA1 (source-highlight-1.9.tar.gz) = b7acc3e354a3043c517f7efa4ddb5e0924464a68
 Size (source-highlight-1.9.tar.gz) = 682343 bytes
@@ -6,5 +6,6 @@
 SHA1 (patch-ab) = ecb8ce16381bd68b55f309a0ae43912319138575
 SHA1 (patch-ac) = 62475d945664b84eb4a6e43e5cd4c75f9049eefe
 SHA1 (patch-ad) = 7be6c33e8dbcc61f09ede32b25f6c912bb41b4de
+SHA1 (patch-ae) = ea3b682e89556a8c32b990585c07c6cd48fb24d9
 SHA1 (patch-ag) = 77d3668ad1573fee7423aa3651c77ae64fd7cbb7
 SHA1 (patch-ah) = a0df2fb54d9093834d2a017efc3ff512bbd517bf
diff -r 58689762e129 -r 3c074173c4f3 textproc/source-highlight/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/source-highlight/patches/patch-ae        Sun May 16 12:22:40 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.3 2004/05/16 12:22:40 seb Exp $
+
+--- src/lib/fileutil.cc.orig   2004-04-19 10:59:24.000000000 +0000
++++ src/lib/fileutil.cc
+@@ -41,7 +41,7 @@ read_file(const string &fileName)
+   // we open it as binary otherwise we may experience problems under
+   // Windows system: when we fread, the number of char read can be
+   // less then char_count, and thus we'd get an error...
+-  ifstream file (fileName.c_str (), ios_base::binary);
++  ifstream file (fileName.c_str (), ios::binary);
+   if (! file.is_open () )
+     file_error ("Error operning", fileName);
+   else



Home | Main Index | Thread Index | Old Index