Bug 1533092
Summary: | Non-existent %ghost files cause verification failure | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomas Tomecek <ttomecek> |
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: | 27 | CC: | alessandro.polidori, athmanem, ignatenko, jamielinux, mjw, mrunge, nodejs-sig, packaging-team-maint, piotr1212, pmatilai, pmoravco, sgallagh, tchollingsworth, thrcka, tom, vmukhame, zsvetlik |
Target Milestone: | --- | Keywords: | Regression, Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rpm-4.14.1-1.fc27 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-02-06 15:33:24 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: |
Description
Tomas Tomecek
2018-01-10 13:02:24 UTC
This isn't a failure. Those files aren't supposed to be installed. They're optional config files that an end-user may choose to create. We have them in the spec file as %ghost, which means that if they were created, they should be removed when the package is uninstalled. This is breaking container image builds, so I'm not okay with just closing this down. Hence reassigning to rpm: can rpm exit with 0 if ghost files are not present? Can you not use --noghost to tell it to ignore ghost files during verification? Though as it doesn't print anything (without -v) it should still probably exit zero even without that as a ghost file being missing isn't actually verification failure. There's are at least two rpm bugs here, reassigning was the right thing to do: - there's a disparancy between the output and exit code: if it's an error that ghosts are not there, the failing files should be included in non-verbose output, and if it's not an error then the exit code should be zero - as a general rule, a successful unforced install must verify cleanly -> it cannot be an error that ghost files are not there In the meanwhile, adding %missingok attribute to the files in question should work around the issue. Thank you gentlemen, you are so helpful. I went with the easier fix (--noghost) and it works just fine. Happy Friday! Fixed upstream: https://github.com/rpm-software-management/rpm/commit/7013a82d575309be8b7a382fcb5aa57a9f4e4635 rpm-4.14.1-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-cf91c45f15 rpm-4.14.1-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-cf91c45f15 rpm-4.14.1-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. |