View previous topic :: View next topic |
Author |
Message |
Palatonka n00b
Joined: 12 Mar 2014 Posts: 21
|
Posted: Mon Mar 20, 2017 9:35 am Post subject: Mediawiki – CSS loading failed with >sys-apps/file-5.11 |
|
|
There's an old bug that prevents mediawiki to load css styles (combination of >file-5.11 and apache subversion module):
https://thomaswabner.wordpress.com/2013/09/07/no-css-in-mediawiki-anymore/
A known – WORKAROUND – so far was to downgade sys-apps/file to version 5.11, with local portage overlay.
Unfortunately since a few days the class files seems to be removed from tree, so ebuild or emerge failes with the following error:
Code: |
* ERROR: sys-apps/file-5.11::x-portage failed (depend phase):
* distutils.eclass could not be found by inherit()
*
* Call stack:
* ebuild.sh, line 611: Called source '/usr/local/portage/sys-apps/file/file-5.11.ebuild'
* file-5.11.ebuild, line 10: Called inherit 'eutils' 'distutils' 'libtool' 'toolchain-funcs'
* ebuild.sh, line 284: Called die
* The specific snippet of code:
* [[ -z ${location} ]] && die "${1}.eclass could not be found by inherit()"
| – Output –
emerge --info '=sys-apps/file-5.11:-portage':
http://lpaste.net/5506382604456165376
emerge -pqv '=sys-apps/file-5.11:-portage':
http://lpaste.net/353735
Does anybody know what to do now?
Thanks in advance and kind regards. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30915 Location: here
|
Posted: Mon Mar 20, 2017 10:20 am Post subject: |
|
|
You can try to download old ebuild from here (in particular this). Seems to work _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Tue Mar 21, 2017 1:03 am Post subject: Re: Mediawiki – CSS loading failed with >sys-apps/file-5. |
|
|
Palatonka wrote: | Does anybody know what to do now? | Patch the faulting program to fix the bug properly, so that new versions of file do not cause the problematic interaction?
According to the underlying PHP bug report, another workaround would be to disable Subversion support. As noted in a comment on the blog post linked by OP, the rise of Git has likely made the Subversion module obsolete for most users. |
|
Back to top |
|
|
Palatonka n00b
Joined: 12 Mar 2014 Posts: 21
|
Posted: Tue Mar 21, 2017 2:30 pm Post subject: |
|
|
Unfortunately I couldn't get rid of subversion or switch to git so easily. That's not an option.
The ebuild was already the new version you've pointed on.
No change so far.
After the last emerge sync this error always comes up.
If I restore the last vm snapshot without the latest emerge sync, it has still worked.
So something must have changed regarding sys-apps/file in the latest updates (last 2 weeks at most). |
|
Back to top |
|
|
Palatonka n00b
Joined: 12 Mar 2014 Posts: 21
|
Posted: Wed Mar 22, 2017 12:49 pm Post subject: |
|
|
– Solution –
I changed the ebuild manually from:
EAPI="2"
PYTHON_DEPEND="python? *"
inherit eutils distutils libtool toolchain-funcs
to:
EAPI="5"
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
DISTUTILS_OPTIONAL=1
inherit eutils distutils-r1 libtool toolchain-funcs multilib-minimal
After that the emerge of file-5.11 (local portage overlayed) succeeded.
Does anybody concerns about it?
BR |
|
Back to top |
|
|
|