Red Hat Bugzilla – Bug 166958
%post should check if info file exists before calling install-info to avoid error when installing with ---excludedocs
Last modified: 2007-11-30 17:11:12 EST
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):
Steps to Reproduce:
1. rpm --excludedocs -ivh info
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.
Fixed in rawhide texinfo-4.8-8. Thanks for your report.