From e02fda1e3784172539ec3ab1dbe1c2a86f4fa66d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 1 Aug 2016 11:13:53 +0100 Subject: [PATCH] Bug 16715: Use Sereal::Decoder and Sereal::Encoder instead of Sereal Sereal is not packaged for jessie, so let's use Sereal::Encoder and Sereal::Decoder instead. Signed-off-by: Mirko Tietgen --- C4/Installer/PerlDependencies.pm | 7 ++++++- Koha/Cache.pm | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/C4/Installer/PerlDependencies.pm b/C4/Installer/PerlDependencies.pm index db9cd7c..b5d6486 100644 --- a/C4/Installer/PerlDependencies.pm +++ b/C4/Installer/PerlDependencies.pm @@ -807,7 +807,12 @@ our $PERL_DEPS = { required => 1, min_ver => '1.00', }, - 'Sereal' => { + 'Sereal::Encoder' => { + 'usage' => 'Caching', + 'required' => '1', + 'min_ver' => '3.0', + }, + 'Sereal::Decoder' => { 'usage' => 'Caching', 'required' => '1', 'min_ver' => '3.0', diff --git a/Koha/Cache.pm b/Koha/Cache.pm index 0f85ed1..fa4f136 100644 --- a/Koha/Cache.pm +++ b/Koha/Cache.pm @@ -40,7 +40,8 @@ use warnings; use Carp; use Module::Load::Conditional qw(can_load); use Koha::Cache::Object; -use Sereal; +use Sereal::Encoder; +use Sereal::Decoder; use base qw(Class::Accessor); -- 2.1.4