Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 233700 - wordpress php sql USE
Summary: wordpress php sql USE
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-02 11:59 UTC by Neil
Modified: 2008-08-04 18:58 UTC (History)
0 users

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 Neil 2008-08-02 11:59:55 UTC
Tried updating to wordpress-2.6 and config fails as dev-lang/php is not compiled with USE='[mysql|sqli]'.

Looks like a typo and should be 'sqlite' thats being checked

Reproducible: Always

Steps to Reproduce:
1. USE="-mysql sqlite" emerge dev-lang/php
2. emerge wordpress
3.

Actual Results:  
>>> Building (5 of 7) www-apps/wordpress-2.6
 * wordpress-2.6.tar.gz RMD160 SHA1 SHA256 size ;-) ...                  [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * Using dev-lang/php-5.2.6-r5
 * Checking for required PHP feature(s) ...
 * dev-lang/php-5.2.6-r5 needs to be re-installed with any of the following
 * USE flags enabled:
 *   mysql
 * mysqli
 * ERROR: www-apps/wordpress-2.6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *    wordpress-2.6.ebuild, line   25:  Called require_php_with_any_use 'mysql'              'mysqli'
 *       depend.php.eclass, line  329:  Called die
 * The specific snippet of code:
 *              die "Missing PHP USE flags found"
 *  The die message:
 *   Missing PHP USE flags found
 * If you need support, post the topmost build error, and the call stack if rel              vant.
 * A complete build log is located at '/var/tmp/portage/www-apps/wordpress-2.6/              emp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-apps/wordpre              s-2.6/temp/die.env'.


Expected Results:  
Wordpress should emerge cleanly.

Typo in wordpress-2.6.ebuild line 25...

	require_php_with_any_use mysql mysqli

...should read

	require_php_with_any_use mysql mysqlite
Comment 1 Neil 2008-08-02 12:04:36 UTC
I'm a dope and typed this out wrong...


(In reply to comment #0)

> Typo in wordpress-2.6.ebuild line 25...
> 
>         require_php_with_any_use mysql mysqli
> 
> ...should read
> 

This is the correct line....

         require_php_with_any_use mysql sqlite

Comment 2 Gunnar Wrobel (RETIRED) gentoo-dev 2008-08-04 06:14:17 UTC
I checked the wordpress docs again and couldn't find any indication that it would work with sqlite. Please reopen with a link to a document that describes configuring 2.6.0 for sqlite.
Comment 3 Neil 2008-08-04 06:26:34 UTC
Older versions seemed to work fine on my install and a quick google leads to some posts in the forum s (http://wordpress.org/tags/sqlite).  Couldn't find anything specific saying 2.6 would work with sqlite, but then couldn't find anything explicit saying it wouldn't.

Just checked and hadn't realised there was a new USE='mysqli' for improved mySQL support, so my bad on that front.

Will update the bug if I find anything/get it working.

Comment 4 Peter Westwood 2008-08-04 17:43:10 UTC
(In reply to comment #2)
> I checked the wordpress docs again and couldn't find any indication that it
> would work with sqlite. Please reopen with a link to a document that describes
> configuring 2.6.0 for sqlite.
> 

Speaking as a WordPress developer - we currently have no plans for sqlite support.  If someone wanted to implement sqlite support they would need to write a database abstraction class which rewrites all the mysql specific queries.
Comment 5 Neil 2008-08-04 18:58:36 UTC
(In reply to comment #4)
> (In reply to comment #2)
> > I checked the wordpress docs again and couldn't find any indication that it
> > would work with sqlite. Please reopen with a link to a document that describes
> > configuring 2.6.0 for sqlite.
> > 
> 
> Speaking as a WordPress developer - we currently have no plans for sqlite
> support.  If someone wanted to implement sqlite support they would need to
> write a database abstraction class which rewrites all the mysql specific
> queries.
> 

Fairy-muff.