mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-14 19:19:59 -04:00
Update the bundled Params::Validate module
Building the old version fails with recent Perl releases: | Validate.xs: In function `get_type': | Validate.xs:208:5: error: duplicate case value | Validate.xs:205:5: error: previously used here
This commit is contained in:
parent
f4b90cabc0
commit
f7bc3a0965
3 changed files with 19 additions and 4 deletions
Binary file not shown.
BIN
perlmods/Params-Validate-1.08.tar.gz
Normal file
BIN
perlmods/Params-Validate-1.08.tar.gz
Normal file
Binary file not shown.
|
|
@ -65,8 +65,15 @@ foreach my $tarball (@tarballs) {
|
|||
unless (-e $dir) {
|
||||
system("gunzip -c $tarball | tar -xf -") == 0 or die "Cannot extract $tarball";
|
||||
chdir $dir or die "Can't chdir into $dir";
|
||||
system("perl Makefile.PL PREFIX=$destdir INSTALLDIRS=site LIB=$destdir/lib") == 0 or die "Can't run perl Makefile.PL";
|
||||
system("make") == 0 or die "Can't run make";
|
||||
if (-e "Makefile.PL") {
|
||||
system("perl Makefile.PL PREFIX=$destdir INSTALLDIRS=site LIB=$destdir/lib") == 0
|
||||
or die "Can't run perl Makefile.PL";
|
||||
system("make") == 0 or die "Can't run make";
|
||||
} else {
|
||||
system("perl Build.PL --prefix $destdir --installdirs site --install_path lib=$destdir/lib") == 0
|
||||
or die "Can't run perl Build.PL";
|
||||
system("./Build.PL") == 0 or die "Can't run ./Build";
|
||||
}
|
||||
chdir $topdir or die "Can't chdir to top";;
|
||||
}
|
||||
}
|
||||
|
|
@ -79,10 +86,18 @@ foreach my $tarball (@tarballs) {
|
|||
$ENV{PERL5LIB}=join(":", @dirs);
|
||||
|
||||
if ($opts->{t}) {
|
||||
system("make test") == 0 or die "Can't run make test failed";
|
||||
if (-e "Makefile") {
|
||||
system("make test") == 0 or die "Can't run make test failed";
|
||||
} else {
|
||||
system("./Build test") == 0 or die "./Build test failed";
|
||||
}
|
||||
}
|
||||
if ($opts->{i}) {
|
||||
system("make install SITEPREFIX=$destdir") == 0 or die "Can't run make install";
|
||||
if (-e "Makefile") {
|
||||
system("make install SITEPREFIX=$destdir") == 0 or die "Can't run make install";
|
||||
} else {
|
||||
system("./Build install") == 0 or die "Can't run ./Build install";
|
||||
}
|
||||
}
|
||||
chdir $topdir or die "Can't go back to $topdir";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue