Bug 575499

Summary: "rpm -qi" output is misaligned
Product: [Fedora] Fedora Reporter: Tim Landscheidt <tim>
Component: rpmAssignee: Jindrich Novy <jnovy>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 11CC: ffesti, jnovy, metherid, pknirsch, pmatilai
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: 2010-06-28 15:42:30 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 Tim Landscheidt 2010-03-21 01:41:24 UTC
Description of problem:

The "Build Host" part of the output of "rpm -qi" is misaligned:

| [tim@passepartout ~]$ LANG=de_DE.UTF8 rpm -qi fedora-release
| Name        : fedora-release               Relocations: (not relocatable)
| Version     : 11                                Vendor: Fedora Project
| Release     : 1                             Build Date: Mo 11 Mai 2009 22:45:33 UTC
| Install Date: Mo 22 Jun 2009 18:19:18 UTC      Build Host: x86-1.fedora.phx.redhat.com
| Group       : System Environment/Base       Source RPM: fedora-release-11-1.src.rpm
| Size        : 27124                            License: GPLv2
| Signature   : RSA/8, Di 12 Mai 2009 02:43:27 UTC, Key ID 1dc5c758d22e77f2
| Packager    : Fedora Project
| URL         : http://fedoraproject.org
| Summary     : Fedora release files
| Description :
| Fedora release files such as yum configs and various /etc/ files that
| define the release.
| [tim@passepartout ~]$ LANG=en_GB.UTF8 rpm -qi fedora-release
| Name        : fedora-release               Relocations: (not relocatable)
| Version     : 11                                Vendor: Fedora Project
| Release     : 1                             Build Date: Mon 11 May 2009 22:45:33 UTC
| Install Date: Mon 22 Jun 2009 18:19:18 UTC      Build Host: x86-1.fedora.phx.redhat.com
| Group       : System Environment/Base       Source RPM: fedora-release-11-1.src.rpm
| Size        : 27124                            License: GPLv2
| Signature   : RSA/8, Tue 12 May 2009 02:43:27 UTC, Key ID 1dc5c758d22e77f2
| Packager    : Fedora Project
| URL         : http://fedoraproject.org
| Summary     : Fedora release files
| Description :
| Fedora release files such as yum configs and various /etc/ files that
| define the release.
| [tim@passepartout ~]$

If a package is not installed ("not installed"), the alignment is correct.

  If you patch rpmpopt.in, where the format seems to be defined, à la:

| --- rpmpopt.in	2010-03-21 01:36:41.688916707 +0000
| +++ rpmpopt.in~	2009-11-25 06:59:55.000000000 +0000
| @@ -68,7 +68,7 @@
|  rpm	alias --info --qf 'Name        : %-27{NAME}  Relocations: %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n\
|  Version     : %-27{VERSION}       Vendor: %{VENDOR}\n\
|  Release     : %-27{RELEASE}   Build Date: %{BUILDTIME:date}\n\
| -Install Date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)            }|   Build Host: %{BUILDHOST}\n\
| +Install Date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed)         }|      Build Host: %{BUILDHOST}\n\
|  Group       : %-27{GROUP}   Source RPM: %{SOURCERPM}\n\
|  Size        : %-27{LONGSIZE}%|LICENSE?{      License: %{LICENSE}}|\n\
|  Signature   : %|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|\n\

it should work fine for the German locale, but the English will still fail as "Mon 22 Jun 2009 18:19:18 UTC" is 2*8* characters long. It's probably necessary to conduct a small survey of how long the date/time strings in the different locales render to be on the safe side.


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

rpm-4.7.2-1.fc11.i586

Comment 1 Jindrich Novy 2010-03-24 20:15:11 UTC
Fixed upstream for now.

Each tag is printed on separate line. As a bonus, rpm -qi now prints Epoch (if present), Architecture and BugURL :)

Comment 2 Bug Zapper 2010-04-28 11:58:36 UTC
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Bug Zapper 2010-06-28 15:42:30 UTC
Fedora 11 changed to end-of-life (EOL) status on 2010-06-25. Fedora 11 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.