Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434108 - After upgrading to dev-lang/php-5.4 PHP_TARGETS is still set to 5.3 by default
Summary: After upgrading to dev-lang/php-5.4 PHP_TARGETS is still set to 5.3 by default
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL: http://www.gentoo.org/proj/en/php/php...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-06 11:05 UTC by David Flogeras
Modified: 2012-09-07 10:38 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 David Flogeras 2012-09-06 11:05:30 UTC
I have only php-5.4 (and httpd-php-5.4) installed on my system, and I have unmerged 5.3 completely and restarted anything php related.

I have never set PHP_TARGETS in make.conf.

However, running emerge --info shows that PHP_TARGETS="php5-3". I'm not sure where it is being picked up, or if it will have adverse effects.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-09-06 14:17:09 UTC
Does this help?
Comment 2 David Flogeras 2012-09-06 16:56:04 UTC
Well I read that, but where I don't have any PHP_VERSIONS set, and only have 5.4 packages installed I wondered where/why it is getting the php5-3 in emerge --info. I could certainly set it in make.conf, but figured that by default it should pick up the correct version (and its one less thing I have to manage via make.conf).
Comment 3 David Flogeras 2012-09-06 17:11:39 UTC
Actually I think this stems from the section in /usr/portage/profiles/base/make.defaults:

---- snip ----
# Ole Markus With <olemarkus@gentoo.org> (09 Oct 2010)
# Default PHP targets (should always be latest stable version)
PHP_TARGETS="php5-3"

---- snip ----

Perhaps that needs a bump up?
Comment 4 Ole Markus With (RETIRED) gentoo-dev 2012-09-06 21:53:27 UTC
(In reply to comment #3)
> Actually I think this stems from the section in
> /usr/portage/profiles/base/make.defaults:
> 
> ---- snip ----
> # Ole Markus With <olemarkus@gentoo.org> (09 Oct 2010)
> # Default PHP targets (should always be latest stable version)
> PHP_TARGETS="php5-3"
> 
> ---- snip ----
> 
> Perhaps that needs a bump up?

Even though php 5.4 is stable on some archs now, it is not the default php version in Gentoo yet, mostly because some key extensions are still missing php 5.4 support. PHP_TARGETS is a variable you re supposed to set in make.conf if you want something specific.
Comment 5 David Flogeras 2012-09-07 00:26:31 UTC
I guess I've only been running 5.3 so the defaults always been ok. I'll mark resolved/invalid.  BTW is there a script/anything I have to run to rebuild affected packages after setting PHP_TARGETS? (like python-updater?)

My php stack is usually only php itself, apache/nginx, and drupal/wordpress as apps