Bug 166958 - %post should check if info file exists before calling install-info to avoid error when installing with ---excludedocs
Summary: %post should check if info file exists before calling install-info to avoid e...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: texinfo
Version: 4
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Miloslav Trmač
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-08-28 23:13 UTC by Albert Strasheim
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 4.8-8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-01-16 04:29:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Albert Strasheim 2005-08-28 23:13:05 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

Description of problem:
When one installs info (and many other packages) with rpm's --excludedocs switch, the %post script generates an error because /sbin/install-info is called for a file that does not exist (some part of the documentation).

Is --excludedocs something we want to support? If so, should we get all the package maintainers to fix their spec files (some already check for existance of the info files prior to calling install-info)? We could also consider adding some kind of --missing-ok flag to install-info to be used when installing info documents in %post.

I'm thinking that fixing this could be useful for the Kadischi folks. I encountered this problem while trying to make a small Fedora installation to boot from a USB flash disk.

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

How reproducible:
Always

Steps to Reproduce:
1. rpm --excludedocs -ivh info
2.
3.
  

Actual Results:  install-info: No such file or directory for /usr/share/info/info-stnd.info.gz
error: %post(info-4.8-4.i386) scriptlet failed, exit status 1

Expected Results:  %post script should complete without error.

Additional info:

Comment 1 Miloslav Trmač 2006-01-16 04:28:53 UTC
Fixed in rawhide texinfo-4.8-8.  Thanks for your report.


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