Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 164960

Summary: www-apps/mediawiki needs dev-php/PEAR-Mail to use remote SMTP server
Product: Gentoo Linux Reporter: Anton Bolshakov <anton.bugs>
Component: New packagesAssignee: Philippe Trottier (RETIRED) <tchiwam>
Status: RESOLVED FIXED    
Severity: minor CC: tchiwam, web-apps
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Anton Bolshakov 2007-02-02 09:30:29 UTC
www-apps/mediawiki has a feature to use external smtp server.
You can enable it with follow configuration:
$wgSMTP = array(
 "host" => 'smtp.your-server.extension',
 "IDHost" => 'your-domain.extension',
 "port" => "25",
 "auth" => true/false,
 "username" => user,
 "password" => password
);
Gentoo based wiki will fail in this case with the follow:

mediawiki/includes/UserMailer.php on line 87
 Fatal error: require_once() [function.require]: Failed opening required 'Mail.php'

based on http://meta.wikimedia.org/wiki/MediaWiki_User's_Guide:_Tips_and_tricks
it requires dev-php/PEAR-Mail for it.

I suggest to add an optional flag to the ebuild for that.



Reproducible: Always

Steps to Reproduce:
1. enable external smtp server
2. try to send a mail


Actual Results:  
error: Mail.php not found

Expected Results:  
email has been sent
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-02 09:48:16 UTC
Sigh. We've punted the "dependencies" on mysql/postgresql for exactly the same reason - these are not dependencies. If you require local DB or remote mailserver, install what's needed yourself.
Comment 2 Philippe Trottier (RETIRED) gentoo-dev 2007-02-08 10:10:56 UTC
I will keep this open, and make a list of needed things on the post install doc. That should take care of both issues at hand.
Comment 3 Philippe Trottier (RETIRED) gentoo-dev 2007-02-08 15:23:32 UTC
Added a small note for the dependencies