2.4.6 and /usr/sbin/cyrus

Thomas Cataldo tcataldo at gmail.com
Mon Dec 20 21:34:25 UTC 2010

On Mon, Dec 20, 2010 at 5:52 PM, Ondřej Surý <ondrej at sury.org> wrote:

> Hi all,
> I have pushed my repository to alioth which introduces two major changes:
> - Introduction of versionless virtual packages (ie. cyrus-imapd
> depending on cyrus-imapd-2.4, etc.)
> - New /usr/sbin/cyrus tool (which is just crude shell script right
> now) which "knows" all the cyrus commands located in
> /usr/lib/cyrus/bin/*
> I have tried to preserve backwards compatibility (installing symlinks
> everywhere) with our old cyrus-imapd-2.2, but anyway this is a change
> which needs to be discussed with upstream. Jeroen, what do you think
> as a release manager? Is the /usr/sbin/cyrus a way which could
> possibly be adopted by upstream? (I was also thinking about calling it
> just 'cyr', but there is a name clash with console-cyrilic package
> :-(.)
> I tried to follow the git path as much as possible (manpages are
> renamed to cyrus-{something}) and the script tries hard to find the
> relevant command (it automatically prepends cyr_{command} and
> ctl_{command} and knows the check = chk_cyrus). More tweaks can be
> added later (f.e. we can introduce cyrus control {subcommand} to call
> /usr/lib/cyrus/bin/ctl_{subcommand}).
> Again I have finished this just before my end of worktime, so it just
> builds in the pbuilder. Brave hearts are welcomed to test the result
> using git-buildpackage. I do not guarantee anything, it may eat your
> system or your dog :).
Found another thing broken in the rules file :
        for i in master reconstruct quota deliver ; do \

                ln -s $(TMPPKG)/usr/sbin/cyrus $(TMPPKG)/usr/sbin/cyr$$i ;\


        for i in mbpath ctl_mboxlist ctl_deliver ctl_cyrusdb squatter \

                 tls_prune ipurge cyrdump cvt_cyrusdb chk_cyrus arbitron \

                 cyr_expire unexpunge sync_client sync_reset cyr_synclog \

                 cyr_dbtool cyr_df cyrus-makedirs ; do \

                ln -s $(TMPPKG)/usr/sbin/cyrus $(TMPPKG)/usr/sbin/$$i ;\


This will create broken symlinks with the build path hardcoded in the link :

# ls -l cyrdeliver
lrwxrwxrwx 1 root root 82 2010-12-20 20:49 cyrdeliver ->

For example.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-cyrus-imapd-debian-devel/attachments/20101220/afab115d/attachment.htm>

More information about the Pkg-Cyrus-imapd-Debian-devel mailing list