Bug 92252

Summary: gawk does not install with --excludedocs
Product: [Retired] Red Hat Linux Reporter: Tim Potter <tpot>
Component: gawkAssignee: Florian La Roche <laroche>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 9   
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: 2003-06-04 10:32:04 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 Tim Potter 2003-06-04 06:29:23 UTC
Description of problem:

gawk does not install with --excludedocs

Version-Release number of selected component (if applicable):

gawk-3.1.1-9.i386.rpm and gawk-3.1.1-4.i386.rpm

Steps to Reproduce:
1. rpm -i --excludedocs gawk-3.1.1-9.i386.rpm
    
Actual results:

install-info: No such file or directory for /usr/info/gawk.info.gz
error: execution of %post scriptlet from gawk-3.1.1-9 failed, exit status 1

Expected results:

Installs correctly with no errors.

Comment 1 Tim Potter 2003-06-04 06:30:59 UTC
Here's a patch:

--- SPECS/gawk.spec.orig        2003-06-04 16:19:47.000000000 +1000
+++ SPECS/gawk.spec     2003-06-04 16:21:41.000000000 +1000
@@ -52,7 +52,8 @@
 rm -rf $RPM_BUILD_ROOT
  
 %post
-/sbin/install-info %{_infodir}/gawk.info.gz %{_infodir}/dir
+[ -f %{_infodir}/gawk.info.gz ] && \
+       /sbin/install-info %{_infodir}/gawk.info.gz %{_infodir}/dir || :
  
 %preun
 if [ $1 = 0 ]; then


Comment 2 Florian La Roche 2003-06-04 10:32:04 UTC
Fixed in our internal cvs tree, but I will not immediately build a new rpm
with this.

thanks for the bug-report,

Florian La Roche