cvt_cyrusdb flat to skiplist fails

Thorsten Glaser t.glaser at tarent.de
Tue May 25 08:41:02 EDT 2010


On Thu, 6 May 2010, Bron Gondwana wrote:

> What a pain - yeah, of course.  OLD Cyrus ;)  I wrote cyr_dbtool about
> 6 years ago.

I’m currently trying to build the Debian experimental package,
plus a local diff to create a dbtool package, on Univention.
Not totally happy with it (Depends in the binary package are
empty), but then, the package from experimental sucks a little
anyway, so debdiff attached.

Maybe cyr_dbtool will run with our old databases/server?

Does the imapd need to be stopped during cyr_dbtool runs?


Hrm, probably not:

root at ugs:~ # /usr/lib/cyrus/bin/cyr_dbtool /var/lib/cyrus/annotations.db skiplist show                     
fatal error: wrong db version
Segmentation fault 


Any further ideas?

Thanks,
//mirabilos
-- 
Besuchen Sie uns vom 09.06. bis zum 12.06. auf dem LinuxTag 2010
an unserem Stand „Fairtrade Software“ (Halle 7.2a. / Stand 123)!
Unsere Themen dieses Jahr:    • Evolvis • Freedroidz • Portale •
       • Identity and Access Management • Mobile Applikationen •

tarent Gesellschaft für Softwareentwicklung und IT-Beratung mbH
Geschäftsführer: Boris Esser, Elmar Geese
HRB AG Bonn 5168 - USt-ID (VAT): DE122264941

Heilsbachstraße 24, 53123 Bonn,   Telefon: +49 228 52675-93
Weigandufer 45,     12059 Berlin, Telefon: +49 30 5682943-30
Internet: http://www.tarent.de/ • Telefax: +49 228 52675-25
-------------- next part --------------
diff -u cyrus-imapd-2.3-2.3.8/debian/control cyrus-imapd-2.3-2.3.8/debian/control
--- cyrus-imapd-2.3-2.3.8/debian/control
+++ cyrus-imapd-2.3-2.3.8/debian/control
@@ -8,6 +8,33 @@
 Xs-Vcs-Browser: https://mail.incase.de/viewcvs/branches/cyrus23/?root=cyrus22
 Xs-Vcs-Svn: https://mail.incase.de/svn/cyrus22/branches/cyrus23
 
+Package: cyrus-dbtool-2.3
+Architecture: any
+Depends: ${misc:Depends}, ${shlib:Depends}
+Description: Cyrus mail system (dbtool)
+ Cyrus is a fully-featured IMAP daemon, with a number of features not
+ found in other IMAP implementations, including:
+  o Designed to handle massive quantities of mail
+  o No need for users to have login accounts
+  o Virtual domain support
+  o Support for POP3 in addition to IMAP
+  o Sieve server-side email filtering
+  o Servers don't run as root
+  o Easy support for mail quotas
+  o SSL support, including secure IMAP
+  o DRAC support for pop/imap-before-smtp
+  o IPv6 support
+  o NNTP support
+ For more information, see http://asg.web.cmu.edu/cyrus/.
+ .
+ Note: Cyrus doesn't support reading from and storing mail in your 
+ standard mail spool - it stores mail in a separate directory in its
+ own MH-like format.
+ .
+ This package contains the cyr_dbtool.
+ .
+  Homepage: http://cyrusimap.web.cmu.edu/
+
 Package: cyrus-common-2.3
 Architecture: any
 Section: mail
diff -u cyrus-imapd-2.3-2.3.8/debian/changelog cyrus-imapd-2.3-2.3.8/debian/changelog
--- cyrus-imapd-2.3-2.3.8/debian/changelog
+++ cyrus-imapd-2.3-2.3.8/debian/changelog
@@ -1,3 +1,14 @@
+cyrus-imapd-2.3 (2.3.8-1tarent1) experimental; urgency=low
+
+  * New cyrus-dbtool-2.3 subpackage, the only one I need
+  * Remove --with-com_err=/usr so that it uses -lcom_err
+    instead of /usr/lib/libcom_err.a since the latter does
+    not pull in libpthread automatically (FTBFS)
+  * Add cyr_dbtool manpage from
+    http://www.mail-archive.com/info-cyrus%40lists.andrew.cmu.edu/msg31678.html
+
+ -- Thorsten Glaser <t.glaser at tarent.de>  Tue, 25 May 2010 14:03:19 +0200
+
 cyrus-imapd-2.3 (2.3.8-1) experimental; urgency=low
 
   * New upstream series release (Closes: #382376)
diff -u cyrus-imapd-2.3-2.3.8/debian/rules cyrus-imapd-2.3-2.3.8/debian/rules
--- cyrus-imapd-2.3-2.3.8/debian/rules
+++ cyrus-imapd-2.3-2.3.8/debian/rules
@@ -140,7 +140,7 @@
 	 --disable-listext --enable-annotatemore --with-sasl=/usr \
 	 --enable-idled --with-drac=/usr \
 	 --with-cyrus-user=cyrus --with-cyrus-group=mail \
-	 --with-tclsh=/usr/bin/tclsh --with-com_err=/usr \
+	 --with-tclsh=/usr/bin/tclsh \
 	 --with-pidfile=/var/run/cyrmaster.pid \
 	 --with-syslogfacility=MAIL \
 	 --with-seen-db=skiplist --with-mboxlist-db=skiplist \
only in patch2:
unchanged:
--- cyrus-imapd-2.3-2.3.8.orig/debian/cyrus-dbtool-2.3.manpages
+++ cyrus-imapd-2.3-2.3.8/debian/cyrus-dbtool-2.3.manpages
@@ -0,0 +1 @@
+debian/cyr_dbtool.8
only in patch2:
unchanged:
--- cyrus-imapd-2.3-2.3.8.orig/debian/cyrus-dbtool-2.3.install
+++ cyrus-imapd-2.3-2.3.8/debian/cyrus-dbtool-2.3.install
@@ -0,0 +1 @@
+usr/lib/cyrus/bin/cyr_dbtool
only in patch2:
unchanged:
--- cyrus-imapd-2.3-2.3.8.orig/debian/cyr_dbtool.8
+++ cyrus-imapd-2.3-2.3.8/debian/cyr_dbtool.8
@@ -0,0 +1,91 @@
+.\" -*- nroff -*-
+.TH CYR_DBTOOL 8 "Project Cyrus" CMU
+.\" 
+.\" Copyright (c) 1998-2007 Carnegie Mellon University.  All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\"
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer. 
+.\"
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in
+.\"    the documentation and/or other materials provided with the
+.\"    distribution.
+.\"
+.\" 3. The name "Carnegie Mellon University" must not be used to
+.\"    endorse or promote products derived from this software without
+.\"    prior written permission. For permission or any other legal
+.\"    details, please contact  
+.\"      Office of Technology Transfer
+.\"      Carnegie Mellon University
+.\"      5000 Forbes Avenue
+.\"      Pittsburgh, PA  15213-3890
+.\"      (412) 268-4387, fax: (412) 268-7395
+.\"      [EMAIL PROTECTED]
+.\"
+.\" 4. Redistributions of any form whatsoever must retain the following
+.\"    acknowledgment:
+.\"    "This product includes software developed by Computing Services
+.\"     at Carnegie Mellon University (http://www.cmu.edu/computing/)."
+.\"
+.\" CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
+.\" THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+.\" AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
+.\" FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
+.\" AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
+.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+.\" 
+.\" $Id: cyr_dbtool.8,v 1.1 2007/02/09 17:41:35 simix Exp $
+.SH NAME
+cyr_dbtool \- manage Cyrus databases
+.SH SYNOPSIS
+.B cyr_dbtool
+[
+.B \-C
+.I config-file
+]
+<old db> <old db backend> <action>
+[
+<key>
+]
+[
+<value>
+]
+.SH DESCRIPTION
+.I cyr_dbtool
+is used to manage a cyrusdb file. The usable actions are:
+.PP
+.BI show " [<prefix>]"
+.PP
+.BI get " <key>"
+.PP
+.BI set " <key> <value>"
+.PP
+.BI delete " <key>"
+.PP
+You may omit key or key/value and specify one per line on stdin. Keys are
+terminated by tab or newline, values are terminated by newline.
+.PP
+Running without any options will list the available database backends and
+usable actions.
+.PP
+.I cyr_dbtool
+reads any applicable configuration options out of the
+.IR imapd.conf (5)
+file unless specified otherwise by \fB-C\fR.
+note that the file locations are NOT read out of the configuration file,
+and must be supplied on the command line.
+.SH OPTIONS
+.TP
+.BI \-C " config-file"
+Read configuration options from \fIconfig-file\fR.
+.SH FILES
+.TP
+.B /etc/imapd.conf
+.SH SEE ALSO
+.PP
+\fBimapd.conf(5)\fR


More information about the Info-cyrus mailing list