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

Bug 174420

Summary: www-apps/egroupware - change order of dependencies
Product: Gentoo Linux Reporter: Łukasz Mierzwa <l.mierzwa>
Component: New packagesAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch for current ebuild

Description Łukasz Mierzwa 2007-04-13 10:21:39 UTC
php5 is stable but when emerging www-apps/egroupware with USE="jpgraph" dev-php4/jpgraph is being installed, this is due to order of dependencies in ebuild, currently is says:
RDEPEND="
        ldap? ( net-nds/openldap )
        gd? ( media-libs/gd )
        jpgraph? ( || ( dev-php4/jpgraph dev-php5/jpgraph ) )
        dev-php/PEAR-Log
        net-www/apache"

dev-php4/jpgraph is the first one so portage tries to install it first, since it is stabe on x86 it is installed, dev-php5/jpgraph is also stable (so is php5) so portage should try to install it and if it can't due to keywords it should fallback to dev-php4/jpgraph.
This can be achived by simply reordering jpgraph order to:

RDEPEND="
        ldap? ( net-nds/openldap )
        gd? ( media-libs/gd )
        jpgraph? ( || ( dev-php5/jpgraph dev-php4/jpgraph ) )
        dev-php/PEAR-Log
        net-www/apache"


Reproducible: Always

Steps to Reproduce:
1. emerge current stabe php5
2. emerge egroupware with jpgraph USE flag


Actual Results:  
jpgraph for php4 is installed along with php4

Expected Results:  
jpgraph for php5 is installed, or if user masked php5 jpgraph for php4 is installed along with php4
Comment 1 Łukasz Mierzwa 2007-04-13 10:23:07 UTC
Created attachment 116145 [details, diff]
patch for current ebuild
Comment 2 Renat Lumpau (RETIRED) gentoo-dev 2007-05-26 22:41:40 UTC
Done, thanks.