Bug 503020

Summary: rpm reports a large disk space requirement
Product: [Fedora] Fedora Reporter: Pádraig Brady <p>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: bkearney, chrisw, ffesti, jnovy, jwboyer, pmatilai, tmz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 4.7.0-2.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-03 13:55:13 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 Pádraig Brady 2009-05-28 10:42:40 UTC
I noticed an anomaly with %{SIZE} for the git rpm on fedora 11 beta.
On fedora 8 I can see the size is around the same as the actual usage:

$ rpm -q --qf="%{SIZE}\n" git-core
8543647
$ find $(rpm -ql git-core) -maxdepth 0 -type f | xargs du -b | cut -f1 | (tr '\n' +; echo 0) | bc
8717743

However on fedora 11 the %{SIZE} reports 100MB, which the usage is a
more reasonable 15MB:

$ rpm -q git
git-1.6.2.2-1.fc11.i586
$ rpm -q --qf="%{SIZE}\n" git
100428002
$ find $(rpm -ql git) -maxdepth 0 -type f | xargs du -b | cut -f1 | (tr '\n' +; echo 0) | bc
15864614

What am I missing?

Comment 1 Todd Zullinger 2009-05-28 12:27:20 UTC
I don't know what would cause this. The rpm maintainers should be better able to help.  Reassigning to rpm.

Comment 2 Panu Matilainen 2009-05-28 17:42:25 UTC
Right, another fix in this area forgot to deal with hardlinks so size of hardlinked files is calculated incorrectly now. Will fix.

Comment 3 Panu Matilainen 2009-06-03 13:55:13 UTC
Fixed in rpm-4.7.0-5.fc12, will pull to F11 too once past the zero-day update
flood.

Comment 4 Fedora Update System 2009-06-18 16:19:21 UTC
rpm-4.7.0-2.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/rpm-4.7.0-2.fc11

Comment 5 Fedora Update System 2009-07-11 16:54:51 UTC
rpm-4.7.0-2.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.