From: Luca Ceresoli <luca@lucaceresoli.net>
To: buildroot@busybox.net
Subject: [Buildroot] cyrus-imapd: static binaries are huge + choose binaries to install
Date: Fri, 24 Jun 2011 18:27:22 +0200 [thread overview]
Message-ID: <4E04BAEA.1040608@lucaceresoli.net> (raw)
In-Reply-To: <4E04828A.6030908@lucaceresoli.net>
Hi,
the last two issues that I'm facing with cyrus-imapd are not strictly
related to buildroot, nor to cross-compilation, but rather to using
cyrus-imapd in an embedded system.
I'm discussing them together in this e-mail as they are closely related.
The cyrus-imapd build system apparently does not currently allow to
build shared executables. This results in needlessly large files.
In a basic build for x86 (./configure && make), most of the executables
in imap/ have a size between 2.2 and 2.5 MB, and the sum is 62.8 MB.
This may not be a problem on a classic mail server, but storage space
can be a precious resource on embedded systems.
Clearly, using shared libraries would reduce the overall space required.
It looks like I'm not the first to think about this. In
http://bugzilla.cyrusimap.org/show_bug.cgi?id=3095
a patch was proposed and rejected. Unfortunately I could not apply it,
possibly because it's based on an old code base (2008).
Would it be feasible to add shared build support in the cyrus-imapd
build system?
For the same motivation (saving precious storage space), it would be
extremely useful to disable the compilation and installation of selected
executables.
The standard distribution installed as many as 30 executables in
/usr/cyrus/bin/, which cross-compiled for ARM and stripped take 32 MB.
Those that I really need take <7 MB and I wish I could get rid of them
by passing --disable-pop3proxyd or similar to ./configure.
AFAIK this is not currently possible in cyrus-imapd. Is this correct?
Do the Cyrus developers have anything similar in mind for the future of
cyrus-imapd? Is this feasible?
Thanks,
Luca
next prev parent reply other threads:[~2011-06-24 16:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-24 12:26 [Buildroot] Cross-compiling Cyrus in Buildroot Luca Ceresoli
2011-06-24 12:38 ` [Buildroot] cyrus-sasl in buildroot: apparent CFLAGS mismatch on saslauthd Luca Ceresoli
2011-06-24 12:52 ` [Buildroot] cyrus-sasl in buildroot: makemd5 is wrongly cross-compiled Luca Ceresoli
2011-06-24 13:03 ` [Buildroot] cyrus-sasl in buildroot: installs files with "arm-linux-" prefix Luca Ceresoli
2011-08-23 13:06 ` Luca Ceresoli
2011-06-24 15:20 ` [Buildroot] cyrus-imapd in buildroot: imtest does not cross-compile correctly Luca Ceresoli
2011-06-24 16:27 ` Luca Ceresoli [this message]
2011-08-23 13:30 ` [Buildroot] Cross-compiling Cyrus in Buildroot Luca Ceresoli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E04BAEA.1040608@lucaceresoli.net \
--to=luca@lucaceresoli.net \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox