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.
Created attachment 253021 [details] xdebug installation from main repository
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.
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?
Created attachment 253997 [details] cave info xdebug This is from "cave info xdebug". Or do you need something else?
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?
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.
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.
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...
(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.
Just wondering if this is still an issue or not. Did you manage to get it working with paludis?
(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”.
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
(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.
Created attachment 258525 [details] Pecl output This very same bug happens with dev-php5/pecl-ssh2:0::gentoo 0.11.2-r1 too.