Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157751 - php5_0-sapi.eclass doesn't have "pdo" USE flag in IUSE but some packages check if user has php built with this flag
Summary: php5_0-sapi.eclass doesn't have "pdo" USE flag in IUSE but some packages chec...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-10 11:44 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2007-03-03 12:44 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 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2006-12-10 11:44:38 UTC
>>> Emerging (1 of 1) dev-php5/pecl-pdo-mysql-1.0.1 to /
 * PDO_MYSQL-1.0.1.tgz MD5 ;-) ...                                                                                [ ok ]
 * PDO_MYSQL-1.0.1.tgz RMD160 ;-) ...                                                                             [ ok ]
 * PDO_MYSQL-1.0.1.tgz SHA1 ;-) ...                                                                               [ ok ]
 * PDO_MYSQL-1.0.1.tgz SHA256 ;-) ...                                                                             [ ok ]
 * PDO_MYSQL-1.0.1.tgz size ;-) ...                                                                               [ ok ]
 * checking ebuild checksums ;-) ...                                                                              [ ok ]
 * checking auxfile checksums ;-) ...                                                                             [ ok ]
 * checking miscfile checksums ;-) ...                                                                            [ ok ]
 * checking PDO_MYSQL-1.0.1.tgz ;-) ...                                                                           [ ok ]
 *
 * Using dev-lang/php-5.0.5-r5
 *

!!! ERROR: dev-php5/pecl-pdo-mysql-1.0.1 failed.
Call stack:
  ebuild.sh, line 1562:   Called dyn_setup
  ebuild.sh, line 665:   Called pkg_setup
  pecl-pdo-mysql-1.0.1.ebuild, line 28:   Called built_with_use '=dev-lang/php-5.0.5-r5' 'pdo'
  eutils.eclass, line 1617:   Called die

!!! dev-lang/php-5.0.5-r5 does not actually support the pdo USE flag!
!!! If you need support, post the topmost build error, and the call stack if relevant.


If user has =php-5.0* then building these packages fail:
dev-php5/pecl-pdo
dev-php5/pecl-pdo-dblib
dev-php5/pecl-pdo-firebird
dev-php5/pecl-pdo-mysql
dev-php5/pecl-pdo-oci
dev-php5/pecl-pdo-odbc
dev-php5/pecl-pdo-pgsql
dev-php5/pecl-pdo-sqlite

... While executing this line (It's in ebuilds of packages above):
if built_with_use =${PHP_PKG} pdo ; then

php5_0-sapi.eclass should have "pdo" in IUSE and should have the following line in php5_0-sapi_check_use_flags function:
phpconfutils_use_conflict "pdo" "pdo-external"
As php5_1-sapi.eclass do.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-10 11:53:42 UTC
Not much of an option to change the eclass; we could just change the ebuilds to

if ! built_with_use =${PHP_PKG} pdo-external ; then

I guess.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-03-03 12:44:28 UTC
# Mask PHP 4.3/5.0 series: old, unmaintained, unsupported,
# various security bugs, please upgrade to 4.4/5.1/5.2 series.
=dev-lang/php-4.3*
=dev-lang/php-5.0*

Feel free to reopen if you have problems with a supported PHP version.