[torquedev] [Bug 213] sendmail path in torque.spec influenced by _prefix

bugzilla-daemon at supercluster.org bugzilla-daemon at supercluster.org
Fri Aug 10 15:38:34 MDT 2012


http://www.clusterresources.com/bugzilla/show_bug.cgi?id=213

--- Comment #3 from Michael Jennings <mej at lbl.gov> 2012-08-10 15:38:34 MDT ---
(In reply to comment #2)
> So you consider torque trying to run /var/spool/torque/sbin/sendmail to be
> normal?

Your attempt to be snidely witty is noted and appreciated, but
--prefix/%{_prefix} and --with-server-home/%{torque_home} are entirely separate
and very different settings/variables.  :-)

But the point is worth making that there's a reason prefix and server home
directory are distinct settings, and you've crystallized it quite well in the
above.

> The workaround you posted does work, but I'd prefer to use the defaults...

It's not a "workaround."  It's the correct way to override the default
assumptions, one of those being that your system is properly configured, and
that sendmail is in the correct location mandated by relevant standards.

> and the default is flawed - it's hardcoded to SBIN/sendmail, however in our SL6
> install it's /usr/lib/sendmail which symlinks to mta-postfix.

$ ls -Fla /usr/*/sendmail*
lrwxrwxrwx. 1 root root     30 Jun 21  2011 /usr/lib/sendmail ->
/etc/alternatives/mta-sendmail*
lrwxrwxrwx. 1 root root     24 Jun 21  2011 /usr/lib/sendmail.postfix ->
../sbin/sendmail.postfix*
lrwxrwxrwx. 1 root root     21 Jun 21  2011 /usr/sbin/sendmail ->
/etc/alternatives/mta*
-rwxr-xr-x. 1 root root 213616 Jun  2  2011 /usr/sbin/sendmail.postfix*

That's on SL6, by the way.  As you can see, the canonical location is, indeed
/usr/sbin/sendmail.

> configure script locates this correctly, but torque.spec inserts its own value
> and breaks it.

If you do not have /usr/sbin/sendmail on your system, your installation is
broken and needs to be fixed.  :-)

-- 
Configure bugmail: http://www.clusterresources.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the torquedev mailing list