Right now the mediawiki ebuild installs sqlite3, but uses the sqlite2 backend of PHP (so also installs sqlite2). However the right backend is sqlite3 as it supports searching in mediawiki. So please change the sqlite backend for php to sqlite3. Reproducible: Always
Created attachment 261691 [details, diff] Change sqlite PHP backend to sqlite3 Change sqlite PHP backend to sqlite3
Fixed in CVS in mediawiki-1.16.2. I had to do things a bit differently than your patch since php-5.2.* doesn't have a sqlite3 USE flag.