Bug 60879
| Summary: | incorrect dependency on sendmail | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Chris Ricker <chris.ricker> |
| Component: | postfix | Assignee: | wdovlrrw <brosenkr> |
| Status: | CLOSED RAWHIDE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.3 | CC: | msw, notting |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2002-03-26 20:25:02 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 59665 | ||
| Bug Blocks: | 61590 | ||
|
Description
Chris Ricker
2002-03-08 05:56:29 UTC
Still broken in beta3 (redhat-lsb-1.1.0-0.4)
[kaboom@localhost kaboom]$ sudo rpm -Uvh redhat-lsb-1.1.0-0.4.i386.rpm
error: failed dependencies:
/usr/sbin/sendmail is needed by redhat-lsb-1.1.0-0.4
both provide /usr/sbin/sendmail. It doesn't WORKFORME. Try it on a beta3 system and see.
[kaboom@skuld kaboom]$ rpm -q postfix
postfix-1.1.4-3
[kaboom@skuld kaboom]$ rpm -q sendmail
package sendmail is not installed
[kaboom@skuld kaboom]$ sudo rpm -Uvh redhat-lsb-1.1.0-0.4.i386.rpm
error: failed dependencies:
/usr/sbin/sendmail is needed by redhat-lsb-1.1.0-0.4
[kaboom@skuld kaboom]$
Now that all the alternatives stuff is in place, neither sendmail nor postfix
provide /usr/sbin/sendmail; it's a symlink which gets generated by running
alternatives (or wrappers like redhat-switchmail).
[kaboom@skuld kaboom]$ rpm -qlp sendmail-8.12.2-8.i386.rpm | grep sbin/sendmail
/usr/sbin/sendmail.sendmail
[kaboom@skuld kaboom]$ rpm -qf /usr/sbin/sendmail
file /usr/sbin/sendmail is not owned by any package
[kaboom@skuld kaboom]$
postfix doesn't have the Provides: line. Bug #59665 calims you must not Provide: anything with a /, so IMO redhat-lsb should require smtpdaemon (virtual package really provided by both) instead of /usr/sbin/sendmail (yes, I know it sucks). Requires: smpdaemon doesn't explicitly require /usr/sbin/sendmail, which IS the requirement for LSB. The real problem is there's no correct way currently to specify what the LSB requires. Neither sendmail nor postfix really provide /usr/sbin/sendmail -- they only provide it if the user has configured alternatives to do so.... Given that there's no way to do that, isn't "Requires: smtpdaemon" the sanest thing to do? Um, no, they both provide /usr/sbin/sendmail, via the alternatives called in %post. Put it this way: on an alternatives-enabled system, one of the packages will provide it, barring someone mucking with the links by hand. So I consider it OK for the packages to Provide: /usr/sbin/sendmail. Right: User installs both at the same time, the first one installed gets to be /usr/sbin/sendmail. If a user then removes the current default, the other takes over as /usr/sbin/sendmail. If you install either one separately, which ever one you install becomes /usr/sbin/sendmail. So in essence they both provide /usr/sbin/sendmail. postfix 1.1.5-3 provides /usr/sbin/sendmail /usr/bin/mailq /usr/bin/rmail Still waiting on resolution of 59665, though. |