Bug 1035812

Summary: [FEAT 7.1] rpm is not able to build packages with 4GBplus file
Product: Red Hat Enterprise Linux 7 Reporter: Aleš Mareček <amarecek>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED DEFERRED QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: jzeleny, pmatilai
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-29 10:15:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Aleš Mareček 2013-11-28 14:29:43 UTC
Description of problem:
rpm is not able to build packages bigger than 4GB.

Version-Release number of selected component (if applicable):
rpm-4.11.1-9.el7

How reproducible:
Always

Steps to Reproduce:
1. create a spec file, create big files (use "dd" for example)
2. rpmbuild --clean -bb specfile.spec

Actual results:
Processing files: 4GBpluspkg-1.0-1.noarch
Provides: 4GBpluspkg = 1.0-1
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/4GBpluspkg-1.0-1.x86_64
error: create archive failed on file /root/rpmbuild/BUILDROOT/4GBpluspkg-1.0-1.x86_64/usr/local/4GBpluspkg.tar: cpio: File too large for archive


RPM build errors:
    create archive failed on file /root/rpmbuild/BUILDROOT/4GBpluspkg-1.0-1.x86_64/usr/local/4GBpluspkg.tar: cpio: File too large for archive
End time: Thu Nov 28 09:03:14 EST 2013


Expected results:
build successful

Additional info:
spec file:
# cat 4GBpluspkg.spec
Summary: 4GBpluspkg Package
Name: 4GBpluspkg
Version: 1.0
Release: 1
Group: System Environment/Base
License: GPL
BuildArch: noarch

%description

This is 4GBpluspkg test package

%build
# more-than-4G-file more-than-2G-file more-than-1G-file 10M-file 1M-file
tar -cf 4GBpluspkg.tar more-than-4G-file more-than-2G-file more-than-1G-file 10M-file 1M-file

%install
mkdir -p %{buildroot}/usr/local/
mv 4GBpluspkg.tar %{buildroot}/usr/local/

%files
/usr/local/4GBpluspkg.tar

Comment 1 Jan Zeleny 2013-11-28 18:58:17 UTC
Note that full support of 4G+ rpms is well known limitation of rpm and it's not one that is simple to fix. We have been working on this for past several months and IIRC the full support is not even in stable upstream release yet. I won't close this bug as wontfix but I certainly don't recommend providing this extension in RHEL7.0.

Comment 2 Panu Matilainen 2013-11-29 10:15:30 UTC
The support for large files is not something we can ever backport to rpm 4.11 (and thus rhel-7) within reason, the related changes are way, way too intrusive.
CLOSED DEFERRED, this is rhel-8 material.