From 5e62e866ac07f2df5d2616585319e5ddb6e61537 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 20 Aug 2007 21:28:38 +0000 Subject: [PATCH] Added patch to use File::MMagic (no XS). --- debian/patches/201_no-file-mmagic-xs.diff | 26 +++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 27 insertions(+) create mode 100644 debian/patches/201_no-file-mmagic-xs.diff 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..5383e73 --- /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.111'; +-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 +@@ -29,7 +29,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 e69de29..0e61931 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -0,0 +1 @@ +201_no-file-mmagic-xs.diff -- 2.39.2