Red Hat Bugzilla – Bug 506194
New rpmbuild > 2GB size check occurs prior to duplicate file elimination
Last modified: 2012-06-20 11:56:32 EDT
Created attachment 348032 [details]
Example .spec file to generate described error condition
Description of problem:
A new size check was recently added to rpmbuild (in Bug 433795), which causes rpmbuild to gracefully error and exit if the contents of the .rpm will exceed 2GB in size.
This size check is performed prior to the elimination of duplicate files, however, so in odd fringe cases it is possible for rpmbuild to exit with the >2GB warning even if the contents of the .rpm are actually smaller than 2GB.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create an rpm .spec file containing duplicate files in the %files section such that the total size of all the duplicate files exceeds 2GB but the total size of the files when duplicates are eliminated is less than 2GB.
I've attached an extremely simple example .spec file that lists a directory in the %files section (thus including the contents of that directory) but then also includes the individual files in that directory.
2. Attempt to rpmbuild that spec file.
The rpmbuild will fail with the following error message:
RPM build errors:
Package too large (> 2147483647 bytes)
The rpmbuild should succeed.
This is admittedly an exception case that only occurs when the .spec file is arguably wrong (or at least lazy). However, since rpmbuild does gracefully handle duplicate files, this should be taken into account in the package size check.
One week with no response on this bug; raising severity.
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life.
Please See https://access.redhat.com/support/policy/updates/errata/
If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.