[Bug 357946] New: cyrus rpm converts mailbox to different format than configured
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@forge.provo.novell.com ReportedBy: richard.bos@xs4all.nl QAContact: qa@suse.de 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.
https://bugzilla.novell.com/show_bug.cgi?id=357946
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=357946
User rhafer@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=357946#c1
Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=357946
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=357946#c2
Richard Bos
Please specify the Versions of the RPMs which you were trying to update. Did you try to install the factory RPMs on 10.3? And what is cyrus-imapd-kolab?
No, I did not try to install the factory RPMs on 10.3, that would probably not work, because of unsatisfied dependencies. This (kolab) cyrus-imapd rpm has been build on openSUSE's build server, with some additional patches that are needed for the groupware server kolab (http://www.kolab.org). To accomplish this, the (kolab) cyrus-imapd package is linked to the openSUSE_Factory cyrus-imapd project. https://build.opensuse.org/package/show?package=cyrus-imapd-kolab&project=server%3AKolab The package version is: # rpm -q cyrus-imapd-kolab cyrus-imapd-kolab-2.3.10-40.1 The specfile that is used: https://build.opensuse.org/package/view_file?file=cyrus-imapd-kolab.spec.diff&package=cyrus-imapd-kolab&project=server%3AKolab https://build.opensuse.org/package/view_file?file=cyrus-imapd.spec&package=cyrus-imapd&project=openSUSE%3AFactory As you can see there are no changes to the %post part of the rpm. So, this will happen to a regular cyrus-imapd rpm too. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=357946
User rhafer@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=357946#c3
--- Comment #3 from Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=357946
User rhafer@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=357946#c4
Ralf Haferkamp
https://bugzilla.novell.com/show_bug.cgi?id=357946
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=357946#c5
--- Comment #5 from Richard Bos
participants (1)
-
bugzilla_noreply@novell.com