Description of problem: When initializing a fc19 mock environment it fails to install the package binutils with the error: Error unpacking rpm package binutils-2.23.52.0.1-9.fc19.x86_64 error: unpacking of archive failed on file /usr/bin/ld;544a3ab2: cpio: Digest mismatch error: binutils-2.23.52.0.1-9.fc19.x86_64: install failed Version-Release number of selected component (if applicable): Installed Packages mock.noarch 1.1.41-3.fc21 python-mock.noarch 1.0.1-4.fc21 yum.noarch 3.4.3-153.fc21 cpio.x86_64 2.11-30.fc21 rpm.x86_64 4.12.0.1-2.fc21 How reproducible: On a fresh server install of fc21 (x86_64) (haven't tested on desktop) install mock and run mock using the default configuration for fedora-19-x86_64 (installed by mock). > mock --root=fedora-19-x86_64 --init Steps to Reproduce: 1.mock --root=fedora-19-x86_64 --init 2. 3. Actual results: Init fails on Error unpacking rpm package binutils-2.23.52.0.1-9.fc19.x86_64 error: unpacking of archive failed on file /usr/bin/ld;544a6a02: cpio: Digest mismatch error: binutils-2.23.52.0.1-9.fc19.x86_64: install failed Expected results: Init successful Additional info:
Mock just use yum. It may be problem of yum, rpm or cpio. Moving to first one in this chain. Changing the reproducer to: 1. sudo /usr/bin/yum --installroot /var/lib/mock/fedora-19-x86_64/root --releasever 19 install @buildsys-build --nogpgcheck This pass on Fedora 19, but fails on Fedora 21 with: Error unpacking rpm package binutils-2.23.52.0.1-9.fc19.x86_64 error: unpacking of archive failed on file /usr/bin/ld;544a6a02: cpio: Digest mismatch error: binutils-2.23.52.0.1-9.fc19.x86_64: install failed
This is rpm territory, and yes I can reproduce.
Its a regression on handling a hardlinked %ghost file: in binutils /usr/bin/ld and /usr/bin/ld.gold are hardlinked files in the buildroot but /usr/bin/ld is packaged as %ghost. Rpm >= 4.12 thinks a %ghost doesn't not count as a hardlink and it goes wrong from there. Will fix...
rpm-4.12.0.1-3.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/rpm-4.12.0.1-3.fc21
rpm-4.12.0.1-3.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 1173997 has been marked as a duplicate of this bug. ***