Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Mar 2003 09:04:03 +0900
From:      Kimura Fuyuki <fuyuki@hadaly.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/48857: Update port: databases/tinycdb (fix cdb -d)
Message-ID:  <86ptp9wc24.wl%fuyuki@hadaly.org>

next in thread | raw e-mail | index | archive | help

>Number:         48857
>Category:       ports
>Synopsis:       Update port: databases/tinycdb (fix cdb -d)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 02 16:10:09 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kimura Fuyuki
>Release:        FreeBSD 4.7-RELEASE-p6 i386
>Organization:
>Environment:
System: FreeBSD hadaly.dyndns.org 4.7-RELEASE-p6 FreeBSD 4.7-RELEASE-p6 #0: Tue Feb 25 11:11:20 JST 2003 root@hadaly.dyndns.org:/sack/tmp/obj/usr/src/sys/NS i386


	
>Description:
cdb -d (dump) doesn't work on *BSD. I sent the patch to the author
five days ago but still get not response.
	
>How-To-Repeat:
$ echo 'key val' | cdb -cm test.cdb
$ cdb -d test.cdb
cdb: unable to write: -1
cdb: try `cdb -h' for help


>Fix:
diff -ruN --exclude=CVS tinycdb.orig/Makefile tinycdb/Makefile
--- tinycdb.orig/Makefile	Mon Mar  3 08:43:38 2003
+++ tinycdb/Makefile	Mon Mar  3 08:44:18 2003
@@ -8,6 +8,7 @@
 
 PORTNAME=	tinycdb
 PORTVERSION=	0.73
+PORTREVISION=	1
 CATEGORIES=	databases
 MASTER_SITES=	ftp://ftp.corpit.ru/pub/tinycdb/
 
diff -ruN --exclude=CVS tinycdb.orig/files/patch-cdb.c tinycdb/files/patch-cdb.c
--- tinycdb.orig/files/patch-cdb.c	Thu Jan  1 09:00:00 1970
+++ tinycdb/files/patch-cdb.c	Mon Mar  3 08:43:09 2003
@@ -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 -ruN --exclude=CVS tinycdb.orig/pkg-descr tinycdb/pkg-descr
--- tinycdb.orig/pkg-descr	Mon Mar  3 08:43:38 2003
+++ tinycdb/pkg-descr	Mon Mar  3 08:46:02 2003
@@ -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
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ptp9wc24.wl%fuyuki>