Bug 685037

Summary: %post and %postun scriptlet errors/warnings
Product: [Fedora] Fedora Reporter: Panu Matilainen <pmatilai>
Component: vinagreAssignee: Bastien Nocera <bnocera>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: berrange, bnocera, mclasen
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: 2013-06-17 00:37:24 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 06:35:42 UTC
Description of problem:
vinagre unconditionally calls various commands in its %post and %postun but does not have dependencies them and/or suppress output/error codes from them. This can result in scriptlet errors on package install/erase.

Version-Release number of selected component (if applicable):
vinagre-2.91.91-2.fc15 (rawhide, f15)

How reproducible:
Always

Steps to Reproduce:
1. yum --disablerepo="*" --enablerepo=rawhide --installroot=/home/test/ -y install vinagre
2. rpm -e --root /home/test/ vinagre

(step 2 uses rpm due to a yum bug wrt erasure from chroot)

Actual results:
On step 1:
  Installing : vinagre-2.91.91-2.fc15.x86_64                            189/189 
/var/tmp/rpm-tmp.dOxUFl: line 1: update-desktop-database: command not found
/var/tmp/rpm-tmp.dOxUFl: line 2: gconftool-2: command not found
/var/tmp/rpm-tmp.dOxUFl: line 3: gconftool-2: command not found

On step 2:
/var/tmp/rpm-tmp.I19F16: line 1: update-desktop-database: command not found

Expected results:
No errors/warnings on install and erase.

Additional info:
The calls to update-foo-database calls should be redirected to /dev/null and ||: added to suppress error codes. For gconf schema install, "Requires(post): GConf2" should be added (see http://fedoraproject.org/wiki/Packaging/ScriptletSnippets#GConf for guidelines on handling these)

Comment 1 Fedora End Of Life 2013-04-03 13:54:01 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 2 Matthias Clasen 2013-06-17 00:37:24 UTC
This has been fixed in the meantime.