Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353057 - Error in dev-lang/php-5.2.17.ebuild - circular dependencies
Summary: Error in dev-lang/php-5.2.17.ebuild - circular dependencies
Status: RESOLVED DUPLICATE of bug 352560
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: 2011-01-28 14:02 UTC by Jacekalex
Modified: 2011-01-28 15:31 UTC (History)
1 user (show)

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


Attachments
emerge-info - date Fri Jan 28 15:51:20 CET 2011 (emerge-info,17.19 KB, text/plain)
2011-01-28 14:51 UTC, Jacekalex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jacekalex 2011-01-28 14:02:31 UTC
[ebuild  NS   ] dev-lang/php-5.2.17 [5.3.3-r3] USE="bcmath berkdb bzip2 calendar cgi cjk cli crypt ctype curl curlwrappers filter firebird flatfile gd gdbm gmp hash iconv imap inifile iodbc json mysql mysqli ncurses nls odbc pcre pdo pic posix postgres readline session simplexml soap spell sqlite ssl suhosin threads tokenizer truetype unicode xml xmlreader xmlrpc xmlwriter xpm xsl zip zlib -adabas (-apache2) -birdstep -cdb -db2 -dbase -dbmaker -debug -discard-path -doc -embed -empress -empress-bcs -esoob -exif -fdftk -force-cgi-redirect -frontbase -ftp -gd-external -interbase -ipv6 -kerberos -kolab -ldap -ldap-sasl -libedit -mcve -mhash -msql -mssql -oci8 -oci8-instant-client -pcntl -qdbm -recode -reflection -sapdb -sharedext -sharedmem -snmp -sockets -solid -spl -sybase-ct -sysvipc -tidy -wddx -yaz" 8,910 kB

Total: 1 package (1 in new slot), Size of downloads: 8,910 kB

 * Error: circular dependencies:

(dev-lang/php-5.2.17::gentoo, ebuild scheduled for merge) depends on
 (dev-lang/php-5.2.17::gentoo, ebuild scheduled for merge) (buildtime)

It might be possible to break this cycle
by applying the following change:
- dev-lang/php-5.2.17 (Change USE: -suhosin)

Note that this change can be reverted, once the package has been installed.


Reproducible: Always
Comment 1 Jacekalex 2011-01-28 14:08:57 UTC
In Polish and English  Gentoo documentation is clearly written that the type of errors
"Error: circular dependencies" immediately reported to the Bugzilla

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=1#doc_chap5
http://www.gentoo.org/doc/pl/handbook/handbook-x86.xml?part=2&chap=1#doc_chap5

"Circular Dependencies

Code Listing 5.7: Portage warning about circular dependencies

!!! Error: circular dependencies: 

ebuild / net-print/cups-1.1.15-r2 depends on ebuild / app-text/ghostscript-7.05.3-r1
ebuild / app-text/ghostscript-7.05.3-r1 depends on ebuild / net-print/cups-1.1.15-r2 

Two (or more) packages you want to install depend on each other and can therefore not be installed. This is most likely a bug in the Portage tree. Please resync after a while and try again. You can also check bugzilla if the issue is known and if not, report it. "
Comment 2 Chris Shymanik (mousee) 2011-01-28 14:35:21 UTC
Suhosin is not currently available for php-5.2.17. So you can either mask dev-lang/php-5.2.17 until it becomes available or you may do as portage suggests and remove the suhosin USE flag.
Comment 3 Rafał Mużyło 2011-01-28 14:36:50 UTC
The point of comment 1 was ?

Anyway, suhosin should probably be a PDEPEND, as it does depend on php.
Comment 4 Rafał Mużyło 2011-01-28 14:43:30 UTC
(In reply to comment #3)
> Anyway, suhosin should probably be a PDEPEND, as it does depend on php.
> 

Never mind, it is a PDEPEND. 
Post your 'emerge --info' - perhaps portage is wrong in deps calculation.
Comment 5 Jacekalex 2011-01-28 14:51:34 UTC
Created attachment 260926 [details]
emerge-info - date Fri Jan 28 15:51:20 CET 2011
Comment 6 Matti Bickel (RETIRED) gentoo-dev 2011-01-28 15:07:27 UTC
Thanks for reporting this.

Please see bug #352560 for a discussion on why this occurs and for progress on fixing this. The php team is working on it.

In the meantime, you will be able to merge php:5.2 with:
USE="-suhosin" emerge php:5.2 && USE="suhosin" emerge php:5.2

*** This bug has been marked as a duplicate of bug 352560 ***
Comment 7 Chris Shymanik (mousee) 2011-01-28 15:31:22 UTC
Ah! Thanks for the info Matti. Another bug report indicated that suhosin didn't have an update for 5.2.17 (and the emerge error suggests the same), so I just assumed there was still no update for it. Good to know it's just portage being funky. The fix you mentioned works nicely :)