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

Bug 107127

Summary: RDEPEND needs to be set explicetly if using depend.apache eclass
Product: Gentoo Linux Reporter: Sven Wegener <swegener>
Component: New packagesAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: alpeterson, qa
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sven Wegener gentoo-dev 2005-09-24 16:47:09 UTC
Example: www-apache/mod_tcl-1.0-r1

> DEPEND="dev-lang/tcl"
> 
> [...]
> 
> need_apache2

need_apache2 will append dependencies to DEPEND and RDEPEND. Portage won't do
the automatic RDEPEND="${DEPEND}" thing because RDEPEND has been set, resulting
in an missing RDEPEND on tcl.

Pretty sure there are other modules affected by this bug.



Example: www-apache/mod_perl-2.0.1-r2

> # see bug 30087 for why sudo is in here
> need_apache2
> 
> DEPEND="!dev-perl/Apache-Test
>         dev-lang/perl
>         >=perl-core/CGI-3.08
>         >=dev-perl/Compress-Zlib-1.09
>         >=net-www/apache-2.0.47
>         app-admin/sudo"

This will reset DEPEND and render need_apache2 useless for DEPEND. Don't know
if this is really what you want, because you're overriding the dependencies
that need_apache2 injects.
Comment 1 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2006-06-01 19:56:17 UTC
The following possibly need to be fixed:
(this is more a TODO list for myself then anything else)

dev-python/mod_python-3.1.4
dev-python/mod_python-3.1.4-r1
dev-ruby/mod_ruby-1.2.4-r1
dev-ruby/mod_ruby-1.2.4-r2
net-www/mod_ftpd-0.13.0
net-www/mod_gzip-1.3.26.1a-r2
net-www/mod_ldap_userdir-1.1.4-r1
net-www/mod_ldap_userdir-1.1.5
net-www/mod_log_sql-1.100
net-www/mod_mp3-0.40-r1
net-www/mod_pcgi2-2.0.2
net-www/mod_scgi-1.2
net-www/mod_ssl-2.8.22-r1
net-www/mod_ssl-2.8.24-r1
net-www/mod_ssl-2.8.25-r10
net-www/mod_transform-0.6.0
net-www/mod_xslt-1.0.5a-r1
www-apache/libapreq2-2.07
www-apache/mod_gnutls-0.1.0
www-apache/mod_gnutls-0.1.1
www-apache/mod_gnutls-0.1.1-r1
www-apache/mod_gnutls-0.2.0
www-apache/mod_mono-1.0.8-r1
www-apache/mod_mono-1.0.9-r1
www-apache/mod_mono-1.1.10-r1
www-apache/mod_perl-1.29
www-apache/mod_perl-2.0.1-r1
www-apache/mod_perl-2.0.1-r2
www-apache/mod_perl-2.0.2
www-apache/mod_proxy_html-2.4.3
www-apache/mod_tcl-1.0-r1
www-servers/skunkweb-3.4.0-r1
www-servers/skunkweb-3.4.1
www-servers/skunkweb-3.4.3
Comment 2 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2006-06-04 12:15:24 UTC
All of the packages I listed are now fixed in CVS.
I have also added the following note to the eclasses (depend.apache and apache-module):

# NOTE: If you use this, be sure you use the need_* call after you have
# defined DEPEND and RDEPEND. Also note that you can not rely on the 
# automatic RDEPEND=DEPEND that portage does if you use this eclass.
# See bug 107127 for more information.