mail-filter/spamassassin: add a patch to -r11 for perl-5.26 compatibility.
authorMichael Orlitzky <mjo@gentoo.org>
Fri, 4 Aug 2017 20:47:06 +0000 (16:47 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Fri, 4 Aug 2017 20:57:07 +0000 (16:57 -0400)
Gentoo-Bug: 625316

Package-Manager: Portage-2.3.6, Repoman-2.3.1

mail-filter/spamassassin/files/spamassassin-3.4.1-perl526.patch [new file with mode: 0644]
mail-filter/spamassassin/spamassassin-3.4.1-r11.ebuild

diff --git a/mail-filter/spamassassin/files/spamassassin-3.4.1-perl526.patch b/mail-filter/spamassassin/files/spamassassin-3.4.1-perl526.patch
new file mode 100644 (file)
index 0000000..1c63136
--- /dev/null
@@ -0,0 +1,14 @@
+https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7367
+https://bugs.gentoo.org/625316
+
+--- Mail-SpamAssassin-3.4.1/spamc/configure.pl
++++ Mail-SpamAssassin-3.4.1/spamc/configure.pl
+@@ -66,7 +66,7 @@
+   # Do the same thing as for the preprocessor below.
+   package version_h;
+   my $Z = $0;
+-  local $0    = "version.h.pl";
++  local $0    = "./version.h.pl";
+   local @ARGV = ();
+   # Got to check for defined because the script returns shell error level!
+   unless (defined do $0) {
index a6f8ed6769d47fa84aaa4e845a6d99b33ceffc85..4c35834577340a14d50c05507bbadb2cb64eaf30 100644 (file)
@@ -86,6 +86,7 @@ PATCHES=(
        "${FILESDIR}/spamassassin-3.4.1-bug_7231.patch"
        "${FILESDIR}/spamassassin-3.4.1-bug_7265.patch"
        "${FILESDIR}/spamassassin-3.4.1-bug_7231-extra.patch"
+       "${FILESDIR}/spamassassin-3.4.1-perl526.patch"
 )
 
 src_prepare() {