When we compose images for anaconda, we install a bunch of things into a chroot using the nodocs flag. MANY packages don't expect this and have noisy %post sections (more often than not involving trying to call install-info).
Should packages try to quiet this down or skip install-info if there is no info file?
On 12/21/2008 06:14 AM, Jesse Keating wrote:
When we compose images for anaconda, we install a bunch of things into a chroot using the nodocs flag. MANY packages don't expect this and have noisy %post sections (more often than not involving trying to call install-info).
I've seen that too, I often install servers where there is no need for docs, being them either man or info pages. no man*, no groff, no pinfo
Should packages try to quiet this down or skip install-info if there is no info file?
packages should skip installing ALL the docs. info pages are doc.
On Sun, 2008-12-21 at 07:40 +0200, Manuel Wolfshant wrote:
packages should skip installing ALL the docs. info pages are doc.
Well, it does skip it, however it's the %post command that isn't setup to account for that. Apparently you have to mung some file after the rpm is installed to update a cache or something.
Once upon a time, Jesse Keating jkeating@redhat.com said:
On Sun, 2008-12-21 at 07:40 +0200, Manuel Wolfshant wrote:
packages should skip installing ALL the docs. info pages are doc.
Well, it does skip it, however it's the %post command that isn't setup to account for that. Apparently you have to mung some file after the rpm is installed to update a cache or something.
Is there a way for a %post to know if --excludedocs was set?
Alternately, maybe RPM should take care of this step, not every package that wants to install info pages. If you excludedocs, you'll still get the install-info Requires for each of those packages, even though it is not really required now.
Jesse Keating wrote, at 12/21/2008 01:14 PM +9:00:
When we compose images for anaconda, we install a bunch of things into a chroot using the nodocs flag. MANY packages don't expect this and have noisy %post sections (more often than not involving trying to call install-info).
Should packages try to quiet this down or skip install-info if there is no info file?
Just for info: Whether error messages on scriptlets should be completely silent or not was once discussed (one year ago) and somes person said yes and some persons said no.
ref: http://www.redhat.com/archives/fedora-maintainers/2007-July/msg00046.html http://www.redhat.com/archives/fedora-maintainers/2007-July/msg00048.html http://www.redhat.com/archives/fedora-maintainers/2007-July/msg00050.html
Mamoru