/[packages]/cauldron/perl-RPM4/current/SOURCES/build-fix.diff
ViewVC logotype

Contents of /cauldron/perl-RPM4/current/SOURCES/build-fix.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 431942 - (show annotations) (download)
Wed May 29 09:41:22 2013 UTC (9 years, 6 months ago) by tv
File size: 594 byte(s)
patch 0: fix build
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

  ViewVC Help
Powered by ViewVC 1.1.28