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

Bug 117492

Summary: PHP shouldn't be built with --disable-ctype by default
Product: Gentoo Linux Reporter: Ævar Arnfjörð Bjarmason <avarab>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED CANTFIX    
Severity: enhancement CC: avarab, luke-jr+gentoobugs
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
URL: http://www.php.net/ctype
Whiteboard:
Package list:
Runtime testing required: ---

Description Ævar Arnfjörð Bjarmason 2006-01-02 14:23:31 UTC
Since php 4.2.0 PHP has been built with --with-ctype by default, Gentoo explicitly disables this with --disable-ctype unless the ctype usflag (which only applies to PHP) is set, the default should be to build the ctype extension unless -ctype is in USE.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-02 14:29:28 UTC
(In reply to comment #0)
> the default should be to build the ctype extension unless -ctype is in USE.

Not possible with current portage versions, there are no per-package default use flags (see Bug 61732 for more information).
Comment 2 Ævar Arnfjörð Bjarmason 2006-01-02 19:12:31 UTC
REOPENING, this bug does not depend on bug 61732, per package use flags are irrelivant in this case since the use flag in question was created for the package in question and is only used by it.

This is a request to turn the ctype use flag on by default because without it dev-lang/php is not built with functions that every php build has had by default since 4.3.0, which means by default Gentoo build is not compatable with a large amount of PHP code in the wild.
Comment 3 Ævar Arnfjörð Bjarmason 2006-01-02 19:22:33 UTC
(In reply to comment #2)
> dev-lang/php is not built with functions that every php build has had by
> default since 4.3.0.

Since 4.2.0 I mean.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-01-03 01:08:21 UTC
(In reply to comment #2)
> This is a request to turn the ctype use flag on by default because without it
> dev-lang/php is not built with functions that every php build has had by
> default since 4.3.0, which means by default Gentoo build is not compatable with
> a large amount of PHP code in the wild.

Like with many other php use flags, which you need to enable as well. Won't happen until bug 61732 is fixed, there are lots of people complaining about cruft in make.defaults already.
Comment 5 Hinrik Örn Sigurðsson 2006-01-03 01:59:18 UTC
A good fix would be to use a "noctype" flag instead.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-01-03 02:08:29 UTC
(In reply to comment #5)
> A good fix would be to use a "noctype" flag instead.

http://dev.gentoo.org/~plasmaroo/devmanual//general-concepts/use-flags/

Comment 7 Luke-Jr 2009-01-17 21:44:44 UTC
bug 61732 is fixed, this should be reopened