Bug 685026

Summary: Missing %preun scriptlet dependency
Product: [Fedora] Fedora Reporter: Panu Matilainen <pmatilai>
Component: dbusAssignee: David Zeuthen <davidz>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: davidz, lpoetter, mclasen, rdieter, walters
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-14 19:52:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Panu Matilainen 2011-03-15 05:35:27 UTC
Description of problem:
dbus calls /sbin/service in its %preun scriptlet but does not have a dependency for it. This can result in scriptlet failures during erase:

Version-Release number of selected component (if applicable):
dbus-1.4.6-1.fc15 (f15, rawhide)

How reproducible:
Always

Steps to Reproduce:
1. yum --disablerepo="*" --enablerepo=rawhide --installroot=/home/test -y
install apg
2. rpm -e --root /home/test dbus
  
(step 1 produces other warnings due to bugs in other packages, step 2 using rpm due to yum bug causing failures on chroot erase)

Actual results:
/var/tmp/rpm-tmp.VZFk1D: line 2: /sbin/service: No such file or directory

Expected results:
No warnings/errors issued.

Additional info:
This will cure the error as the scriptlet is now:
Requires(preun): /sbin/service

...but native systemd usage will require something else, not sure if guidelines for handling the systemd transition exist yet.

Comment 1 Panu Matilainen 2011-03-15 06:22:07 UTC
(In reply to comment #0)
> Steps to Reproduce:
> 1. yum --disablerepo="*" --enablerepo=rawhide --installroot=/home/test -y
> install apg

Argh, should be "install dbus" obviously. Sorry 'bout that, too early in the morning for copy-pasting apparently...

Comment 2 Rex Dieter 2012-10-14 19:52:43 UTC
f15 EOL'd, f16+ packaging doesn't call 'service' anymore