From owner-freebsd-ports-bugs Sun Mar 2 16:10:13 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DC5837B401 for ; Sun, 2 Mar 2003 16:10:10 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A40D343F75 for ; Sun, 2 Mar 2003 16:10:09 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h230A9NS099766 for ; Sun, 2 Mar 2003 16:10:09 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h230A95C099765; Sun, 2 Mar 2003 16:10:09 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE6F537B401 for ; Sun, 2 Mar 2003 16:04:07 -0800 (PST) Received: from t-mta1.odn.ne.jp (mfep1.odn.ne.jp [143.90.131.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 810D343FAF for ; Sun, 2 Mar 2003 16:04:06 -0800 (PST) (envelope-from fuyuki@hadaly.org) Received: from hadaly.dyndns.org ([211.131.105.144]) by t-mta1.odn.ne.jp with ESMTP id <20030303000405804.PXEK.18024.t-mta1.odn.ne.jp@mta1.odn.ne.jp> for ; Mon, 3 Mar 2003 09:04:05 +0900 Received: from hadaly.dyndns.org (localhost [127.0.0.1]) by hadaly.dyndns.org (Postfix) with ESMTP id 8BA965498 for ; Mon, 3 Mar 2003 09:04:04 +0900 (JST) Message-Id: <86ptp9wc24.wl%fuyuki@hadaly.org> Date: Mon, 03 Mar 2003 09:04:03 +0900 From: Kimura Fuyuki To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/48857: Update port: databases/tinycdb (fix cdb -d) Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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