Bug 447340

Summary: make missing sed non fatal in %post
Product: [Fedora] Fedora Reporter: Eric Paris <eparis>
Component: texinfoAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dcantrell, pertusus, rc040203
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-29 11:57: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:
Embargoed:

Description Eric Paris 2008-05-19 15:55:01 UTC
Since the info package (which i think is a subpackage of texinfo) is often
(always?) included in installation it needs to be mindful of that fact that
programs it calls during post may not be installed, even if they are properly
'required.'  This is because there is no ordering of rpms during a transaction.
 Recently info started to use 'sed' in its post script and if it is missing will
cause the scriptlet to fail.  Since the scriptlet fails the completed
installation does not believe that the info package is installed.  Obviously
this will eventually get fixed up later during some yum update, but this failure
needs to be made non-fatal to the post scriptlet.

Installing: info                         ##################### [ 30/129]
/var/tmp/rpm-tmp.15950: line 2: sed: command not found
error: %post(info-4.12-1.fc10.x86_64) scriptlet failed, exit status 127

Comment 1 Vitezslav Crhonek 2008-05-23 14:13:32 UTC
I forgot to put Requires(post): sed into texinfo spec, my shame. But it seems
from your comment, that it could not help... Are you sure? Because I believe,
that sed in Requires will fix the problem.

Comment 2 Ralf Corsepius 2008-05-28 17:38:41 UTC
This bug shows in koji
http://koji.fedoraproject.org/koji/getfile?taskID=633372&name=root.log

As broken %post scripts often have serious effects on rpm's overall performance,
I would not bet on the impact of this bug.

BTW: You should
Requires(post): /bin/sed
and use
/bin/sed ....

Further bug in your rpm-spec:
sed ... /usr/share/info/dir
This must be %{_infodir}/dir


Comment 3 Vitezslav Crhonek 2008-05-29 11:44:57 UTC
*** Bug 448843 has been marked as a duplicate of this bug. ***