Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1156497
Summary: | cpio digest mismatch when initializing fc19 chroot | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | David Caro <dcaroest> |
Component: | rpm | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 21 | CC: | admiller, eedri, fweimer, jdisnard, jzeleny, mebrown, msimacek, msuchy, novyjindrich, packaging-team-maint, pknirsch, pmatilai, praiskup, sbonazzo, williams |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | rpm-4.12.0.1-3.fc21 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: |
Fresh fc21 server install, updated and just installed mock.
|
|
Last Closed: | 2014-11-01 16:39:56 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
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. *** |
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: