Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440574 - dev-lang/php: some elog messages should only be shown when upgrading from an old enough package.
Summary: dev-lang/php: some elog messages should only be shown when upgrading from an ...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
: 440572 (view as bug list)
Depends on:
Blocks: first-time-messages
  Show dependency tree
Reported: 2012-10-31 11:29 UTC by poletti.marco
Modified: 2016-07-11 02:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description poletti.marco 2012-10-31 11:29:33 UTC
Disclaimer: this bug has been filed in a semi-automated manner.

When emerging the package dev-lang/php-5.4.6, the following elog messages are displayed:

 * Please note that this version of PHP does not yet come with a suhosin patch
 * Installing php.ini for cli into /etc/php/cli-php5.4
 * To switch cli to use php:5.4, run
 *     eselect php set cli php5.4
 * Make sure that PHP_TARGETS in /etc/make.conf includes php5-4 in order
 * to compile extensions for the 5.4 ABI
 * This ebuild installed a version of php.ini based on php.ini-development version.
 * You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either
 * 'production' or 'development' in /etc/make.conf
 * Both versions of php.ini can be found in /usr/share/doc/php-5.4.6
 * For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:

Such messages should only be displayed when the package is upgraded from an old enough package (and possibly for new installs).
These situations can be checked in the ebuild as follows:

if has_version '<dev-lang/php-1.0'; then

Or, if the message should also be displayed for new installs:

if !has_version 'dev-lang/php' || has_version '<dev-lang/php-1.0'; then

Remember to replace 1.0 with the right version number.

See the tracker bug 440214 for more details.
Comment 1 Ole Markus With (RETIRED) gentoo-dev 2012-10-31 12:30:24 UTC
*** Bug 440572 has been marked as a duplicate of this bug. ***
Comment 2 Ole Markus With (RETIRED) gentoo-dev 2012-10-31 12:31:55 UTC
Displaying most of this message only for new installs of a slot should be enough.
Comment 3 Michael Orlitzky gentoo-dev 2016-07-11 02:04:49 UTC
commit 7cd30f93ff9444fe97fe6ed2f44979c8598cf26a
Author: Michael Orlitzky <>
Date:   Sun Jul 10 21:25:46 2016 -0400

    dev-lang/php: new edit/revision to hide some elog messages when possible.

    Two of the elog messages that we show only need to be dealt with
    once. If the user has the recently-emerged slot of PHP in his
    PHP_TARGETS already, then we don't need to bug him about that. And if
    he has PHP_INI_VERSION set to a legal value, then we don't need to
    inform him about that either.

    A new revision is made for the php-5.6.x series. The 7.x series is not
    stable, so an in-place edit was made.

    Gentoo-Bug: 440574

    Package-Manager: portage-2.2.28

 dev-lang/php/php-5.6.23-r1.ebuild | 814 ++++++++++++++++++++++++++++++++++++++++++++++++++
 dev-lang/php/php-7.0.8.ebuild     |  47 +--
 2 files changed, 841 insertions(+), 20 deletions(-)