Bug 19017

Summary: ksshaskpass error on rpm install
Product: Mageia Reporter: José Jorge <lists.jjorge>
Component: RPM PackagesAssignee: KDE maintainers <kde>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: ngompa13
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description José Jorge 2016-07-22 09:23:47 CEST
When one installs ksshaskpass, it fails updating alternatives. See the last line in the log below


urpmi ksshaskpass           ############################################################################################################
Alternatives, version 1.7 - Copyright (C) 2001 Red Hat, Inc.
Ce produit peut être librement distribué selon les termes de la licence publique GNU (GPL).

utilisation : alternatives --install <lien> <nom> <chemin> <priorité>
                    [--initscript <service>]
                    [--family <family>]
                    [--slave <lien> <nom> <chemin>]*
       alternatives --remove <nom> <chemin>
       alternatives --auto <nom>
       alternatives --config <nom>
       alternatives --display <nom>
       alternatives --set <nom> <chemin>
       alternatives --list

options communes : --verbose --test --help --usage --version
                --altdir <répertoire> --admindir <répertoire>
Alternatives, version 1.7 - Copyright (C) 2001 Red Hat, Inc.
Ce produit peut être librement distribué selon les termes de la licence publique GNU (GPL).

utilisation : alternatives --install <lien> <nom> <chemin> <priorité>
                    [--initscript <service>]
                    [--family <family>]
                    [--slave <lien> <nom> <chemin>]*
       alternatives --remove <nom> <chemin>
       alternatives --auto <nom>
       alternatives --config <nom>
       alternatives --display <nom>
       alternatives --set <nom> <chemin>
       alternatives --list

options communes : --verbose --test --help --usage --version
                --altdir <répertoire> --admindir <répertoire>
attention : %post(ksshaskpass-1:5.7.2-1.mga6.i586) scriptlet échoué, état de sortie 2
ERROR: 'script' failed for ksshaskpass-1:5.7.2-1.mga6.i586
Comment 1 David Walser 2016-07-22 16:13:12 CEST
I guess the update-alternatives syntax use doesn't match the new update-alternatives implementation we switched to.

Here's what we have now:

%post
update-alternatives --install %{_libdir}/ssh/ssh-askpass ssh-askpass %{_kde_bindir}/%{name} 40
update-alternatives --install %{_bindir}/ssh-askpass bssh-askpass %{_kde_bindir}/%{name} 40

%postun
[ $1 = 0 ] || exit 0
update-alternatives --remove ssh-askpass %{_kde_bindir}/%{name}
update-alternatives --remove bssh-askpass %{_kde_bindir}/%{name}

%triggerin -- ksshaskpass < 0.5
update-alternatives --remove ssh-askpass %{_libdir}/ssh/%{name}
update-alternatives --remove bssh-askpass %{_libdir}/ssh/%{name}


I also noticed that this package is missing Requires(post)/(postun) for this.

Assignee: bugsquad => mageia

Samuel Verschelde 2016-08-25 16:23:11 CEST

Assignee: mageia => kde

Comment 2 Neal Gompa 2017-03-17 12:54:38 CET
It doesn't look like there's a problem now. I just installed ksshaskpass-5.8.6-1.mga6 and removed it, and alternatives was fine.

I did, however, add the missing Requires(post) and Requires(postun) statements.

Status: NEW => RESOLVED
CC: (none) => ngompa13
Resolution: (none) => FIXED