Bug 853643

Summary: preun(kde-settings-kdm-4.9-1.fc19.noarch) scriptlet failed
Product: [Fedora] Fedora Reporter: Tom <thomasbelvin>
Component: kde-settingsAssignee: Rex Dieter <rdieter>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: jreznik, kevin, ltinkl, mbriza, rdieter, rnovacek, smparrish, than
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-08 18:28:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tom 2012-09-01 17:24:00 UTC
Description of problem:
Two duplicate kde-settings-kdm packages.

Version-Release number of selected component (if applicable):
yum info kde-settings-kdm
Loaded plugins: downloadonly, langpacks, presto, refresh-packagekit
Installed Packages
Name        : kde-settings-kdm
Arch        : noarch
Version     : 4.9
Release     : 1.fc19
Size        : 31 k
Repo        : installed
From repo   : rawhide
Summary     : Configuration files for kdm
URL         : http://fedorahosted.org/kde-settings
License     : MIT
Description : Configuration files for kdm.

Available Packages
Name        : kde-settings-kdm
Arch        : noarch
Version     : 19
Release     : 1.fc19
Size        : 39 k
Repo        : rawhide
Summary     : Configuration files for kdm
URL         : http://fedorahosted.org/kde-settings
License     : MIT
Description : Configuration files for kdm.

How reproducible:
Everytime

Steps to Reproduce:
1.yum update

2.yum check
Loaded plugins: downloadonly, langpacks, presto, refresh-packagekit
kde-settings-kdm-19-1.fc19.noarch is a duplicate with kde-settings-kdm-4.9-1.fc19.noarch

3.erase duplicate kde-settings-kdm-19-1.fc19.noarch, but keeps getting reinstalled.
  
Actual results:
yum install kdm kde-settings-kdm
Loaded plugins: downloadonly, langpacks, presto, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package kde-settings-kdm.noarch 0:4.9-1.fc19 will be updated
---> Package kde-settings-kdm.noarch 0:19-1.fc19 will be an update
---> Package kdm.x86_64 0:4.9.0-6.fc19 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================
 Package                 Arch          Version               Repository      Size
==================================================================================
Installing:
 kdm                     x86_64        4.9.0-6.fc19          rawhide        635 k
Updating:
 kde-settings-kdm        noarch        19-1.fc19             rawhide         39 k

Transaction Summary
==================================================================================
Install  1 Package
Upgrade  1 Package

Total download size: 674 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
(1/2): kde-settings-kdm-19-1.fc19.noarch.rpm               |  39 kB     00:00     
(2/2): kdm-4.9.0-6.fc19.x86_64.rpm                         | 635 kB     00:00     
----------------------------------------------------------------------------------
Total                                             774 kB/s | 674 kB     00:00     
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : kde-settings-kdm-19-1.fc19.noarch                              1/3 
warning: /etc/kde/kdm/kdmrc created as /etc/kde/kdm/kdmrc.rpmnew
warning: /etc/pam.d/kdm created as /etc/pam.d/kdm.rpmnew
warning: /etc/pam.d/kdm-np created as /etc/pam.d/kdm-np.rpmnew
  Installing : kdm-4.9.0-6.fc19.x86_64                                        2/3 
/var/tmp/rpm-tmp.sccEv8: line 7: kdm.service: command not found
error: %preun(kde-settings-kdm-4.9-1.fc19.noarch) scriptlet failed, exit status 127
Error in PREUN scriptlet in rpm package kde-settings-kdm-4.9-1.fc19.noarch
  Verifying  : kdm-4.9.0-6.fc19.x86_64                                        1/3 
  Verifying  : kde-settings-kdm-19-1.fc19.noarch                              2/3 
  Verifying  : kde-settings-kdm-4.9-1.fc19.noarch                             3/3 

Installed:
  kdm.x86_64 0:4.9.0-6.fc19                                                       

Updated:
  kde-settings-kdm.noarch 0:19-1.fc19                                             

Failed:
  kde-settings-kdm.noarch 0:4.9-1.fc19                                            

Complete!

Expected results:


Additional info:

Comment 1 Kevin Kofler 2012-09-01 18:51:47 UTC
> /var/tmp/rpm-tmp.sccEv8: line 7: kdm.service: command not found
> error: %preun(kde-settings-kdm-4.9-1.fc19.noarch) scriptlet failed, exit status 127
> Error in PREUN scriptlet in rpm package kde-settings-kdm-4.9-1.fc19.noarch

This is your problem.

Workaround:
rpm -e --noscripts kde-settings-kdm-4.9-1.fc19

Comment 2 Rex Dieter 2012-11-08 18:28:26 UTC
subsequent builds fixed it, but we can't retroactively avoid the broken %preun