Bug 967302
Summary: | Missing symlink in /var/www/wiki after initial install | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Fritz Elfert <fritz> | ||||
Component: | mediawiki | Assignee: | Michael Cronenworth <mike> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 18 | CC: | fritz, mike, puiterwijk | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | mediawiki-1.19.7-4.fc18 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2013-08-06 00:11:55 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Fritz Elfert
2013-05-26 12:32:47 UTC
I'm not sure why you created a bug report since you are not using the install script. The package does not automatically create files in /var/www/wiki if you do not use the scripts. If you had any there then it is your responsibility. 1. It definitely *does* create /var/www/wiki with some contents. 2. Quote from the installed /etc/httpd/conf.d/mediawiki.conf: # This is a sample configuration for a wiki instance located under # /var/www/wiki and exposed as http://thishost/wiki. Please read # /usr/share/doc/mediawiki-*/README.RPM on whether to use this # instance or create copies of it. So this suggests that the install-script is optional! (Only required if one wants to create multiple instances instead of using the predefined one located at /var/www/wiki I suggest you fix this comment or create a README.Fedora wher ist clearly states that the predefinded thingy mentioned above is *not* suppoerted. After some thorough testing on a FRESHLY F18 VM: (In reply to Michael Cronenworth from comment #1) > I'm not sure why you created a bug report since you are not using the > install script. > > The package does not automatically create files in /var/www/wiki if you do > not use the scripts. If you had any there then it is your responsibility. This is simply not true! See the following proof: # rpm -V mediawiki (no output, so nothing modified) # rpm -qf /var/www/wiki mediawiki-1.19.6-1.fc18.noarch # rpm -qf /etc/mediawiki/instances mediawiki-1.19.6-1.fc18.noarch # cat /etc/mediawiki/instances /var/www/wiki # rpm -q --scripts mediawiki postinstall scriptlet (using /bin/sh): /usr/sbin/mw-updateallinstances >> /var/log/mediawiki-updates.log 2>&1 || : # sh -x /usr/sbin/mw-updateallinstances + read path + cat /etc/mediawiki/instances + grep '^ *#' + echo /var/www/wiki + mw-createinstance /var/www/wiki + test -e /var/www/wiki/LocalSettings.php + read path q.e.d. The actual bug is in mw-createinstance in the for-loop starting at line 26, which misses several names for which symlinks should be created. Another comment on your closing comment: Since the actual bug is in mw-createinstance it would have given the exact same result if i had used that script in the first place. No matter how the package is installed - it does not work at all without tweaking the file hierarchy manually. Created attachment 755027 [details]
Patch for fixing mw-createinstance.in
This patch fixes mw-createinstance.in (refereced as Source4 in mediawiki.spec)
It adds symlinks for the following 4 subdirs from /usr/share/mediawiki to the current instance:
extensions languages resources skins
mediawiki-1.19.7-4.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/mediawiki-1.19.7-4.fc18 Package mediawiki-1.19.7-4.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing mediawiki-1.19.7-4.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-13797/mediawiki-1.19.7-4.fc18 then log in and leave karma (feedback). mediawiki-1.19.7-4.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. |