FS#5891 - mailx should depend on postfix

Attached to Project: Arch Linux
Opened by Darwin Bautista (djclue917) - Saturday, 25 November 2006, 08:50 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 14 April 2007, 16:12 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

darwin@excelsior:~$ mail dummy
Subject: test
EOT
/usr/sbin/sendmail: No such file or directory
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Saturday, 14 April 2007, 16:12 GMT
Reason for closing:  Duplicate
Additional comments about closing:  http://bugs.archlinux.org/task/4812
Comment by Roman Kyrylych (Romashka) - Saturday, 25 November 2006, 09:54 GMT
It should not depend on postfix, because /usr/sbin/sendmail is provided by many MTAs.
Comment by Darwin Bautista (djclue917) - Saturday, 25 November 2006, 10:19 GMT
Then there should be an install script that would inform the user that (1) mailx needs an MTA and then (2) echo a list of MTA's.
Comment by Roman Kyrylych (Romashka) - Saturday, 25 November 2006, 12:39 GMT
(2) is not good, because there are many MTAs in different repos. What to do when there will be another MTA? Update mailx.install again?
Comment by Darwin Bautista (djclue917) - Saturday, 25 November 2006, 13:30 GMT
I see your point... But how about this:

1. We put a provides=('something') in every MTA, where 'something' can be 'mta' or some other appropriate name.
2. We add 'mta' as a dependency of mailx: depends=('glibc' 'mta')

I think this is a better solution since (1) mailx does really need an MTA in order to function but (2) there are many available MTA's in different repos.

What do you think about that?
Comment by Roman Kyrylych (Romashka) - Saturday, 25 November 2006, 14:32 GMT
postfix's PKGBUILD already has provides=('smtp-server')
There is a problem with making mailx to depend on smtp-server: how pacman will choose which package to install? If I'm right, it will just refuse to install mailx when some package that provides smtp-server is not installed. :-/
Another problem is that mailx is on Base Install CD. It's there because it's a dependency for another package (I don't know why though). Adding some simple smtp-server as a dependency for mailx will be yet another unneeded dependency on _Base_ Install CD.
Comment by Darwin Bautista (djclue917) - Saturday, 25 November 2006, 14:46 GMT
Oh.. I overlooked that provides in postfix... Anyway, mailx will be rendered useless without an smtp-server... So.. Including a package which doesn't work because of an unmet dependency doesn't make any sense. With that said, I think it is better to add "yet another unneeded dependency on _Base_ Install CD" (which is really a needed dependency) that to have a useless mailx package.
Comment by Roman Kyrylych (Romashka) - Saturday, 25 November 2006, 14:50 GMT
I agree with adding smtp-server as a dependency for mailx, but then I don't see the point of keeping mailx on Base CD as a logrotate dependency. Isn't logrotate working fine without mailx?
Comment by Darwin Bautista (djclue917) - Saturday, 25 November 2006, 14:58 GMT
I just checked out Debian's package page for logrotate: "Logrotate allows for the automatic rotation compression, removal and mailing of log files". Maybe that's the reason why mailx is listed as a dependency. However, in Debian's logrotate page, mailx is listed only as a recommended package, which means that it isn't really a dependency. Then maybe we could just suggest/recommend the installation of mailx via the install script?
Comment by Roman Kyrylych (Romashka) - Saturday, 25 November 2006, 15:03 GMT
yes

Loading...