Bug 92252 - gawk does not install with --excludedocs
Summary: gawk does not install with --excludedocs
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gawk (Show other bugs)
(Show other bugs)
Version: 9
Hardware: All Linux
medium
medium
Target Milestone: ---
Assignee: Florian La Roche
QA Contact: Brock Organ
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-06-04 06:29 UTC by Tim Potter
Modified: 2007-04-18 16:54 UTC (History)
0 users

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: ---


Attachments (Terms of Use)

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



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