Bug 218257

Summary: postinstall scriptlet fail
Product: [Fedora] Fedora Reporter: Chien-Chung Yeh <yehjj>
Component: njb-sharpAssignee: Linus Walleij <triad>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: extras-qa
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-12-04 19:15:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chien-Chung Yeh 2006-12-04 07:51:11 UTC
Description of problem:
When upgrade "njb-sharp" package, it fail in "postinstall scriptlet".

Version-Release number of selected component (if applicable):
0.3.0-6.fc6

How reproducible:
Always

Steps to Reproduce:
1. rpm -Uvh njb-sharp-0.3.0-6.fc6.i386.rpm
2.
3.
  
Actual results:
Error message:
"/var/tmp/rpm-tmp.44184: line 1: /usr/bin/monodoc: No such file or directory
error: %post(njb-sharp-0.3.0-6.fc6.i386) scriptlet failed, exit status 127"

Expected results:
Upgrade without error.


Additional info:
%post: Replace the following line:
            /usr/bin/monodoc --make-index > /dev/null
            To:
            [ -x /usr/bin/monodoc ] && /usr/bin/monodoc --make-index > /dev/null

Comment 1 Linus Walleij 2006-12-04 19:15:46 UTC
Hm, something fishy here, the package has:

Requires(post): monodoc
Requires(postun): monodoc

But I guess this can happen anyway, so I've added
the check.

Comment 2 Chien-Chung Yeh 2006-12-05 06:33:15 UTC
Package "monodoc-1.1.18-2.fc6" in FC6 does not contain file "/usr/bin/monodoc".