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

Bug 337710

Summary: dev-lang/php-5.2.14 conflict with www-server/apache and USE="threads"
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: PHP Bugs <php-bugs>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Agostino Sarubbo gentoo-dev 2010-09-16 21:45:39 UTC
I know a conflict installing php with apache.
The commands and their output data are:


E2160 ago # emerge -pv php

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

Calculating dependencies... done!

emerge: there are no ebuilds built with USE flags to satisfy "www-servers/apache[threads=]".
!!! One of the following packages is required to complete your request:
- www-servers/apache-2.2.16 (Change USE: -threads)
- dev-lang/php-5.2.14 (Change USE: +threads)
(dependency required by "dev-lang/php-5.2.14" [ebuild])
(dependency required by "php" [argument])

Now i change in p.use:
www-servers/apache -threads
dev-lang/php -gdbm threads.

Now i restart emerge of php;

E2160 ago # emerge -pv php

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

Calculating dependencies... done!

emerge: there are no ebuilds built with USE flags to satisfy "www-servers/apache[threads=]".
!!! One of the following packages is required to complete your request:
- www-servers/apache-2.2.16 (Change USE: +threads)
- dev-lang/php-5.2.14 (Change USE: -threads)
(dependency required by "dev-lang/php-5.2.14" [ebuild])
(dependency required by "php" [argument])



In the first phase, portage tells me to change apache with -threads and php with +threads. Once changed, it suggests to me the opposite

Reproducible: Always
Comment 1 Joost Ruis 2010-09-17 07:33:50 UTC
Always post emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2010-09-18 09:17:42 UTC
Created attachment 247757 [details]
emerge --info

Of course all the other stations I can install php. This is considered a test machine, which is why this came out
Comment 3 Matti Bickel (RETIRED) gentoo-dev 2010-09-18 22:05:13 UTC
This is weird - www-servers/apache[threads=] means USE=threads must be the same on both apache and php. I've never seen that failing before. I'll investigate with the portage folks..
Comment 4 Agostino Sarubbo gentoo-dev 2010-09-18 23:47:35 UTC
(In reply to comment #3)
> This is weird - www-servers/apache[threads=] means USE=threads must be the same
> on both apache and php. I've never seen that failing before. I'll investigate
> with the portage folks..
> 

Undoubtedly, I took on this machine, especially for tests to find bugs and in general .. I have no problem with apache and php

But in this case with that configuration I found the anomaly.

If you find it very strange, I can  register with recordMyDesktop and post the result :)
Comment 5 Matti Bickel (RETIRED) gentoo-dev 2010-10-08 17:22:33 UTC
Actually, reading closer (sorry, I'm late on this):
!!! *One of* the following packages is required to complete your request: (emphasis mine)

So the listed packages are alternatives. Use either of them and it should work.
That is, in theory. Because you have USE="sharedmem", php will force you to USE="-threads", so removing that dev-lang/php line from p.use should work.

Can you retry?
Comment 6 Agostino Sarubbo gentoo-dev 2010-10-08 18:00:10 UTC
due to rupture disks that I have not this installation, I try to reproduce the bug in the future, for now you may close this bug
Comment 7 Matti Bickel (RETIRED) gentoo-dev 2010-10-18 21:12:25 UTC
CANTFIX as it works as intended. I know the wording could be better, I'm eagerly waiting for portage to give me the ability to specify those deps more precisely.