Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295871 - USE=suhosin >=dev-lang/php-5.2.11 + dev-php5/suhosin - circular dependency
Summary: USE=suhosin >=dev-lang/php-5.2.11 + dev-php5/suhosin - circular dependency
Status: RESOLVED FIXED
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: 2009-12-05 16:23 UTC by Oleg Gawriloff
Modified: 2009-12-16 22:56 UTC (History)
1 user (show)

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


Attachments
Move the suhosin version dependency from DEPEND to PDEPEND to work around the ciruclar dependency (php-5.2.11-circular-dep-fix.patch,838 bytes, patch)
2009-12-16 20:28 UTC, Christian Hoffmann (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Gawriloff 2009-12-05 16:23:46 UTC
When installing dev-lang/php with suhosin use flags without suhosin installed we have circullar reference because suhosin already depends on php.

The only way to install it correctly: is install php without suhosin use flag, then install dev-php5/suhosin. After that add suhosin flag to php and reinstall php.


Reproducible: Always
Comment 1 Richard Scott 2009-12-07 11:04:31 UTC
It doesn't do this for php-5.2.10...

it seems that from 5.2.11 onwards we now have this in the ebuild:

DEPEND="app-admin/php-toolkit
        imap? ( >=virtual/imap-c-client-2006k )
        pcre? ( >=dev-libs/libpcre-7.8 )
        xml? ( >=dev-libs/libxml2-2.7.2-r2 )
        xmlrpc? ( >=dev-libs/libxml2-2.7.2-r2 virtual/libiconv )
        suhosin? ( >=dev-php5/suhosin-0.9.29 )"

Can this be changed to stop this dependency problem?

Thanks,

Rich
Comment 2 Christian Hoffmann (RETIRED) gentoo-dev 2009-12-16 20:28:50 UTC
Created attachment 213232 [details, diff]
Move the suhosin version dependency from DEPEND to PDEPEND to work around the ciruclar dependency
Comment 3 Christian Hoffmann (RETIRED) gentoo-dev 2009-12-16 20:29:14 UTC
cla, is there a specific reason why you added suhosin as a build dependency? The eclass adds suhosin to PDEPEND for exactly this reason.. avoiding circular deps.

I can fix it myself of course, but maybe there was a reason why you chose that way. See proposed patch.
Comment 4 Dawid Węgliński (RETIRED) gentoo-dev 2009-12-16 20:37:05 UTC
(In reply to comment #3)
> cla, is there a specific reason why you added suhosin as a build dependency?
> The eclass adds suhosin to PDEPEND for exactly this reason.. avoiding circular
> deps.
> 
> I can fix it myself of course, but maybe there was a reason why you chose that
> way. See proposed patch.
> 

Go ahead and i did not - it was you. :) See http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/php/php-5.2.11.ebuild?r1=1.5&r2=1.6

What i did in -r1 was only gd max color patch + small condition to eclass to simply set patchset uri to something where non-maintainer can upload.
Comment 5 Christian Hoffmann (RETIRED) gentoo-dev 2009-12-16 21:55:11 UTC
Committed for php-5.2.11 and php-5.2.11 (doesn't change installed files, so no version bump). Thanks for the report.

(In reply to comment #4)
> Go ahead and i did not - it was you. :) See
> http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/php/php-5.2.11.ebuild?r1=1.5&r2=1.6
> 
> What i did in -r1 was only gd max color patch + small condition to eclass to
> simply set patchset uri to something where non-maintainer can upload.
Wah... sorry, I apologize for blaming you. I simply had no memories regarding this change and I just did a diff. Sorry...
Comment 6 Dawid Węgliński (RETIRED) gentoo-dev 2009-12-16 22:14:21 UTC
(In reply to comment #5)
> Committed for php-5.2.11 and php-5.2.11 (doesn't change installed files, so no
> version bump). Thanks for the report.
> 
> (In reply to comment #4)
> > Go ahead and i did not - it was you. :) See
> > http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/php/php-5.2.11.ebuild?r1=1.5&r2=1.6
> > 
> > What i did in -r1 was only gd max color patch + small condition to eclass to
> > simply set patchset uri to something where non-maintainer can upload.
> Wah... sorry, I apologize for blaming you. I simply had no memories regarding
> this change and I just did a diff. Sorry...
> 

No problem. But wait, you said the eclass does the thing and it does indeed:

# Additional features
#
# They are in PDEPEND because we need PHP installed first!
PDEPEND="doc? ( app-doc/php-docs )
        filter? ( !dev-php5/pecl-filter )
        java-external? ( dev-php5/php-java-bridge )
        json? ( !dev-php5/pecl-json )
        mcve? ( dev-php5/pecl-mcve )
        pdo? ( !dev-php5/pecl-pdo )
        suhosin? ( dev-php5/suhosin )
        yaz? ( dev-php5/pecl-yaz )"

So maybe revert that change and simply remove it from the DEPEND at all?
Comment 7 Christian Hoffmann (RETIRED) gentoo-dev 2009-12-16 22:56:26 UTC
(In reply to comment #6)
> So maybe revert that change and simply remove it from the DEPEND at all?
Sorry, I don't get what you are after. The eclass has a generic PDEPEND on suhosin, php-5.2.11 has a version-specific PDEPEND on suhosin (previous versions crash).
As this minimum version requirement does not apply for all ebuilds, I cannot move this requirement to the eclass, and as such, I cannot remove it from ebuild, or am I missing something?