(btw, there are bugzilla entries for both lsb-redhat and redhat-lsb. Confusing, to say the least) the redhat-lsb package depends upon the sendmail package. This needs to be fixed now that either sendmail or postfix can supply /usr/sbin/sendmail
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.
Bug 59665 is *wrong*.
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.