Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300730 - www-apache/mod_perl-2.0.4-r1: don't force apache[threads]
Summary: www-apache/mod_perl-2.0.4-r1: don't force apache[threads]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://sources.gentoo.org/viewcvs.py/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-12 14:25 UTC by Martin von Gagern
Modified: 2011-07-03 19:37 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2010-01-12 14:25:51 UTC
I'm using apache[-threads], perl[ithreads] and mod_perl.

Since rev 1.13 of the mod_perl-2.0.4-r1 ebuild, that setup won't work any more, since the only possible combinations are apache[threads] with perl[ithreads] or apache[-threads] with perl[-ithreads].

I assume this strict dependency is an error. It should be perfectly all right for perl to be compiled with threading support (and thus some degree of thread safety) and still use it in a single-threaded web server environment.

So please change the deps to something like this:
DEPEND="...
www-servers/apache
dev-lang/perl
|| ( www-servers/apache[-threads] dev-lang/perl[ithreads] )"

The meaning is that we depend on both apache and perl, and we either want apache to be unthreaded or perl to be thread-safe.

As far as I understand things, that's what the has_apache_threads_in function from depend.apache.eclass used to enforce as well, so it should work if it did work so far.
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2010-01-12 14:52:06 UTC
thanks, much better solution :)
Comment 2 Martin von Gagern 2011-07-03 19:37:10 UTC
This bug has been reintroduced for 2.0.5; regression tracked in bug #373943.