diff options
author | nork <nork@FreeBSD.org> | 2003-04-05 05:02:50 +0800 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2003-04-05 05:02:50 +0800 |
commit | bfdf084524807fab0f4b092c63c5e528032cd0ce (patch) | |
tree | fef46e363d78a10ea98889b66d9a91d63cab2a96 /databases/tinycdb | |
parent | 0e0d6ab9a7f46987a5867178d00c25bb5fe27286 (diff) | |
download | freebsd-ports-gnome-bfdf084524807fab0f4b092c63c5e528032cd0ce.tar.gz freebsd-ports-gnome-bfdf084524807fab0f4b092c63c5e528032cd0ce.tar.zst freebsd-ports-gnome-bfdf084524807fab0f4b092c63c5e528032cd0ce.zip |
Fix tinycdb dosen't work.
PR: ports/48857
Submitted by: Kimura Fuyuki <fuyuki@hadaly.org>
Diffstat (limited to 'databases/tinycdb')
-rw-r--r-- | databases/tinycdb/Makefile | 1 | ||||
-rw-r--r-- | databases/tinycdb/files/patch-cdb.c | 11 | ||||
-rw-r--r-- | databases/tinycdb/pkg-descr | 2 |
3 files changed, 14 insertions, 0 deletions
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 |