cpio: Bad magic on ARM - (fixed)
Panu Matilainen
pmatilai at laiskiainen.org
Tue Oct 30 12:15:26 UTC 2012
On 10/30/2012 01:29 PM, David Hagood wrote:
> On 10/30/2012 02:01 AM, Panu Matilainen wrote:
>>
>> The first thing that comes to mind is payload compression which the
>> ancient rpm-4.0.4 doesn't support.
> And that was indeed the problem. The weird thing is that it
> sort-of-worked - it didn't just say "I don't like bzip2".
> But that was the issue - changing the format to gzip solved the issue.
Ah, bzip2... that explains: rpm-4.0.4 does support bzip2 compression IF
it was enabled at build-time, but it advertises rpmlib(PayloadIsBzip2)
capability even when the support was not built in. That bug has since
been fixed (in rpm 4.6.x or thereabouts).
> That *should* cause dependency errors
>> on attempted install though - are you installing with --nodeps?
> No, I avoid using that. If you are going to ignore deps why use RPM in
> the first place?
I just needed to check, thats all :)
>>
>> Upstream rpm defaults to backwards compatible settings, but eg RHEL 6
>> and derivates (which have rpm-4.8.0) ship with XZ compression and
>> SHA-256 file digests enabled, and you'll need to disable both at build
>> time to have the resulting packages work on rpm 4.0.4, eg in the spec:
>>
>> %global _source_filedigest_algorithm 1
>> %global _binary_filedigest_algorithm 1
> Odd, but that wasn't necessary.
Neither the filedigest and payload compression changes are necessary
with upstream rpm "factory defaults", but distros can and do override
them. The filedigest changes would be necessary with RHEL/Centos 6, but
not all distros use the stronger file digests. Ditto with the
compression: upstream rpm default is gzip, RHEL/Centos 6 defaults to XZ
but some distros use / have used bzip2.
>> %global _binary_payload w9.gzdio
>> %global _source_payload w9.gzdio
>>
> Is there any good documentation on all these variables anywhere on
> rpm.org? I have not found any.
Not in any central way I'm afraid, but /usr/lib/rpm/macros tries to be
self-documenting to some degreee. Also rpm release notes carry some
information but that involves some hunting for the versions, eg:
http://rpm.org/wiki/Releases/4.6.0#Strongfilechecksums
http://rpm.org/wiki/Releases/4.7.0#XZpayloadcompression
- Panu -
> Thank you for the confirmation, and I will keep the digest issues in mind.
>
>
More information about the Rpm-list
mailing list