Bug 78892

Summary: postinstall script fails on info file installation
Product: [Retired] Red Hat Raw Hide Reporter: Gary Peck <gbpeck>
Component: libgcjAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-12-19 18:12:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gary Peck 2002-12-02 23:49:39 UTC
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):
libgcj-3.2.1-1

How reproducible:
Always

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
 START-INFO-DIR-ENTRY
-* 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
 END-INFO-DIR-ENTRY

Comment 1 Jakub Jelinek 2002-12-04 15:52:22 UTC
Thanks, fixed on gcc CVS trunk and gcc-3_2-rhl8-branch, will appear in gcc-3.2.1-2.