aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-mail-clamav/0001.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/perl-mail-clamav/0001.patch')
-rw-r--r--main/perl-mail-clamav/0001.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/perl-mail-clamav/0001.patch b/main/perl-mail-clamav/0001.patch
new file mode 100644
index 0000000000..17910bd6d8
--- /dev/null
+++ b/main/perl-mail-clamav/0001.patch
@@ -0,0 +1,27 @@
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -51,7 +51,23 @@
+ }
+
+ my $clver = get_cl_version();
+- return warn_cl_version_bad() if $clver lt $minclversion;
++ my @m_clver = split /\./, $clver;
++ my @m_minclversion = split /\./, $minclversion;
++ if ($m_clver[0] < $m_minclversion[0]) {
++ return warn_cl_version_bad() if $m_clver[0] lt $m_minclversion[0];
++ } else {
++ if ($m_clver[0] = $m_minclversion[0]) {
++ if ($m_clver[1] < $m_minclversion[1]) {
++ return warn_cl_version_bad() if $m_clver[1] lt $m_minclversion[1];
++ } else {
++ if ($m_clver[1] = $m_minclversion[1]) {
++ if ($m_clver[2] < $m_minclversion[2]) {
++ return warn_cl_version_bad() if $m_clver[2] lt $m_minclversion[2];
++ }
++ }
++ }
++ }
++ }
+
+ my $inc = get_cl_inc_paths();
+ my $libs = get_cl_libs();