From 10b05d688eb14faac62ef3cc504e6a3e51b40251 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Tue, 24 Jun 2008 21:25:19 +0000 Subject: [PATCH] Revert r691: Use File::MMagic::XS since it has now been packaged. File::MMagic::XS corrupted the heap and crashed Apache when I tested it under mod_perl. --- debian/control | 2 +- debian/patches/201_no-file-mmagic-xs.diff | 26 +++++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 debian/patches/201_no-file-mmagic-xs.diff diff --git a/debian/control b/debian/control index 18b24d2..54b8f94 100644 --- a/debian/control +++ b/debian/control @@ -24,7 +24,7 @@ Build-Depends-Indep: perl (>= 5.6.0-16), libtemplate-plugin-class-perl, libtest-mockmodule-perl, libdigest-perl, - libfile-mmagic-xs-perl, + libfile-mmagic-perl, libclass-dbi-plugin-type-perl, libclass-accessor-perl, libclass-data-inheritable-perl, diff --git a/debian/patches/201_no-file-mmagic-xs.diff b/debian/patches/201_no-file-mmagic-xs.diff new file mode 100644 index 0000000..91f3c0e --- /dev/null +++ b/debian/patches/201_no-file-mmagic-xs.diff @@ -0,0 +1,26 @@ +--- maypole.orig/lib/Maypole.pm ++++ maypole/lib/Maypole.pm +@@ -10,10 +10,10 @@ + use URI(); + use URI::QueryParam; + use NEXT; +-use File::MMagic::XS qw(:compat); ++use File::MMagic; + + our $VERSION = '2.13'; +-our $mmagic = File::MMagic::XS->new(); ++our $mmagic = File::MMagic->new(); + + # proposed privacy conventions: + # - no leading underscore - public to custom application code and plugins +--- maypole.orig/Makefile.PL ++++ maypole/Makefile.PL +@@ -26,7 +26,7 @@ + Template::Plugin::Class => 0, + Test::MockModule => 0, + Digest::MD5 => 0, +- File::MMagic::XS => 0.08, ++ File::MMagic => 1.21, + Class::DBI::Plugin::Type => 0, + }, # e.g., Module::Name => 1.1 + ( diff --git a/debian/patches/series b/debian/patches/series index 9221ee4..dd06d33 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,4 +1,5 @@ 103_fix-view_object-warning.diff 106_fix-_column_info-clash.diff 108_fix-uris.diff +201_no-file-mmagic-xs.diff 202_fix-example-references.diff -- 2.39.2