Bug 1156497 - cpio digest mismatch when initializing fc19 chroot
Summary: cpio digest mismatch when initializing fc19 chroot
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 21
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1173997 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-24 15:07 UTC by David Caro
Modified: 2016-06-26 23:50 UTC (History)
15 users (show)

Fixed In Version: rpm-4.12.0.1-3.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Fresh fc21 server install, updated and just installed mock.
Last Closed: 2014-11-01 16:39:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description David Caro 2014-10-24 15:07:15 UTC
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:

Comment 1 Miroslav Suchý 2014-10-27 11:04:21 UTC
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

Comment 2 Panu Matilainen 2014-10-27 11:08:55 UTC
This is rpm territory, and yes I can reproduce.

Comment 3 Panu Matilainen 2014-10-27 11:50:09 UTC
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...

Comment 4 Fedora Update System 2014-10-28 10:00:02 UTC
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

Comment 5 Fedora Update System 2014-11-01 16:39:56 UTC
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.

Comment 6 Ľuboš Kardoš 2015-07-02 14:04:41 UTC
*** Bug 1173997 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.