Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464850 - virtual/perl-threads should depend on dev-lang/perl[ithreads]
Summary: virtual/perl-threads should depend on dev-lang/perl[ithreads]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-06 12:41 UTC by Dennis Schridde
Modified: 2014-10-13 22:07 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 Dennis Schridde 2013-04-06 12:41:07 UTC
# emerge -pv perl-threads                                                                                                                                                                                                              

These are the packages that would be merged, in order:

Calculating dependencies  ..... done!
[ebuild  N     ] virtual/perl-threads-1.860.0-r1  0 kB

Total: 1 package (1 new), Size of downloads: 0 kB



# emerge -pv threads                                                                                                                                                                                                                   

These are the packages that would be merged, in order:

Calculating dependencies  .... done!
[ebuild   R    ] dev-lang/perl-5.16.3:0/5.16  USE="berkdb gdbm ithreads* -build -debug -doc" 0 kB
[ebuild  N     ] perl-core/threads-1.860.0  100 kB

Total: 2 packages (1 new, 1 reinstall), Size of downloads: 100 kB

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by perl-core/threads-1.860.0
# required by threads (argument)
>=dev-lang/perl-5.16.3 ithreads



# grep RDEPEND /var/cache/portage/gentoo/virtual/perl-threads/perl-threads-1.860.0-r1.ebuild
RDEPEND="|| ( =dev-lang/perl-5.16* ~perl-core/${PN#perl-}-${PV} )"



Thus I assume that if perl-core/threads depends on perl[ithreads], virtual/perl-threads should do, too.

Reproducible: Always
Comment 1 Dennis Schridde 2013-04-06 12:44:21 UTC
Another indicator that dev-lang/perl-5.16 is missing thread support without USE=ithreads is this:
$ ../feedgnuplot/bin/feedgnuplot                                                                                                                                                     
This Perl not built to support threads
Compilation failed in require at ../feedgnuplot/bin/feedgnuplot line 10.
BEGIN failed--compilation aborted at ../feedgnuplot/bin/feedgnuplot line 10.

With line 10/11 being:
use threads;
use threads::shared;
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2014-10-13 22:07:02 UTC
This makes somehow sense. Committed.