1 |
diff -up ./Makefile.PL.tv ./Makefile.PL |
2 |
--- ./Makefile.PL.tv 2013-05-29 11:40:02.283361866 +0200 |
3 |
+++ ./Makefile.PL 2013-05-29 11:39:54.287746796 +0200 |
4 |
@@ -5,7 +5,8 @@ use ExtUtils::MakeMaker; |
5 |
use Getopt::Long; |
6 |
|
7 |
#- require at least rpm 4.2 |
8 |
-my $rpm_version = `rpm --version` =~ /version ([0-9.]+)(?:-beta.*)$/ ? version->new("v$1") : (); |
9 |
+my $rpm_version = `LC_ALL=C rpm --version` =~ /version ([0-9.]+)(?:-beta.*)?$/ ? version->new("v$1") : (); |
10 |
+warn ">> $rpm_version\n"; |
11 |
$rpm_version ge 4.8.0 |
12 |
or die <<BARF; |
13 |
Unable to build RPM4 with too old (or undetected) rpm version $rpm_version |