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

Bug 351065

Summary: new ebuild dev-perl/Switch
Product: Gentoo Linux Reporter: Oleg Gawriloff <barzog>
Component: New packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild
Here's valid one

Description Oleg Gawriloff 2011-01-07 21:34:47 UTC
Since perl 5.11 Switch is deprecated and should be installed from CPAN.
Here's appropriate ebuild (also available at my overlay).


Reproducible: Always
Comment 1 Oleg Gawriloff 2011-01-07 21:35:05 UTC
Created attachment 259246 [details]
ebuild
Comment 2 David Abbott (RETIRED) gentoo-dev 2011-01-07 21:52:00 UTC
@Oleg you need to redo the attachment.
Comment 3 Oleg Gawriloff 2011-01-07 22:00:36 UTC
Created attachment 259248 [details]
Here's valid one
Comment 4 Torsten Veller (RETIRED) gentoo-dev 2011-01-19 10:08:47 UTC
Do we need an ebuild for Switch in the tree?
Comment 5 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2011-01-19 10:51:19 UTC
My personal opinion is you should migrate code away from Switch.pm and instead use Perl5.10+'s native given statement. 

Switch.pm has been removed from core for a very good reasons, is broken, its dangerous, and there are better ways of doing it that are now part of the core language.

Having Switch.pm in tree sounds like the wrong approach if you ask me. 
Comment 6 Oleg Gawriloff 2011-01-19 11:00:46 UTC
Yah, I know. But Gentoo is my dev platform. I simply can't migrate to 5.10+ 'cause my scripts running on different servers and I can't predict wheter 5.10+ is available there. I'm already started work to get rid of Switch, but it takes months and there should be a way for others users as well who runs 5.10+ with older scripts to get rid of ugly warning and focus on their primary work and not to waste it to convience programmers to fix their ugly scripts.
Comment 7 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2011-01-19 12:30:09 UTC
Perhaps it would be suited if it was added and masked ? With a big nasty warning on the mask? 
Comment 8 Oleg Gawriloff 2011-01-19 12:37:25 UTC
Ok.
Comment 9 Torsten Veller (RETIRED) gentoo-dev 2011-06-19 16:14:20 UTC
I've added Switch to the tree. Some packages still need it.