I am new to rpm packaging, and as I understand it, rpm-build has problems with file sizes> 4 GB due to cpio limitations. Therefore, I split the large file in my package with the gnu section into 512 MB files [this is done as part of rpmbuild, as large files generate build time]. I still see the error: msgstr "error: the archive could not be created in the file / io 1 / dm / build / BUILDROOT / pkg / installdir / lib / clfsplitab: cpio: Bad magic", where clfsplitab is a 512 MB large file split . Any suggestions on how to track the exact question? Or is there a better way to process / generate large payload packets?
Update: As shown, the error was in clfsplitab, that is, in the second split file (since the gnu partition usually separates files with the suffix aa, ab, ac, etc. It seems that cpio could not recognize the file type, the first file was tar, the second and the rest were data..gzipped divided parts). It seems that only one error has been resolved to raise the same bad magic error, but this time in the last part.
Note: I can control the output size of files that go in rpm. Ideally, the size of the flushed full file is about 4 g [which is divided into 512 MB blocks]. But in order to verify that this is actually not a problem with the size of the package, I constantly reduced the size of the created object file, and if the package goes below 2G, it seems to work fine, and I am getting good revs. If I remember correctly, the size problem was fixed with rpm 4.4.x. Does this still look like the cpio problem used by rpm for archiving?
source share