[Rpm-maint] Inconsistency between RPMTAG_Summary and %{SUMMARY}

learny learny at lostpaperclips.com
Mon Jun 23 19:03:55 UTC 2008


Hello All:

First-off, thanks for the responses.  It was all very helpful.

As suggested by Pixel, I first checked the XML of the header.  It matched
that of the API call (i.e. also different from the command-line output).

Next, I took Peter's advice and changed the default language setting.  The
install had this as en_US.utf-8.  Changing this to 'en' made the output the
same (i.e. export LANG=en).

Thanks again for the help in resolving this issue!
Christopher



-----Original Message-----
From: Peter Bowen [mailto:pzb at novell.com] 
Sent: Saturday, June 21, 2008 4:34 AM
To: learny
Cc: rpm-maint at lists.rpm.org
Subject: Re: [Rpm-maint] Inconsistency between RPMTAG_Summary and %{SUMMARY}

On Fri, 2008-06-20 at 13:50 -0700, learny wrote:
> I have encountered an issue regarding the Summary field and
> headerGetEntry() in rpm 4.4.2-37.el5.  The string returned from the
> command-line differ from those of the API for the Summary for one
> package.  While the difference are relatively trivial, I thought it
> worthy a question to the mailing list.  Specifically, I have observed
> this only on RHED 5.0 only for the package cpuspeed.  Other packages
> on this system do not exhibit this behavior, nor has this problem
> occurred on my testing of other RPM-based systems of the SuSE variety.
>  
> I had just assumed that the command-line query tag of %{SUMMARY} maps
> to the API entry for RPMTAG_SUMMARY; however, this appears to not be
> the case.  Is this a known issue and/or is there documentation on
> this?

I suspect you are running into a translated string.  If you set your
environment to not specify a language, do you still see the issue?

While most programs are assumed to be have US English text as the
default, it is possible to have a US English transation associated with
the string.  I suspect in this case "CPU frequency adjusting daemon. "
is in the RPM header as the "C" (untranslated) string and "CPU frequency
adjusting daemon" is in the header or look-aside list as the string that
matches your language.

Thanks.
Peter




More information about the Rpm-maint mailing list