Bug 17618: perl-modules Debian package name change
authorMirko Tietgen <mirko@abunchofthings.net>
Sat, 12 Nov 2016 07:50:04 +0000 (08:50 +0100)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 22 May 2017 11:37:42 +0000 (13:37 +0200)
Newer versios of perl-modules have a version number in the package name.
This patch makes Koha aware of perl-modules-5.22 and perl-modules-5.24

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 0c5905843dfc55e422c667f9d0aa6f243f56f1a8)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
(cherry picked from commit 7b9bda5881e1a48fab029c0c0d78f4b0848ae545)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

debian/control.in
debian/list-deps

index bc1e190..11a6444 100644 (file)
@@ -11,7 +11,7 @@ Standards-Version: 3.8.4
 # There are some exceptions.
 Build-Depends:__AUTODEPENDS__,
  debhelper (>= 7.0.50), gettext, xsltproc, docbook-xsl, ttf-dejavu,
- libxml2-utils, bash-completion, perl-modules (>= 5.14.2) | libtest-simple-perl (>= 0.98)
+ libxml2-utils, bash-completion, perl-modules (>= 5.14.2) | perl-modules-5.22 | perl-modules-5.24 | libtest-simple-perl (>= 0.98)
 
 Package: koha-common
 Architecture: all
index 2cfaf8f..014a8ee 100755 (executable)
@@ -27,7 +27,7 @@ use C4::Installer::PerlDependencies;
 # debian one.
 my %overrides = (
     'LWP::Protocol::https' => 'liblwp-protocol-https-perl|libwww-perl (<6.02), libio-socket-ssl-perl',
-    'IO::Socket::IP'       => 'perl-modules (>= 5.20.0) | libio-socket-ip-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)',
 );
@@ -71,6 +71,8 @@ foreach my $module ( keys %$deps ) {
         foreach my $pkg (@lines) {
             print " | " if ( $pkg ne $lines[0] );
             print "$pkg";
+            print " | $pkg" . "-5.22" if ( $pkg eq "perl-modules" );
+            print " | $pkg" . "-5.24" if ( $pkg eq "perl-modules" );
         }
         print "\n";
     }