Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3392 - logrotate requires mailx?
Summary: logrotate requires mailx?
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Ben Lutgens (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-04 18:06 UTC by Target
Modified: 2003-02-04 19:42 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Target 2002-06-04 18:06:22 UTC
I've seen some strange new dependencies upon an emerge rsync, but this one
doesn't even make sense. liblockfile maybe, but mailx?

Why does a log rotator need a graphical mail client? Or for that matter even if
it did require it, why would it be important enough to be required by default?

This may seem like a silly little thing, but it contributes to bloat, and
getting away from bloat is one of gentoo's biggest draws.
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-04 18:50:59 UTC
http://packages.debian.org/unstable/admin/logrotate.html

Check that out.  IF you have a work-around, please do let me know
Comment 2 Target 2002-06-04 20:07:00 UTC
Now that's unsettling.
Sorry, but I don't have a workaround to the logrotate developers being on crack
at this time. :-P

I wonder if the dependency can be disabled/stripped out...
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-04 20:28:10 UTC
Target, do me a favour and unmerge mailx, then create a symlink /bin/mail to
point to /usr/bin/mail which should be provided by ssmtp or postfix or
something, and see if it works.  If it does, we're in busines.
Comment 4 Target 2002-06-04 21:43:03 UTC
I didn't have mailx to begin with, but I also don't have a /usr/bin/mail. Would
it care if it's just a symlink to a dummy file?
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-04 22:36:38 UTC
well, as far as I know, logrotate likes to e-mail reports to the system
administrator.  Please have a look closely to see if it is an optional thing,
but I doubt it.  I will also have a look.
Comment 6 Target 2002-06-05 12:09:09 UTC
It bears noting that I've never had mailx (or any mail program for that matter)
linked to /bin/mail or /usr/bin/mail, and logrotate has never sent me email for
any reason.

I'd figure the mailing feature can be and has been disabled in previous
versions, or it just doesn't do anything if you don't have mailx. That's fine
with me, though. Is there a -mailx USE switch?
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2002-06-08 21:35:34 UTC
I'm not sure about the USE flag. Exploring existing ones to see if any are
applicable.

but the -r1 release has no dependency on mailx, just a note in pkg_setup()
Comment 8 Ben Lutgens (RETIRED) gentoo-dev 2002-06-23 10:36:15 UTC
mailx is not a GUI mail client. It's a version of the BSD command line mail app..
blutgens@athlon blutgens $ emerge search mailx
[ Results for search key : mailx ]
[ Applications found : 1 ]
 
*  net-mail/mailx
      Latest version Available: 8.1.1.11
      Latest version Installed: [ Not Installed ]
      Homepage: http://www.debian.org
      Description: The /bin/mail program, which is used to send mail via shell
      scripts.

Just install the silly thing, it's teeny. The DEPEND stays.