Bug 20800: Keep Koha on Stretch from using broken libhttp-oai-perl
authorMirko Tietgen <mirko@abunchofthings.net>
Tue, 22 May 2018 10:32:19 +0000 (12:32 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 22 May 2018 14:19:49 +0000 (11:19 -0300)
libhttp-oai-perl in Stretch is 4.03 and broken. Koha depends on
libhttp-oai-perl << 4 for that reason. To make the installation of Koha
on Stretch as easy as possible, this patch adds the alternative
libhttp-oai-3.27-perl which we provide in the Koha repository.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

debian/control
debian/list-deps

index 6731116..8b42751 100644 (file)
@@ -64,7 +64,7 @@ Build-Depends: libalgorithm-checkdigits-perl,
  libhtml-scrubber-perl,
  libhttp-cookies-perl,
  libhttp-message-perl,
- libhttp-oai-perl (>= 3.2), libhttp-oai-perl (<< 4.0),
+ libhttp-oai-perl (>= 3.2) | libhttp-oai-3.27-perl, libhttp-oai-perl (<< 4.0) | libhttp-oai-3.27-perl,
  libjson-perl,
  libjson-validator-perl,
  liblibrary-callnumber-lc-perl,
@@ -297,7 +297,7 @@ Depends: libalgorithm-checkdigits-perl,
  libhtml-scrubber-perl,
  libhttp-cookies-perl,
  libhttp-message-perl,
- libhttp-oai-perl (>= 3.2), libhttp-oai-perl (<< 4.0),
+ libhttp-oai-perl (>= 3.2) | libhttp-oai-3.27-perl, libhttp-oai-perl (<< 4.0) | libhttp-oai-3.27-perl,
  libjson-perl,
  libjson-validator-perl,
  liblibrary-callnumber-lc-perl,
index 83e28bf..fb6e8c3 100755 (executable)
@@ -26,7 +26,7 @@ use C4::Installer::PerlDependencies;
 # debian one.
 my %overrides = (
     'LWP::Protocol::https' => 'liblwp-protocol-https-perl|libwww-perl (<<6.02), libio-socket-ssl-perl',
-    'HTTP::OAI'            => 'libhttp-oai-perl (>= 3.2), libhttp-oai-perl (<< 4.0)',
+    'HTTP::OAI'            => 'libhttp-oai-perl (>= 3.2) | libhttp-oai-3.27-perl, libhttp-oai-perl (<< 4.0) | libhttp-oai-3.27-perl',
     'IO::Socket::IP'       => 'perl-modules (>= 5.20.0) | perl-modules-5.22 | perl-modules-5.24 | libio-socket-ip-perl',
     'Swagger2'             => 'libswagger2-perl (>= 0.59)',
     'Mojolicious'          => 'libmojolicious-perl (>= 6.0)',