pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/tvision Add DragonFly support. Fix ambigious con...
details: https://anonhg.NetBSD.org/pkgsrc/rev/aa3441100433
branches: trunk
changeset: 505379:aa3441100433
user: joerg <joerg%pkgsrc.org@localhost>
date: Tue Jan 03 09:45:57 2006 +0000
description:
Add DragonFly support. Fix ambigious conversions for GCC 3.4+ by
explicitly casting positions to long, since that is what the code
expects.
diffstat:
devel/tvision/distinfo | 6 ++++--
devel/tvision/patches/patch-aa | 6 +++---
devel/tvision/patches/patch-ab | 40 ++++++++++++++++++++++++++++++++++++++++
devel/tvision/patches/patch-ac | 13 +++++++++++++
4 files changed, 60 insertions(+), 5 deletions(-)
diffs (97 lines):
diff -r 7db394f77bb7 -r aa3441100433 devel/tvision/distinfo
--- a/devel/tvision/distinfo Tue Jan 03 08:43:08 2006 +0000
+++ b/devel/tvision/distinfo Tue Jan 03 09:45:57 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2005/02/23 22:24:35 agc Exp $
+$NetBSD: distinfo,v 1.4 2006/01/03 09:45:57 joerg Exp $
SHA1 (tvision-0.8.tar.gz) = c3a9948052289f77534de7a05a5d90d3ce770fff
RMD160 (tvision-0.8.tar.gz) = d6bc5b690d95eb50dea167d30de66daeb267baf3
@@ -6,4 +6,6 @@
SHA1 (tvision-0.8-freebsd-patches-20040910.diff.bz2) = 74b8a0a4fd0cecc28e40b1f9844b7361d31d5519
RMD160 (tvision-0.8-freebsd-patches-20040910.diff.bz2) = 85bcee3e5bfc64ab8744818783a1732f94909896
Size (tvision-0.8-freebsd-patches-20040910.diff.bz2) = 22368 bytes
-SHA1 (patch-aa) = 949a270f748c4b5f20a7a0fe555cfff19da978ed
+SHA1 (patch-aa) = 318be94b3dc3ba4fabc08e1cd156d0008761cd3f
+SHA1 (patch-ab) = f446c55ca44d5fe96d93d608652a422adee18194
+SHA1 (patch-ac) = 9dc8d56ae0784b1a2faac07844f80a457e040ddc
diff -r 7db394f77bb7 -r aa3441100433 devel/tvision/patches/patch-aa
--- a/devel/tvision/patches/patch-aa Tue Jan 03 08:43:08 2006 +0000
+++ b/devel/tvision/patches/patch-aa Tue Jan 03 09:45:57 2006 +0000
@@ -1,12 +1,12 @@
-$NetBSD: patch-aa,v 1.2 2004/09/10 19:32:44 wiz Exp $
+$NetBSD: patch-aa,v 1.3 2006/01/03 09:45:57 joerg Exp $
---- myendian.h.orig 2001-07-25 16:09:37.000000000 +0200
+--- myendian.h.orig 2001-07-25 14:09:37.000000000 +0000
+++ myendian.h
@@ -32,6 +32,10 @@
#include <machine/endian.h>
-+#elif defined(__NetBSD__)
++#elif defined(__NetBSD__) || defined(__DragonFly__)
+
+#include <sys/endian.h>
+
diff -r 7db394f77bb7 -r aa3441100433 devel/tvision/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tvision/patches/patch-ab Tue Jan 03 09:45:57 2006 +0000
@@ -0,0 +1,40 @@
+$NetBSD: patch-ab,v 1.3 2006/01/03 09:45:57 joerg Exp $
+
+--- lib/TResourceFile.cc.orig 2006-01-03 09:18:35.000000000 +0000
++++ lib/TResourceFile.cc
+@@ -62,7 +62,7 @@ TResourceFile::TResourceFile( fpstream *
+ int repeat;
+ do {
+ repeat = 0;
+- if (basePos <= (streamSize - (long)sizeof(THeader)))
++ if (basePos <= ((long)streamSize - sizeof(THeader)))
+ {
+ stream->seekg(basePos, ios::beg);
+ stream->readBytes(&header, sizeof(THeader));
+@@ -172,7 +172,7 @@ void TResourceFile::put(TStreamable *ite
+ p->pos = indexPos;
+ stream->seekp(basePos + indexPos, ios::beg);
+ *stream << item;
+- indexPos = stream->tellp() - basePos;
++ indexPos = (long)stream->tellp() - basePos;
+ p->size = indexPos - p->pos;
+
+ modified = True;
+@@ -213,7 +213,7 @@ void doCopyResource(void* item, void* ar
+ SwitchInfo* si = (SwitchInfo*)arg;
+
+ si->sourceStream->seekg(si->oldBasePos + ((TResourceItem*)item)->pos);
+- ((TResourceItem*)item)->pos = si->destStream->tellp() - si->newBasePos;
++ ((TResourceItem*)item)->pos = (long)si->destStream->tellp() - si->newBasePos;
+
+ copyStream( si->destStream, si->sourceStream, ((TResourceItem*)item)->size);
+ }
+@@ -231,7 +231,7 @@ fpstream* TResourceFile::switchTo( fpstr
+ args.destStream = aStream;
+ aStream->seekp( args.newBasePos + sizeof(long)*3);
+ index->forEach(doCopyResource, &args);
+- indexPos = aStream->tellp() - args.newBasePos;
++ indexPos = (long)aStream->tellp() - args.newBasePos;
+ }
+ else
+ {
diff -r 7db394f77bb7 -r aa3441100433 devel/tvision/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tvision/patches/patch-ac Tue Jan 03 09:45:57 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2006/01/03 09:45:57 joerg Exp $
+
+--- lib/helpbase.cc.orig 2006-01-03 09:23:26.000000000 +0000
++++ lib/helpbase.cc
+@@ -588,7 +588,7 @@ THelpFile::~THelpFile(void)
+ streampos size = filelength(*stream);
+ size =- 8;
+ *stream << magic;
+- *stream << size;
++ *stream << (long)size;
+ *stream << indexPos;
+ }
+ delete stream;
Home |
Main Index |
Thread Index |
Old Index