Bug 685037 - %post and %postun scriptlet errors/warnings
Summary: %post and %postun scriptlet errors/warnings
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: vinagre
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Bastien Nocera
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-15 06:35 UTC by Panu Matilainen
Modified: 2013-06-17 00:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-17 00:37:24 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.