Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 294944

Summary: dev-lang/php-5.2 sqlite improvements
Product: Gentoo Linux Reporter: Christoph Brill (egore) (RESIGNED) <egore>
Component: [OLD] UnspecifiedAssignee: PHP Bugs <php-bugs>
Status: RESOLVED FIXED    
Severity: trivial CC: holger
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://php.net/manual/en/book.sqlite3.php
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 312775    
Attachments: sqlite-support.patch

Description Christoph Brill (egore) (RESIGNED) 2009-11-28 09:40:57 UTC
PHP offer 3 types of SQLite drivers:

1.) SQLite
2.) PDO
3.) SQLite3 (http://php.net/manual/en/book.sqlite3.php)

The last one is not built when building php with USE="sqlite". From what I've seen in the php5_2-sapi.eclass is that we
- enable (1.) when adding USE="sqlite"
- enable (1.) and (2.) when adding USE="sqlite pdo"

My suggestion is to
- enable (3.) when adding USE="sqlite3"

I'll attach a completely untested patch against the eclass for that as I seriously don't have a clou on how to test that (replacing the eclass did not offer me the new use flag).

Reproducible: Always

Steps to Reproduce:
Comment 1 Christoph Brill (egore) (RESIGNED) 2009-11-28 09:41:18 UTC
Created attachment 211399 [details, diff]
sqlite-support.patch
Comment 2 Rodrigo Saboya 2009-12-17 12:33:22 UTC
This seems to be the case already, no?
Comment 3 Christoph Brill (egore) (RESIGNED) 2010-02-12 18:24:25 UTC
No, this isn't handled by the eclass yet. You never get sqlite3 support without PDO.
Comment 4 Matti Bickel (RETIRED) gentoo-dev 2010-04-15 00:03:08 UTC
We will look into this for php-5.3, adding to tracker.
Comment 5 Matti Bickel (RETIRED) gentoo-dev 2010-06-11 19:08:56 UTC
So, php-5.3.2 has a sqlite3 USE-flag. Problem is: it doesn't do anything else than pull in sqlite-3*. The sqlite3 extension still gets disabled by default.

This is fixed in the overlay and will migrate to the main tree shortly. Leaving open until it does.
Comment 6 Matti Bickel (RETIRED) gentoo-dev 2010-06-11 19:52:23 UTC
Scrap that part about "it's not doing anything". I wasn't aware of the behaviour of phpconfutils in this case and when you enable USE="sqlite3" you should get sqlite3 support right now.