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

Bug 373943

Summary: www-apache/mod_perl-2.0.5: don't force apache[threads]
Product: Gentoo Linux Reporter: Martin von Gagern <Martin.vGagern>
Component: [OLD] ServerAssignee: Christian Ruppert (idl0r) <idl0r>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/www-apache/mod_perl/mod_perl-2.0.5.ebuild?r1=1.2&r2=1.3
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin von Gagern 2011-07-03 19:36:34 UTC
A recent commit by idl0r has reintroduced bug #300730 for mod_perl-2.0.5.
Please fix this regression again.

=== Start of original bug report ===

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 back to:
DEPEND="...
|| ( 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.

=== End of original bug report ===

I see no reason for a threads USE flag unless it actually changes something in the way that mod_perl itself is built. If there is a reason, though, then the dependencies should imo be something like this:

threads? ( dev-lang/perl[ithreads] )
!threads? ( www-server/apache[-threads] )
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2011-07-04 22:11:11 UTC
Fixed in CVS.