summaryrefslogtreecommitdiff
path: root/devel/cssc
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-06-12 02:50:46 +0000
committergrant <grant@pkgsrc.org>2004-06-12 02:50:46 +0000
commit0a828593c350dd6d5b7500eff89d0d04f9cde268 (patch)
tree9ebefafe69b98a7ff5029a6400e74b177e9bc237 /devel/cssc
parentc00bd178a42424ff5b7a6121117cdd8c2868b98c (diff)
downloadpkgsrc-0a828593c350dd6d5b7500eff89d0d04f9cde268.tar.gz
with the SunPro c++ compiler, char * cannot be initialised with a
const char * value. add a cast and make a char * const to allow this to build.
Diffstat (limited to 'devel/cssc')
-rw-r--r--devel/cssc/distinfo4
-rw-r--r--devel/cssc/patches/patch-ac13
-rw-r--r--devel/cssc/patches/patch-ad13
3 files changed, 29 insertions, 1 deletions
diff --git a/devel/cssc/distinfo b/devel/cssc/distinfo
index 59cc30d57ca..c73ca00435c 100644
--- a/devel/cssc/distinfo
+++ b/devel/cssc/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.4 2004/01/12 18:34:57 seb Exp $
+$NetBSD: distinfo,v 1.5 2004/06/12 02:50:46 grant Exp $
SHA1 (CSSC-0.16alpha.pl0.tar.gz) = 4b626cb329682208616e71dac35cf844e0eca6ff
Size (CSSC-0.16alpha.pl0.tar.gz) = 676634 bytes
SHA1 (patch-ab) = 648d6379637b791f6aea917e4d3c6379974f04f5
+SHA1 (patch-ac) = a0f30dc5bb23ece8c56b4b6141b8dd4579e4abe4
+SHA1 (patch-ad) = 2d1461a863cbb6f68c9e7fc19719c23bd2877951
diff --git a/devel/cssc/patches/patch-ac b/devel/cssc/patches/patch-ac
new file mode 100644
index 00000000000..c89504e9ea0
--- /dev/null
+++ b/devel/cssc/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2004/06/12 02:50:46 grant Exp $
+
+--- my-getopt.cc.orig 2002-03-25 11:05:46.000000000 +1100
++++ my-getopt.cc
+@@ -104,7 +104,7 @@ CSSC_Options::next()
+ char c = *cindex++;
+
+ // Look for the argument character in the option list.
+- char *match = strchr(opts, c);
++ const char *match = strchr(opts, c);
+
+ if (0 == c || 0 == match)
+ {
diff --git a/devel/cssc/patches/patch-ad b/devel/cssc/patches/patch-ad
new file mode 100644
index 00000000000..cfceef6ea6b
--- /dev/null
+++ b/devel/cssc/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2004/06/12 02:50:46 grant Exp $
+
+--- sccsfile.cc.orig 2003-05-30 03:48:25.000000000 +1000
++++ sccsfile.cc
+@@ -447,7 +447,7 @@ sccs_file::read_delta() {
+
+ start = plinebuf->c_str() + 3;
+ do {
+- char *end = strchr(start, ' ');
++ char *end = (char *) strchr(start, ' ');
+ if (end != NULL) {
+ *end++ = '\0';
+ }