Bug 88280

Summary: mutt erata has extra dependency
Product: [Retired] Red Hat Linux Reporter: Jonathan Peatfield <j.s.peatfield>
Component: muttAssignee: Bill Nottingham <notting>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: rvokal
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: 2003-04-08 15:37:56 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 Jonathan Peatfield 2003-04-08 15:34:21 UTC
Description of problem:

The recent mutt-1.4.1-0.8.x for RH8 now has a dependency on gettext which in
turn depends on libgjc.  This means +30M for systems which previously didn't
have either.

Can this be right?  I can imagine gettext being used during mutt BUILD time, but
surely not at runtime.  What does it do, generate message catalogs on the fly?

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

mutt-1.4.1-0.8.x

How reproducible:

Easily

Steps to Reproduce:
1.  rpm -e gettext (if you have it atm):
2.  $ rpm --upgrade mutt-1.4.1-0.8.x.i386.rpm 
error: Failed dependencies:
        gettext is needed by mutt-1.4.1-0.8.x

3.
    
Actual results:

error: Failed dependencies:
        gettext is needed by mutt-1.4.1-0.8.x

Expected results:

None.

Additional info:

It seems to have been added the the specfile at about the same time that mailcap
was (if I read the changelog right), but no comment about why it was added or
what on earth is is needed for...

Comment 1 Bill Nottingham 2003-04-08 15:37:56 UTC
It's a fix for 76448. That gettext requires libgcj is... unfortunate.

Comment 2 Jonathan Peatfield 2003-04-08 19:07:30 UTC
Could we not use a script which checks if gettext is installed instead of
depending on gettext?

e.g. a script called callgettext.sh (say)

 #! /bin/sh
 # callgettext.sh
 if gettext -d $1 -s "$2 \"" | tr -d '"' 2>/dev/null then
   # already have an answer to stdout
 else
   echo "$2 "
 fi

(I'm sure you can do better), and call it as:

   set pgp_good_sign="`callgettext.sh gnupg 'Good signature from'`"

then such a script could also be used in other places where if gettext is
installed we want a properly internationalised version, but fallback to the
fixed string if it isn't....

[ Sorry for the duplication of this, I'd forgotten that just replying to the
e-mail wouldn't get it added to the bugzilla comment-log... ]

 -- Jon