Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343961 - dev-php5/xdebug-2.1.0-r1pulls both php-5.2 and php-5.3
Summary: dev-php5/xdebug-2.1.0-r1pulls both php-5.2 and php-5.3
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-03 11:36 UTC by Samu Voutilainen
Modified: 2010-12-31 14:12 UTC (History)
0 users

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


Attachments
xdebug installation from main repository (gentoo,12.75 KB, text/plain)
2010-11-03 11:47 UTC, Samu Voutilainen
Details
xdebug installation with USE_PHP="php5-3" (smlay,2.97 KB, text/plain)
2010-11-03 11:49 UTC, Samu Voutilainen
Details
cave info xdebug (xdebug.info,15.10 KB, text/plain)
2010-11-11 14:31 UTC, Samu Voutilainen
Details
Pecl output (pecl-output,10.96 KB, text/plain)
2010-12-31 14:12 UTC, Samu Voutilainen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samu Voutilainen 2010-11-03 11:36:40 UTC
With the new slotting system, when you are trying to compile xdebug to use simply php 5.3, it wants to pull 5.2 too. Adding USE_PHP="php5-3" to ebuild before php import makes the problem disappear, making xdebug only to depend on php 5.3.

I have only php5-3 as in PHP_TARGETS. 

Reproducible: Always

Steps to Reproduce:
1. Install php 5.3 from slot :5.3
2. Ensure no other php versions are installed
3. Try to install xdebug.

Actual Results:  
xdebug pulled php:5.2.

Expected Results:  
xdebug installed for php:5.3.
Comment 1 Samu Voutilainen 2010-11-03 11:47:04 UTC
Created attachment 253021 [details]
xdebug installation from main repository
Comment 2 Samu Voutilainen 2010-11-03 11:49:02 UTC
Created attachment 253023 [details]
xdebug installation with USE_PHP="php5-3"

Also, with xdebug already installed this way, I could reinstall it with real ebuild. This didn’t work when xdebug was already installed with php5-2.
Comment 3 Ole Markus With (RETIRED) gentoo-dev 2010-11-11 10:59:46 UTC
With PHP_TARGETS="php5-3" set in make.conf, xdebug should only be built for php5-3. Can you please give me emerge --info xdebug?
Comment 4 Samu Voutilainen 2010-11-11 14:31:28 UTC
Created attachment 253997 [details]
cave info xdebug

This is from "cave info xdebug". Or do you need something else?
Comment 5 Matti Bickel (RETIRED) gentoo-dev 2010-11-11 14:42:26 UTC
Paludis does not pull from make.conf, afaik.
You need to set USE_PHP in your use.conf like so (according to paludis.org, I've not tried this):
dev-php5/xdebug PHP_TARGETS: -php5-2 php5-3

PHP_TARGETS is the use expanded variable that controls whether we build for a slot or not.
Does that solve your problem?
Comment 6 Samu Voutilainen 2010-11-11 15:38:13 UTC
Yeah, it doesn't.

Those attachments gentoo, smlay demonstrates the problem. I'm afraid they are not so clear, so I'll explain them(better late than never...)

in attachment named gentoo, cave wants use flag PHP_TARGETS_PHP_5-2 be set. In smlay this does not happen, because it is restricted to 5.3 by USE_PHP=php5-3

In use.conf (paludis' use conf file, obviously :) I have "*/* PHP_TARGETS: -* php5-3". After all, if the 5-2 had been enabled there, cave wouldn't try me to force to set that php5-2 flag for xdebug but just install php5-2 and install xdebug for both.
Comment 7 Ole Markus With (RETIRED) gentoo-dev 2010-11-11 17:17:17 UTC
Some comments here.

First of all, USE_PHP is an "internal" variable used by ebuilds to specify for which slots an extension _can_ be built against. xdebug can be built against both 5.2 and 5.3, so USE_PHP should (must) be set to php5-3 and php5-2. I.e The purpose of USE_PHP is to populate the IUSE string with php_targets_*.

PHP_TARGETS, however, is how you choose which slots to build for, which in portage is set globally by the user in make.conf and locally (per package) in package.use.

Setting "*/* PHP_TARGETS: -* php5-3" should work. Messing with USE_PHP is certainly not the way to go.
Comment 8 Samu Voutilainen 2010-11-11 17:20:39 UTC
Uhm, that USE_PHP stuff was modified ebuild for testing and allowing me to install it in first place and PHP_TARGETS was config in the configuration file. Setting USE_PHP in use.conf shouldn't work in first place, or should it...
Comment 9 Ole Markus With (RETIRED) gentoo-dev 2010-11-11 19:27:07 UTC
(In reply to comment #8)
> Uhm, that USE_PHP stuff was modified ebuild for testing and allowing me to
> install it in first place and PHP_TARGETS was config in the configuration file.
> Setting USE_PHP in use.conf shouldn't work in first place, or should it...
> 

Uhm, yes and no. IUSE gets cached, so it works in those cases where the cache is (re)built.
Comment 10 Ole Markus With (RETIRED) gentoo-dev 2010-12-08 19:18:12 UTC
Just wondering if this is still an issue or not. Did you manage to get it working with paludis?
Comment 11 Samu Voutilainen 2010-12-08 20:14:25 UTC
(In reply to comment #10)
> Just wondering if this is still an issue or not. Did you manage to get it
> working with paludis?
> 

Nope, still same result. This computer has never even seen PHP, so I suppose I can say this will happen for every paludis user who doesn’t have xdebug already installed... Output is same with attachment “gentoo”.
Comment 12 Bartosz Krzeszewski 2010-12-10 20:00:26 UTC
Is this bug only for paludis users? Bacause I have never had paludis installed and I can't install xdebug because =dev-lang/php-5.3.3-r3" is blocking dev-php5/xdebug-2.1.0 :

emerge -pv xdebug

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-php/xdebug-client-2.1.0  USE="-libedit" 295 kB
[ebuild  N    ] dev-php5/xdebug-2.1.0  0 kB
[blocks B     ] =dev-lang/php-5.3.3-r3 ("=dev-lang/php-5.3.3-r3" is blocking dev-php5/xdebug-2.1.0)

Total: 2 packages (2 new), Size of downloads: 295 kB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (dev-php5/xdebug-2.1.0::gentoo, ebuild scheduled for merge) pulled in by
    xdebug
Comment 13 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-12-27 22:36:42 UTC
(In reply to comment #12)
> Is this bug only for paludis users? Bacause I have never had paludis installed
> and I can't install xdebug because =dev-lang/php-5.3.3-r3" is blocking
> dev-php5/xdebug-2.1.0 :
> 
> emerge -pv xdebug
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild  N    ] dev-php/xdebug-client-2.1.0  USE="-libedit" 295 kB
> [ebuild  N    ] dev-php5/xdebug-2.1.0  0 kB
> [blocks B     ] =dev-lang/php-5.3.3-r3 ("=dev-lang/php-5.3.3-r3" is blocking
> dev-php5/xdebug-2.1.0)
> 
> Total: 2 packages (2 new), Size of downloads: 295 kB
> Conflict: 1 block (1 unsatisfied)
> 
>  * Error: The above package list contains packages which cannot be
>  * installed at the same time on the same system.
> 
>   (dev-php5/xdebug-2.1.0::gentoo, ebuild scheduled for merge) pulled in by
>     xdebug
> 

You need to use dev-php5/xdebug-2.1.0-r1, that stablereq is handled in bug 349659

I'm going to close this bug report, there is nothing to fix.
Comment 14 Samu Voutilainen 2010-12-31 14:12:41 UTC
Created attachment 258525 [details]
Pecl output

This very same bug happens with  dev-php5/pecl-ssh2:0::gentoo 0.11.2-r1 too.