Bug 78892 - postinstall script fails on info file installation
postinstall script fails on info file installation
Product: Red Hat Raw Hide
Classification: Retired
Component: libgcj (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Jakub Jelinek
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2002-12-02 18:49 EST by Gary Peck
Modified: 2007-04-18 12:48 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-12-19 13:12:28 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Gary Peck 2002-12-02 18:49:39 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020830

Description of problem:
The postinstall script of libgcj fails when upgrading because of an error in the
/usr/share/info/fastjar.info file. fastjar.info does not take ownership of the
'grepjar' and 'jar' info entries. As a result, when an old version of libgcj is
uninstalled, it does not remove the old 'grepjar' and 'jar' info entries.

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

How reproducible:

Steps to Reproduce:
1. Have a version of libgcj already installed.
2. Upgrade to a newer version of libgcj.

Actual Results:  rpm returns the following error:
install-info: menu item `grepjar' already exists, for file `(none)'
error: %post(libgcj-3.2.1-1) scriptlet failed, exit status 1

Expected Results:  The 'grepjar' and 'jar' info entries should have been
properly deleted by the old package's uninstall.

Additional info:

Here's a patch to /usr/share/info/fastjar.info that will fix the problem (I hope
it's short enough to warrant putting inline in the bug report):
--- fastjar.info.orig   2002-12-02 15:40:36.000000000 -0800
+++ fastjar.info        2002-12-02 15:40:36.000000000 -0800
@@ -8,9 +8,9 @@
 INFO-DIR-SECTION Individual utilities
-* jar: Invoking jar.
+* jar: (fastjar)Invoking jar.
                             An archive tool for Java archives
-* grepjar: Invoking grepjar.
+* grepjar: (fastjar)Invoking grepjar.
                             Search files in a jar file for a pattern
Comment 1 Jakub Jelinek 2002-12-04 10:52:22 EST
Thanks, fixed on gcc CVS trunk and gcc-3_2-rhl8-branch, will appear in gcc-3.2.1-2.

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