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

Bug 302586

Summary: libperl and perl ithreads and perl-cleaner
Product: Gentoo Linux Reporter: Dmitry Ivankov <divanorama>
Component: New packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: enhancement CC: jekarlson
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=868336
Whiteboard:
Package list:
Runtime testing required: ---

Description Dmitry Ivankov 2010-01-28 09:32:25 UTC
If you have perl and libperl installed and then decide to change ithreads useflag, remerge them then you'll have to remerge some packages with perl-cleaner. My suggestion is to add a note about it in the perl and libperl ebuilds.

Reproducible: Always

Steps to Reproduce:
1. have a system with USE=-ithreads perl, libperl and vim installed
2. USE=ithreads emerge libperl perl
3. vim

Actual Results:  
vim: symbol lookup error: vim: undefined symol: PL_curpad

Expected Results:  
vim is started

Vim is just an illustration, the issue is that it's hard to find out that there is this nice perl-cleaner, so we should tell about it on remerging perl on ithreads flag change. Otherwise user will have "random" packages broken(remerge needed).
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2010-01-28 14:32:12 UTC
<http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/perl/perl-5.10.1.ebuild?view=markup>

if has_version dev-lang/perl ; then
	if (   use ithreads && ! has_version dev-lang/perl[ithreads]   ) || \
	   ( ! use ithreads &&   has_version dev-lang/perl[ithreads]   ) || \
	   (   use debug    && ! has_version dev-lang/perl[debug]      ) || \
	   ( ! use debug    &&   has_version dev-lang/perl[debug]      ) ; then
		ewarn "TOGGLED USE-FLAGS WARNING:"
		ewarn "You changed one of the use-flags ithreads or debug."
		ewarn "You must rebuild all perl-modules installed."
		ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl"
		epause
	fi
fi

That's already in perl-5.10.1.
Comment 2 Dmitry Ivankov 2010-01-28 18:24:50 UTC
(In reply to comment #1)
> That's already in perl-5.10.1.

Nice :), what about porting it to stable perl-5.8.8? 

Comment 3 Torsten Veller (RETIRED) gentoo-dev 2010-02-08 13:32:39 UTC
*** Bug 303985 has been marked as a duplicate of this bug. ***
Comment 4 Torsten Veller (RETIRED) gentoo-dev 2011-03-09 22:09:27 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > That's already in perl-5.10.1.
> 
> Nice :), what about porting it to stable perl-5.8.8? 

I didn't do it because i didn't wanted to bump EAPI for that old version.