Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236411 - mediawiki 1.13.0 ebuild doesn't install all necessay files.
Summary: mediawiki 1.13.0 ebuild doesn't install all necessay files.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Christian Parpart (RETIRED)
URL:
Whiteboard:
Keywords:
: 238657 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-02 03:46 UTC by Dan Johnston
Modified: 2008-09-29 06:44 UTC (History)
9 users (show)

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 Dan Johnston 2008-09-02 03:46:55 UTC
After upgrading from mediawiki 1.12.0 to 1.13.0 using webapp-config, I am unable to run the mediawiki update script (wiki/maintenance/update.php).  The first error is:

thor wiki # php maintenance/update.php
Warning: AutoLoader::require(/raid/www/danlandonline.net/htdocs/wiki/includes/parser/Parser.php): failed to open stream: No such file or directory in /raid/www/danlandonline.net/htdocs/wiki/includes/AutoLoader.php on line 507
Fatal error: AutoLoader::require(): Failed opening required '/raid/www/danlandonline.net/htdocs/wiki/includes/parser/Parser.php' (include_path='/raid/www/danlandonline.net/htdocs/wiki:/raid/www/danlandonline.net/htdocs/wiki/includes:/raid/www/danlandonline.net/htdocs/wiki/languages') in /raid/www/danlandonline.net/htdocs/wiki/includes/AutoLoader.php on line 507

After installing the includes/parser/* files from the mediawiki-1.13.0.tar.gz distfile, I get the following error:

thor wiki # php maintenance/update.php
MediaWiki 1.13.0 Updater

Warning: AutoLoader::require(/raid/www/danlandonline.net/htdocs/wiki/includes/db/Database.php): failed to open stream: No such file or directory in /raid/www/danlandonline.net/htdocs/wiki/includes/AutoLoader.php on line 507
Fatal error: AutoLoader::require(): Failed opening required '/raid/www/danlandonline.net/htdocs/wiki/includes/db/Database.php' (include_path='/raid/www/danlandonline.net/htdocs/wiki:/raid/www/danlandonline.net/htdocs/wiki/includes:/raid/www/danlandonline.net/htdocs/wiki/languages') in /raid/www/danlandonline.net/htdocs/wiki/includes/AutoLoader.php on line 507

After installing includes/db/* from the installation tarball, the update script worked successfully.  

This is not the first time the mediawiki ebuild has been broken due to not installing all distributed files.  Can you PLEASE just install everything that comes with the installation tarball?  At least add a USE flag option to install all files.

To fix this particular bug, please add include/parser/* and include/db/* to the ebuild's list of installed files.

Reproducible: Always

Steps to Reproduce:
1. Install mediawiki 1.12.0
2. Update to mediawiki 1.13.0
3. Run wiki/maintenance/update.php

Actual Results:  
Fails to find all php files required for the update.php script.

Expected Results:  
Run the update.php script successfully.
Comment 1 Dan Johnston 2008-09-02 03:53:06 UTC
Also missing wiki/includes/specials/* from install.  Needed to access "server.example.com/wiki/index.php/Special:Specialpages".
Comment 2 Roman Karshiev 2008-09-16 22:07:57 UTC
Same error. 

If manually unpack sources, necessary files can be found:

# ls db/*
db/DatabaseMssql.php   db/Database.php          db/DatabaseSqlite.php   db/LBFactory.php     db/LoadMonitor.php
db/DatabaseOracle.php  db/DatabasePostgres.php  db/LBFactory_Multi.php  db/LoadBalancer.php

But in webapps directory they not exists.
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2008-09-25 14:12:56 UTC
*** Bug 238657 has been marked as a duplicate of this bug. ***
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2008-09-28 16:52:17 UTC
I hate to "me too", but my mediawiki install just broke :P
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2008-09-28 20:10:00 UTC
I'm going to fix this in mediawiki-1.13.1 but since I need a bit more time to test new ebuild currently I've masked mediawiki-1.13.0.
Comment 6 Jonathan Callen (RETIRED) gentoo-dev 2008-09-29 01:50:16 UTC
The easiest fix seems to be to add the following directories to the DIRS array:
    includes/db
    includes/parser
    includes/specials
    maintenance/sqlite
    skins/common/images/ar
    skins/common/images/be-tarask
    skins/common/images/cyrl

and to remove the following directory:
    skins/htmldump
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2008-09-29 06:44:20 UTC
Fixed in mediawiki-1.13.1.

Easiest fix is not the best fix ;) In this case I've changed installation procedure and now we selectively remove unnecessary files instead of selectively install them - this helps to avoid bugs like this in future. Also added postupgrade instructions as I found that some people are unaware how to upgrade MediaWiki... Thank you for patience and Enjoy.