[Koha-bugs] [Bug 25591] Update list-deps for Debian 10 and Ubuntu 20.04

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Sep 15 04:39:53 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25591

--- Comment #39 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
(In reply to Mason James from comment #37)
> it will fix 19.05 installation errors on...
>  deb 8, 10, 11
>  ubuntu 16.04, 18.04, 20.04, 20.10

😱😱😱 okay that's a big deal.

> ps: i have applied this patch to the last 3 19.05.x package releases

Thanks a lot!

Ok backporting.
Rats! Conflict which I can't resolve:

Next is the conflict part in the diff3 conflict style. Here is the structure:
<<<<<<< HEAD
here is the code in 19.05.x before the cherry-pick
||||||| parent of 248978bc62... Bug 25591: Update list-deps for Debian 10 and
Ubuntu 20.04
here is the code in 19.11.x before the patch
=======
here is the code in 19.11.x after the patch
>>>>>>> 248978bc62... Bug 25591: Update list-deps for Debian 10 and Ubuntu 20.04


<<<<<<< HEAD
my $modules = C4::Installer::PerlModules->new();
my $prereqs = $modules->prereqs;
foreach my $phase ($prereqs->phases) {
    foreach my $type ($prereqs->types_in($phase)) {
        my $reqs = $prereqs->requirements_for($phase, $type);
||||||| parent of 248978bc62... Bug 25591: Update list-deps for Debian 10 and
Ubuntu 20.04
    # Remove packages that are required/essential and always installed on
    # a Debian system. Debian packages should not have unversioned
    # dependencies on such packages.
    foreach my $line (@temp) {
        if ( $line ne "perl-base" ) {
            @lines = ( @lines, $line );
        }
    }
    if ( exists $overrides{$module} ) {
        print "$overrides{$module}\n";
    }
    elsif ( scalar(@lines) == 1 && $lines[0] ne "" ) {
        my $pkg = $lines[0];
        print "$pkg\n";
    }
    elsif ( scalar(@lines) > 1 ) {
        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";
    }
    elsif ( scalar(@temp) != 0 ) {
=======
    # 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" and $line !~ /^libperl5\./ and $line !~
/^perl-modules-5\./ ) {
            @lines = ( @lines, $line );
        }
    }
    if ( exists $overrides{$module} ) {
        print "$overrides{$module}\n";
    }
    elsif ( scalar(@lines) == 1 && $lines[0] ne "" ) {
        my $pkg = $lines[0];
        print "$pkg\n";
    }
    elsif ( scalar(@lines) > 1 ) {
        foreach my $pkg (@lines) {
            print " | " if ( $pkg ne $lines[0] );
            print "$pkg";
        }
        print "\n";
    }
    elsif ( scalar(@temp) != 0 ) {
>>>>>>> 248978bc62... Bug 25591: Update list-deps for Debian 10 and Ubuntu 20.04

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list