Bug 25591: Update list-deps for Debian 10 and Ubuntu 20.04
This patch removes version-specific packages from the debian/control file, which fixes a bug where koha-common can only be installed on the debian version that the package was built on Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commit5d9a51332d) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit0639627c32) Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> (cherry picked from commit248978bc62)
This commit is contained in:
parent
05e64bd4c8
commit
f2cd875db6
|
|
@ -27,7 +27,7 @@ use C4::Installer::PerlDependencies;
|
|||
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-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',
|
||||
'IO::Socket::IP' => 'perl-modules (>= 5.20.0) | libio-socket-ip-perl',
|
||||
'Swagger2' => 'libswagger2-perl (>= 0.59)',
|
||||
'Mojolicious' => 'libmojolicious-perl (>= 6.0)',
|
||||
);
|
||||
|
|
@ -55,8 +55,11 @@ foreach my $module ( keys %$deps ) {
|
|||
# Remove packages that are required/essential and always installed on
|
||||
# a Debian system. Debian packages should not have unversioned
|
||||
# dependencies on such packages.
|
||||
|
||||
# skip perl-base and problematic version specific libperl* and
|
||||
# perl-module* packages (they get installed as deps. anyway)
|
||||
foreach my $line (@temp) {
|
||||
if ( $line ne "perl-base" ) {
|
||||
if ( $line ne "perl-base" and $line !~ /^libperl5\./ and $line !~ /^perl-modules-5\./ ) {
|
||||
@lines = ( @lines, $line );
|
||||
}
|
||||
}
|
||||
|
|
@ -71,8 +74,6 @@ 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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue