Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: FS#12188 - Fix perl scripts that used Switch by Sean Bartell

FS#12188 - Fix perl scripts that used Switch by Sean Bartell

From: Alex Parker <rockbox_at_aeparker.com>
Date: Sat, 16 Jul 2011 11:54:39 +0200

Hi all,

I'd like to commit FS#12188 - Fix perl scripts that used Switch by Sean
Bartell.

Perl 5.14 removed Switch which means that Rockbox will no longer build
with the current release of Perl. This is already a problem on very
up-to-date distros such as Arch, and will be more so in the future as
other distros update.

The patch in FS#12188 replaces switch with given/when which was
introduced in Perl 5.10.0 [1], with an enhanced version in 5.10.1 [2]. I
think that 5.10.0 should be adequate, but I'm not 100% sure, I'm no
expert :)

Debian stable has 5.10.1, so if that has a recent enough version I'm
pretty confident any other linux distro will too.

Cygwin 1.7 has 5.10.1 so that should be fine, and Mac OSX 10.6 comes
with 5.10.0. For this and older versions of OSX, newer perl versions
are apparently readily available in Macports.

Any objections? If you think you might be affected please check, if not
I'd like to commit this in a few days.

Alex

[1]
http://perldoc.perl.org/perl5100delta.html#Switch-and-Smart-Match-operator
[2] http://perldoc.perl.org/perl5101delta.html#Switch-statement-changes
Received on 2011-07-16


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa