diff options
author | rillig <rillig@pkgsrc.org> | 2008-01-24 19:27:10 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2008-01-24 19:27:10 +0000 |
commit | 00302f853bdb0d40a27c61e1319e886ffa08b19f (patch) | |
tree | a06c9956a3d692a262a654d5b49e127af4f2464c | |
parent | 1c98aae4339ab773e645ae35c77d5b3be15b882d (diff) | |
download | pkgsrc-00302f853bdb0d40a27c61e1319e886ffa08b19f.tar.gz |
Fixed build with sunpro.
-rw-r--r-- | devel/tvision/distinfo | 4 | ||||
-rw-r--r-- | devel/tvision/patches/patch-ad | 16 | ||||
-rw-r--r-- | devel/tvision/patches/patch-ae | 24 |
3 files changed, 43 insertions, 1 deletions
diff --git a/devel/tvision/distinfo b/devel/tvision/distinfo index d6258ed9468..6ca0bd1ba2f 100644 --- a/devel/tvision/distinfo +++ b/devel/tvision/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.4 2006/01/03 09:45:57 joerg Exp $ +$NetBSD: distinfo,v 1.5 2008/01/24 19:27:10 rillig Exp $ SHA1 (tvision-0.8.tar.gz) = c3a9948052289f77534de7a05a5d90d3ce770fff RMD160 (tvision-0.8.tar.gz) = d6bc5b690d95eb50dea167d30de66daeb267baf3 @@ -9,3 +9,5 @@ Size (tvision-0.8-freebsd-patches-20040910.diff.bz2) = 22368 bytes SHA1 (patch-aa) = 318be94b3dc3ba4fabc08e1cd156d0008761cd3f SHA1 (patch-ab) = f446c55ca44d5fe96d93d608652a422adee18194 SHA1 (patch-ac) = 9dc8d56ae0784b1a2faac07844f80a457e040ddc +SHA1 (patch-ad) = 70136b49b41c34e21c3e58464d200f294071b658 +SHA1 (patch-ae) = b8fd0d96db80a20e78adaeb3e01368810bafbfd8 diff --git a/devel/tvision/patches/patch-ad b/devel/tvision/patches/patch-ad new file mode 100644 index 00000000000..1e27cfffe66 --- /dev/null +++ b/devel/tvision/patches/patch-ad @@ -0,0 +1,16 @@ +$NetBSD: patch-ad,v 1.1 2008/01/24 19:27:10 rillig Exp $ + +sunpro says: +cannot assign "const char *" to "char *". + +--- lib/system.cc.orig 2008-01-24 15:17:51.000000000 +0100 ++++ lib/system.cc 2008-01-24 15:51:10.273636000 +0100 +@@ -2335,7 +2335,7 @@ filelength(istream &s) + + void expandPath(const char *path, char *dir, char *file) + { +- char *tag = strrchr(path, '/'); ++ const char *tag = strrchr(path, '/'); + + /* the path is in the form /dir1/dir2/file ? */ + diff --git a/devel/tvision/patches/patch-ae b/devel/tvision/patches/patch-ae new file mode 100644 index 00000000000..51f153c4bde --- /dev/null +++ b/devel/tvision/patches/patch-ae @@ -0,0 +1,24 @@ +$NetBSD: patch-ae,v 1.1 2008/01/24 19:27:10 rillig Exp $ + +The typeof keyword is not specified by ISO C99. + +--- tvhc/tvhc.cc.orig 2008-01-24 15:17:52.000000000 +0100 ++++ tvhc/tvhc.cc 2008-01-24 15:58:02.268189000 +0100 +@@ -355,7 +355,7 @@ void recordReference( char *topic, opstr + fixUp->pos = s.tellp(); + i = -1; + // s << i; +- s << (typeof(ref->val.value))i; // SC ++ s << i; // typeof(ref->val.value) == int + fixUp->next = ref->val.fixUpList; + ref->val.fixUpList = fixUp; + } +@@ -371,7 +371,7 @@ void doFixUps( TFixUp *p, ushort value, + s.seekp(p->pos); + // s << value; + TReference *ref; // SC +- s << (typeof(ref->val.value))value; // ++ s << (int)value; + } + s.seekp(pos); + } |