Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sqlite and sqlite3 problem in apr-util and php
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
neil_leathers
n00b
n00b


Joined: 04 Feb 2010
Posts: 20

PostPosted: Thu Sep 22, 2011 3:04 pm    Post subject: sqlite and sqlite3 problem in apr-util and php Reply with quote

As with many packages that have multiple versions, dev-db/sqlite has a use flag sqlite to enable it and sqlite3 to enable version 3 in preference to other versions. From use.desc:
Code:
sqlite - Adds support for sqlite - embedded sql database
sqlite3 - Adds support for sqlite3 - embedded sql database

The packages dev-libs/apr-util and dev-lang/php are not following this definition and interpreting the flag sqlite to mean dev-db/sqlite version 2 is required. (Interpreting it as: sqlite - Adds support for sqlite2 - embedded sql database) However sqlite version 2 is broken on amd64 and appears to have been out of development for a long time. This is causing problems for packages that need to use sqlite.

Should a use flag of sqlite2 be created and used?

Alternatively, some packages use the approach:
Code:
sqlite3? ( dev-db/sqlite:3 )
!sqlite3? ( sqlite? ( dev-db/sqlite:0 ) )

to select one or the other.

This is more policy and policy enforcement so it doesn't fit well as a bug report but is a problem that need to be fixed.

(For dev-libs/apr-util this is a trivial change but for php it might need something like:
Code:
sqlite3? ( >=dev-db/sqlite-3.7.7.1 )
!sqlite3? ( sqlite? ( !pdo? ( =dev-db/sqlite-2* ) ) )
!sqlite3? ( sqlite? ( pdo? ( >=dev-db/sqlite-3.7.7.1 ) ) )


Or used the simple code and in the REQUIRED_USE have something like
Code:
!sqlite3? ( !pdo)

)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum