Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302586 - libperl and perl ithreads and perl-cleaner
Summary: libperl and perl ithreads and perl-cleaner
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 303985 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-28 09:32 UTC by Dmitry Ivankov
Modified: 2022-09-04 04:11 UTC (History)
1 user (show)

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 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.