Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 224601 - mail-client/mutt: support minimal USE flag
Summary: mail-client/mutt: support minimal USE flag
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Fernando J. Pereda (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-02 12:38 UTC by Martin Mokrejš
Modified: 2008-06-04 10:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mutt-1.5.16.ebuild.patch (mutt-1.5.16.ebuild.patch,1.65 KB, patch)
2008-06-04 10:37 UTC, Martin Mokrejš
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2008-06-02 12:38:57 UTC
Hi,
  I am trying to squeeze a system under 512MB and one of the packages pulling lots of other into the dependency tree is mutt:

# emerge -uNpv mutt

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] dev-libs/libxml2-2.6.31 [2.6.30-r1] USE="python* readline* -bootstrap -build* -debug -doc -examples% -ipv6 -test" 1,231 kB 
[ebuild  N    ] app-misc/mime-types-7  7 kB 
[ebuild     U ] sys-libs/gdbm-1.8.3-r4 [1.8.3-r3] USE="berkdb" 224 kB 
[ebuild  N    ] net-mail/mailbase-1  USE="pam" 0 kB 
[ebuild  N    ] app-text/build-docbook-catalog-1.2  4 kB 
[ebuild  N    ] dev-libs/libgpg-error-1.6  USE="-nls" 374 kB 
[ebuild  N    ] app-text/docbook-xsl-stylesheets-1.73.2  1,636 kB 
[ebuild  N    ] dev-libs/libgcrypt-1.4.1  USE="-bindist -idea -nls" 947 kB 
[ebuild  N    ] dev-libs/libxslt-1.1.23  USE="crypt python -debug -examples" 2,727 kB 
[ebuild  N    ] mail-client/mutt-1.5.16  USE="berkdb crypt gdbm ssl -debug -gnutls -gpgme -idn -imap -mbox -nls -nntp -pop -qdbm -sasl -sidebar -smime -smtp -vanilla" 3,509 kB 

Total: 10 packages (2 upgrades, 8 new), Size of downloads: 10,653 kB


I propose having "minimal" same impact as "vanilla":
# USE=vanilla emerge -uNpv mutt

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] app-misc/mime-types-7  7 kB 
[ebuild     U ] sys-libs/gdbm-1.8.3-r4 [1.8.3-r3] USE="berkdb" 224 kB 
[ebuild  N    ] net-mail/mailbase-1  USE="pam" 0 kB 
[ebuild   R   ] sys-devel/libtool-1.5.26  USE="vanilla*" 2,893 kB 
[ebuild  N    ] mail-client/mutt-1.5.16  USE="berkdb crypt gdbm ssl vanilla -debug -gnutls -gpgme -idn -imap -mbox -nls -nntp -pop -qdbm -sasl -sidebar -smime -smtp" 3,453 kB 

Total: 5 packages (1 upgrade, 3 new, 1 reinstall), Size of downloads: 6,575 kB
Comment 1 manuels 2008-06-03 21:05:52 UTC
there is a difference between the "minimal" and the "vanilla" use flag:

$ euse -i minimal vanilla
global use flags (searching: minimal vanilla)
************************************************************
[-    ] minimal - Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features)
[-    ] vanilla - Do not add extra patches which change default behaviour; DO NOT USE THIS ON A GLOBAL SCALE as the severity of the meaning changes drastically
Comment 2 Fernando J. Pereda (RETIRED) gentoo-dev 2008-06-03 22:35:41 UTC
The vanilla USE flag makes perfect sense here.

- ferdy
Comment 3 Martin Mokrejš 2008-06-04 09:02:17 UTC
So, please provide "minimal" support then.
Comment 4 Fernando J. Pereda (RETIRED) gentoo-dev 2008-06-04 09:25:02 UTC
What for?

Really... you aren't making any sense.

- ferdy
Comment 5 Martin Mokrejš 2008-06-04 09:34:31 UTC
It doesn't make any sense to install libxml2 build-docbook-catalog docbook-xsl-stylesheets libxslt at least for me when I want to read
mailer-daemon emails by mutt. ;-)

The minimal flag make sense mainly in a site-wide setup when you want to install really tiny server. It is hard to squeeze Gentoo under 512MB and teh "minimal" use flag seems to fit best such needs. Unfortunately, not many packages support it.
Comment 6 Fernando J. Pereda (RETIRED) gentoo-dev 2008-06-04 09:41:32 UTC
It is needed if you have to rebuild documentation which is needed if you are using third-party patches. By setting USE=vanilla you take whatever comes from the tarball (documentation is already built for you). If you want to squeeze it further, only set USE=vanilla and unset the rest. That should give you a pretty nice, tiny, mail reader. You can add imap, pop and smtp USE flags for free.

But really... there is no 'minimal' mutt build. Different people will have different 'minimal' needs.

- ferdy
Comment 7 Martin Mokrejš 2008-06-04 10:37:11 UTC
Created attachment 155481 [details, diff]
mutt-1.5.16.ebuild.patch

I know, but still having it support "minimal" in whatever way would be
fine. I really want just a reader and at such case I don't care about
having no extra patches. So, in my eyes the "minimal" is same like
vanilla. The point is that your never know in a large install/update
which package kicked in so many extra dependencies.

An untested example is attached. I am just not sure if I picked up the correct logical OR or not but hope you get what I mean.
Comment 8 Fernando J. Pereda (RETIRED) gentoo-dev 2008-06-04 10:48:47 UTC
I know what you mean. And I don't agree with that notion of minimal, moreover, I don't think there's room for a 'minimal' flag in mutt.

- ferdy