Skip to content

Commit 11322a2

Browse files
committed
ZCS-17691 : Added patch for perl-mime-tools
1 parent 814279e commit 11322a2

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

thirdparty/perl-mime-tools/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ build_deb:
5454
$(replace-perl-modinfo) debian/changelog debian/control debian/copyright debian/watch && \
5555
$(CP) $(psrc_file) ../$(z_tgz) && \
5656
$(TAR) xfz ../$(z_tgz) --strip-components=1 && \
57+
$(CP) $(PKG_ROOT)/patches/*.patch debian/patches/ && \
5758
$(PKG_BUILD)
5859

5960
clean: pkgrm
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
From 5964839271fd856076da6c7ed7822bcd39324c82 Mon Sep 17 00:00:00 2001
2+
From: Niko Tyni <ntyni@debian.org>
3+
Date: Sat, 29 Jul 2023 18:54:01 +0100
4+
Subject: [PATCH] Fix MIME::QuotedPrint version parsing
5+
6+
Perl 5.38 bundles MIME::QuotedPrint at version 3.16_01 which is not
7+
numeric, causing spurious warnings on usage.
8+
9+
Bug-Debian: https://bugs.debian.org/1040377
10+
---
11+
lib/MIME/Decoder/QuotedPrint.pm | 3 ++-
12+
1 file changed, 2 insertions(+), 1 deletion(-)
13+
14+
diff --git a/lib/MIME/Decoder/QuotedPrint.pm b/lib/MIME/Decoder/QuotedPrint.pm
15+
index 89bb3da..1a8a7ec 100644
16+
--- a/lib/MIME/Decoder/QuotedPrint.pm
17+
+++ b/lib/MIME/Decoder/QuotedPrint.pm
18+
@@ -1,6 +1,7 @@
19+
package MIME::Decoder::QuotedPrint;
20+
use strict;
21+
use warnings;
22+
+use version;
23+
24+
25+
=head1 NAME
26+
@@ -73,7 +74,7 @@ $VERSION = "5.510";
27+
# The following code is horrible. I know. Beat me up. --dfs
28+
BEGIN {
29+
if (!defined(&encode_qp_threearg)) {
30+
- if ($::MIME::QuotedPrint::VERSION >= 3.03) {
31+
+ if (version->parse($::MIME::QuotedPrint::VERSION) >= version->parse(3.03)) {
32+
eval 'sub encode_qp_threearg ( $$$ ) { encode_qp(shift, shift, shift); }';
33+
} else {
34+
eval 'sub encode_qp_threearg ( $$$ ) { encode_qp(shift); }';
35+
--
36+
2.39.1
37+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0001-Fix-MIME-QuotedPrint-version-parsing.patch

0 commit comments

Comments
 (0)