From 7025199be860a544446722129868982b01ad8300 Mon Sep 17 00:00:00 2001 From: Norikatsu Shigemura Date: Fri, 4 Apr 2003 21:02:50 +0000 Subject: Fix tinycdb dosen't work. PR: ports/48857 Submitted by: Kimura Fuyuki --- databases/tinycdb/Makefile | 1 + databases/tinycdb/files/patch-cdb.c | 11 +++++++++++ databases/tinycdb/pkg-descr | 2 ++ 3 files changed, 14 insertions(+) create mode 100644 databases/tinycdb/files/patch-cdb.c (limited to 'databases') diff --git a/databases/tinycdb/Makefile b/databases/tinycdb/Makefile index 1cf1f12ac0d3..56c67af3bdac 100644 --- a/databases/tinycdb/Makefile +++ b/databases/tinycdb/Makefile @@ -8,6 +8,7 @@ PORTNAME= tinycdb PORTVERSION= 0.73 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= ftp://ftp.corpit.ru/pub/tinycdb/ diff --git a/databases/tinycdb/files/patch-cdb.c b/databases/tinycdb/files/patch-cdb.c new file mode 100644 index 000000000000..5b44c5118642 --- /dev/null +++ b/databases/tinycdb/files/patch-cdb.c @@ -0,0 +1,11 @@ +--- cdb.c.orig Mon Dec 10 06:18:02 2001 ++++ cdb.c Mon Mar 3 08:38:57 2003 +@@ -144,7 +144,7 @@ + if (printf(mode == 'd' ? "+%u,%u:" : "+%u:", klen, vlen) < 0) return -1; + if (fcpy(f, stdout, klen, &pos, eod) != 0) return -1; + if (mode == 'd') +- if (!fputs(flags & F_MAP ? " " : "->", stdout)) ++ if (fputs(flags & F_MAP ? " " : "->", stdout) == EOF) + return -1; + if (fcpy(f, mode == 'd' ? stdout : NULL, vlen, &pos, eod) != 0) + return -1; diff --git a/databases/tinycdb/pkg-descr b/databases/tinycdb/pkg-descr index 0c253e67973a..2d5142141be7 100644 --- a/databases/tinycdb/pkg-descr +++ b/databases/tinycdb/pkg-descr @@ -1,3 +1,5 @@ It is analogous to cdb from D.J.Berstein, but written completely from scratch, has some functionality removed and some new added compared to DJB's one, a bit faster, and much easier to use (only one library needed at link time). + +WWW: http://www.corpit.ru/mjt/tinycdb.html -- cgit v1.2.3