#
################################################################################
+# When updating the version here, also update support/scripts/scancpan
PERL_VERSION_MAJOR = 22
PERL_VERSION = 5.$(PERL_VERSION_MAJOR).2
PERL_SITE = http://www.cpan.org/src/5.0
} # END OF FATPACK CODE
-use 5.022; # same major version as target perl
+use 5.010;
use strict;
use warnings;
use Fatal qw(open close);
use Safe;
use MetaCPAN::API::Tiny;
+# Below, 5.022 should be aligned with the version of perl actually
+# bundled in Buildroot:
+die <<"MSG" if $] < 5.022;
+This script needs a host perl with the same major version as Buildroot target perl.
+
+Your current host perl is:
+ $^X
+ version $]
+
+You may install a local one by running:
+ perlbrew install perl-5.22.2
+MSG
+
my ($help, $man, $quiet, $force, $recommend, $test, $host);
my $target = 1;
GetOptions( 'help|?' => \$help,
=head1 SYNOPSIS
-curl -kL http://install.perlbrew.pl | bash
-
-perlbrew install perl-5.18.2
-
supports/scripts/scancpan [options] [distname ...]
Options: