Mailinglist Archive: opensuse-bugs (7441 mails)

< Previous Next >
[Bug 357946] New: cyrus rpm converts mailbox to different format than configured
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 1 Feb 2008 04:13:11 -0700 (MST)
  • Message-id: <bug-357946-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=357946


Summary: cyrus rpm converts mailbox to different format than
configured
Product: openSUSE 10.3
Version: Final
Platform: 32bit
OS/Version: Linux
Status: NEW
Severity: Major
Priority: P5 - None
Component: Other
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: richard.bos@xxxxxxxxx
QAContact: qa@xxxxxxx
Found By: Beta-Customer


The update of the cyrus rpm results in a conversion of the mailbox database
This is not wanted at all!

----------------
Converting mailboxes.db to skiplist
backend
fatal error: unknown old backend
----------------

See below for the full output.

Committing
transaction...
Preparing... ######################################## [ 0%]
1:Installing perl-Cyrus-IMAP ######################################## [ 16%]
2:Cleaning perl-Cyrus-IMAP ######################################## [ 33%]
3:Installing cyrus-imapd-k.. ######################################## [ 50%]
Output from
cyrus-imapd-kolab-2.3.10-40.1@i586:
Converting mailboxes.db to skiplist
backend
fatal error: unknown old backend
Backing up old etc/cyrus.conf as etc/cyrus.conf.2008-01-31
updating etc/cyrus.conf
4:Cleaning cyrus-imapd-kolab ######################################## [ 66%]
5:Installing perl-Cyrus-SI.. ######################################## [ 83%]
6:Cleaning perl-Cyrus-SIEV.. ######################################## [100%]



It's part of the cyrus spec file indeed:
https://build.opensuse.org/package/view_file?file=cyrus-imapd.spec&package=cyrus-imapd&project=openSUSE%3AFactory

%post
test -e var/lib/imap/mailboxes.db && {
db_verify var/lib/imap/mailboxes.db 2> /dev/null && {
echo "Converting mailboxes.db to skiplist backend"
cp -p --remove-destination var/lib/imap/mailboxes.db
var/lib/imap/mailboxes.db.bak
rm -f var/lib/imap/mailboxes.db
chroot . su - cyrus -c 'cvt_cyrusdb /var/lib/imap/mailboxes.db.bak db3
/var/lib/imap/mailboxes.db skiplist'
}
}

Allowed backends are:

man 5 imapd.conf | grep -A 4 mboxlist_db:
Reformatting imapd.conf(5), please wait...
mboxlist_db: skiplist
The cyrusdb backend to use for the mailbox list.

Allowed values: flat, berkeley, berkeley-hash, skiplist


Something weird is going on, see:

/var/tmp> cvt_cyrusdb /var/tmp/mailboxes.db-berk berkeley
/var/tmp/mailboxes.db-db3 db3
fatal error: unknown new backend


/var/tmp> file mailboxes.db-*
mailboxes.db-berk: Berkeley DB (Btree, version 9, native byte-order)
mailboxes.db-skip: Cyrus skiplist DB


The code should (must?) be removed or something like the following patch
should be added to the post-script in the rpm:

This patch should make it work:
--- post-script.org 2008-02-01 11:23:32.000000000 +0100
+++ post-script 2008-02-01 11:48:17.000000000 +0100
@@ -1,10 +1,16 @@
+#!/bin/bash
+
+PATH=$PATH:/usr/lib/cyrus/bin

test -e var/lib/imap/mailboxes.db && {
+ RESULT=$(LANG=C file var/lib/imap/mailboxes.db)
+ if LANG=C file var/lib/imap/mailboxes.db | grep -qi berkeley; then
db_verify var/lib/imap/mailboxes.db 2> /dev/null && {
echo "Converting mailboxes.db to skiplist backend"
cp -p --remove-destination var/lib/imap/mailboxes.db
var/lib/imap/mailboxes.db.bak
rm -f var/lib/imap/mailboxes.db
chroot . su - cyrus -c 'cvt_cyrusdb /var/lib/imap/mailboxes.db.bak db3
/var/lib/imap/mailboxes.db skiplist'
}
+ fi
}


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >