RPM fails to install with error "cpio: Digest mismatch"
Issue
- While developing for our RHEL 6 server line, we have to rebuild the LSF (load sharing facility) RPM. The build phase runs fine, but when installing the RPM we get the following error:
[root@tst0006 x86_64]# rpm -iHv lsf-7.6-7.RHEL6.x86_64.rpm
Preparing packages for installation...
group exists
user exists
lsf-7.6-7.RHEL6
error: unpacking of archive failed on file /opt/lsf/linux2.6-glibc2.3-x86_64/lib/ssched/libgcc_s.so.1;4fe3348c: cpio: Digest mismatch
- After a lot of Googling we think it has something to do with prelinking, and the following bugzilla entry (although old) confirms that: https://bugzilla.redhat.com/show_bug.cgi?id=149465
- Indeed LSF ships with its own libgcc, as per recommendation of the RHEL6 Application Compatibility Whitepaper (page 5, point 4, https://www.redhat.com/f/pdf/rhel/RHEL6_App_Compatibility_WP.pdf ).
- We have tried to override the __prelink_undo_cmd in the spec file with the following code, but that fails (and it appears to work on RHEL5). We have removed /etc/rpm/macros.prelink, but that also fails.
%define __prelink_undo_cmd /bin/cat prelink library
Environment
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
