简体   繁体   English

rpmbuild 中的大源文件(大于 4 GB)

[英]Big source file (bigger than 4 GB) in rpmbuild

While trying to generate an rpm using rpmbuild version 4.11.3 including a source file of 5.7 GB I get the following error message :在尝试使用 rpmbuild 4.11.3 版(包括 5.7 GB 的源文件)生成 rpm 时,我收到以下错误消息:

error: create archive failed on file /path_and_name_of_file cpio: File too large for archive错误:在文件 /path_and_name_of_file 上创建存档失败 cpio:文件太大无法存档

I found an old message on this page saying :我在此页面上发现了一条旧消息:

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.对大文件的支持不是我们可以在合理的范围内向后移植到 rpm 4.11(因此是 rhel-7)的东西,相关的变化是方式,方式太具有侵入性。

Is there no way to include a source file of this size into an rpm?有没有办法将这种大小的源文件包含到 rpm 中?

Joachim Sauer comment did answer the question that the possibility of adding a source file bigger than 4 GB is possible only starting with version 4.12 of rpm. Joachim Sauer 的评论确实回答了以下问题:只有从 rpm 4.12 版开始,才有可能添加大于 4 GB 的源文件。 Unfortunately due to compatible limitation with other rpm I could not use that solution.不幸的是,由于与其他 rpm 的兼容限制,我无法使用该解决方案。

Aaron D. Marasco comment link to another post that suggest the you could go around the issue by using 'tar' instead of cpio, by specifying 'cpiobin' in rpmrc. Aaron D. Marasco 评论链接到另一篇文章,建议您可以通过在 rpmrc 中指定“cpiobin”,使用“tar”而不是 cpio 来解决该问题。 I didn't go for this solution.我没有去寻找这个解决方案。

The easy solution for my specific case was to divide the source file in two source files of less than 4 GB and that did the trick.对于我的特定情况,简单的解决方案是将源文件分成两个小于 4 GB 的源文件,这就成功了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM