Created attachment 380291 [details] Use /bin/mail only if available yum-cron depends on mailx, which will pull in a tree of SELinux related dependencies which is annoying in small non-SELinux setups. I can think of two easy ways to fix it: 1) Drop dependency on mailx, test for existence of /bin/mail before trying to use it. See attached (untested) patch - also needs removal of Requires: mailx. 2) Use /usr/sbin/sendmail instead of "mail" to send the mail; drop dependency on mailx, add one on /usr/sbin/sendmail. (There are small /usr/sbin/sendmail implementations in Fedora that have a very small dependency tree.)
Created attachment 380292 [details] Test for restorecon before invoking it Wow, I'm speechless... just... ignore the previous comment, please ;) This one should make it possible to drop the dependency on policycoreutils.
Comment on attachment 380291 [details] Use /bin/mail only if available ...but then again getting rid of the dependency on mailx wouldn't hurt either.
Ok, makes sense. Only thing to consider is if we need to warn the user somehow that all the mailing functionality isn't there. Perhaps not, as one really has to try to set up a system without it, so such a person would already know.
Well, mailing functionality is still there if cron mails stuff, so I wouldn't personally bother with adding additional warnings, comments in config files are just fine. Personally I would be just mildly annoyed if yum-cron warned me about it - I want only the regular cron mails, I don't want yet another config file to configure the target address for such mails. It is actually very easy to come up with a setup that doesn't have mailx. Just install Fedora in text mode (which equals minimal install) and you have one. On the other hand sendmail is there also in those minimal installs.
yum-cron-0.9.2-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/yum-cron-0.9.2-1.fc12
Ville - your simple changes are in the above testing update. If you're happy with it I'll push it to updates.
Yes, those look fine to me (ditto bug 550449).
yum-cron-0.9.2-1.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update yum-cron'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1794
yum-cron-0.9.2-1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.