diff options
author | ijliao <ijliao@FreeBSD.org> | 2007-03-01 08:56:46 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2007-03-01 08:56:46 +0800 |
commit | 0aea8c4ff3e98e429e368982b681c7d9d268d380 (patch) | |
tree | cde4eef2cd2e8354c49867cff70d4c15edb0875a /palm/palm-db-tools | |
parent | 808016c2092d6e8fb8f4ee76fbeb7df4c1f12834 (diff) | |
download | freebsd-ports-gnome-0aea8c4ff3e98e429e368982b681c7d9d268d380.tar.gz freebsd-ports-gnome-0aea8c4ff3e98e429e368982b681c7d9d268d380.tar.zst freebsd-ports-gnome-0aea8c4ff3e98e429e368982b681c7d9d268d380.zip |
unbreak
PR: 109647
Submitted by: "Eric P. Scott" <eps+pbug0702@ana.com>
Diffstat (limited to 'palm/palm-db-tools')
-rw-r--r-- | palm/palm-db-tools/Makefile | 4 | ||||
-rw-r--r-- | palm/palm-db-tools/files/patch-libflatfile-DB.cpp | 31 | ||||
-rw-r--r-- | palm/palm-db-tools/files/patch-libpalm-File.cpp | 11 |
3 files changed, 42 insertions, 4 deletions
diff --git a/palm/palm-db-tools/Makefile b/palm/palm-db-tools/Makefile index d033bfa98065..63b87d90a25e 100644 --- a/palm/palm-db-tools/Makefile +++ b/palm/palm-db-tools/Makefile @@ -15,10 +15,6 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/./_/g} MAINTAINER= ijliao@FreeBSD.org COMMENT= Utilities for the PalmOS flat-file database programs -BROKEN= Does not build -DEPRECATED= ${BROKEN} -EXPIRATION_DATE=2007-04-10 - WRKSRC= ${WRKDIR}/${PORTNAME} GNU_CONFIGURE= yes USE_GMAKE= yes diff --git a/palm/palm-db-tools/files/patch-libflatfile-DB.cpp b/palm/palm-db-tools/files/patch-libflatfile-DB.cpp new file mode 100644 index 000000000000..30d8c15dd8aa --- /dev/null +++ b/palm/palm-db-tools/files/patch-libflatfile-DB.cpp @@ -0,0 +1,31 @@ +--- libflatfile/DB.cpp.orig Thu Jun 19 16:37:46 2003 ++++ libflatfile/DB.cpp +@@ -511,7 +511,8 @@ + f.type = PalmLib::FlatFile::Field::LIST; + if (!field(j).argument().empty()) { + std::string data = field(j).argument(); +- unsigned int k, pos = 0; ++ unsigned int k; ++ size_t pos = 0; + pi_uint16_t itemID = *ptrs[j]; // TR: a list value is stored on 1 byte + + for (k = 0; k < itemID; k++) { +@@ -716,7 +717,8 @@ + case PalmLib::FlatFile::Field::LIST: + if (!field(i).argument().empty()) { + std::string data = field(i).argument(); +- unsigned int pos = 0, next, j = 0; ++ size_t pos = 0, next; ++ unsigned int j = 0; + pi_int16_t itemID = -1; + + while ( (next = data.find(charSeperator, pos)) != std::string::npos) { +@@ -920,7 +922,7 @@ + if (!field(i).argument().empty()) { + std::string data = field(i).argument(); + std::vector<std::string> items; +- unsigned int pos = 0, next; ++ size_t pos = 0, next; + std::vector<std::string>::iterator iter; + size = 2 + 2 * sizeof(pi_uint16_t); + while ( (next = data.find(charSeperator, pos)) != std::string::npos) { diff --git a/palm/palm-db-tools/files/patch-libpalm-File.cpp b/palm/palm-db-tools/files/patch-libpalm-File.cpp new file mode 100644 index 000000000000..6b2f601b2a6a --- /dev/null +++ b/palm/palm-db-tools/files/patch-libpalm-File.cpp @@ -0,0 +1,11 @@ +--- libpalm/File.cpp.orig Thu Jun 19 16:37:47 2003 ++++ libpalm/File.cpp +@@ -270,7 +270,7 @@ + } + + if (m_sort_info.raw_size() > 0) { +- f.write((char *) m_sort_info.raw_size(), m_sort_info.raw_size()); ++ f.write((char *) m_sort_info.raw_data(), m_sort_info.raw_size()); + if (!f) + throw PalmLib::error("unable to write sort info block"); + } |