From c6d3e5a50b0c3fa104cae61211f3d2259dc60f52 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 Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall --- 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 db9cd7c442..b5d6486828 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 0f85ed1a2a..fa4f136290 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.39.5