MediaWiki ships with an extension called SyntaxHighlight ( https://www.mediawiki.org/wiki/Extension:SyntaxHighlight ) that uses Pygments to perform syntax highlighting. This extension contains a binary called pygmentize that must have executable permissions in order to work, but pygmentize is installed with mode 0644 (no execute permission) by the www-apps/mediawiki package. Steps to reproduce: 1. emerge www-apps/mediawiki 2. stat /var/www/localhost/htdocs/mediawiki/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize Expected result: Mode 0755 Actual result: Mode 0644