| Summary: | incorrect use of Requires(pre)? | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Honza Silhan <jsilhan> |
| Component: | cyrus-imapd | Assignee: | Pavel Šimerda (pavlix) <psimerda> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | jsilhan, j, mhlavink, psimerda, vanmeeuwen+fedora |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-06-22 17:55:14 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Honza Silhan
2016-03-18 16:00:01 UTC
I fail to see anything suspicious here...
BuildRequires: byacc
BuildRequires: flex
BuildRequires: openssl-devel
Requires(post): pwgen
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
BuildRequires: systemd-units
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
%else
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
Well, the F24/rawhide package doesn't resemble that bit of code at all. It's actually still kind of a mess, because the individual subpackages have their own dependency blocks, and the dep on shadow-utils is indeed only a Requires(pre). But that's exactly correct in this case; it's needed only to create a user at install time and isn't needed at all at runtime or when the package is uninstalled. I suspect that nearly all of the dependencies on shadow-utils or /usr/sbin/useradd will fall into this category. So I'll close NOTABUG as the original report suggests. Then it's correct to close it. |