Softpanorama

May the source be with you, but remember the KISS principle ;-)
Home Switchboard Unix Administration Red Hat TCP/IP Networks Neoliberalism Toxic Managers
(slightly skeptical) Educational society promoting "Back to basics" movement against IT overcomplexity and  bastardization of classic Unix

Sendmail instead of postfix issue

News Cluster job schedulers Recommended Links PBS Professional Torque Installation of open source version of PBSpro PBS User Guide
Torque installation from EPEL RPMs Building RPM packages from PBSpro source       Humor Etc

Why, on earth they are still using  Sendmail is completely unclear, and pretty bizarre. Kind of black mark for PBSpro developers. They base is main RHEL/CENTOS 6 and 7.


Top Visited
Switchboard
Latest
Past week
Past month

NEWS CONTENTS

Old News ;-)

CentOS7 install issues - Users-Site Administrators

PBS Professional Open Source Project
buchmann

Update:

I have read the comments regarding compilation of PBSpro under OHPC
https://github.com/PBSPro/ohpc28

The files necessary to compile (pbspro.spec and pbspro.14.1.0.tar.gz) can be found in the src.rpm, which is in the provided zipfile (with centos7 compiled binaries).

Rather than first extracting the files and then compiling (rpmbuild), I have compiled directly with e.g.

rpmbuild --rebuild pbspro-14.1.0-13.1.src.rpm

The compilation goes smoothly, but the resulting binary rpms still require sendmail (and we still use postfix). As far as I know, postfix is sendmail compatible, so it really should not matter.

Next step for me is to actually extract the content of the src.rpm, and see if I can hack the spec to ask for sendmail OR postfix.

/Bjarne

subhasisb

Hi Bjarne,

Thanks for joining the forum and trying to install pbs.

Yes, what you faced is very typical of the CentOS distro. They do upgrade their libraries between minor upgrades, such that a package created for CentOS7 would not work for CentOS7.2 (we saw the libical incompatibility as well).

You seem to have found the src.rpm and did the rpmbuild. The pbs spec file currently lists the dependency on sendmail. You can see the dependency at line 130 in the file pbspro.spec. You might want to change that line to use postfix.

  • One suggestion is to first raise a bug against pbs in the bug repository: pbspro.atlassian.net. That way, you or another community member can submit a fix for pbs to work with postfix.
  • Do you also want to include the current steps of building using the src.rpm in the INSTALL file as an option? If so, you could potentially raise another bug for that.

You might have already seen/used it, but if not, you might want to check out the pbs sources at https://github.com/PBSPro/pbspro17. The instructions to install from sources in github is located here: https://github.com/PBSPro/pbspro/blob/master/INSTALL29

We are eager to hear back from you as to how your hacking went. Kindly feel free to write back on this forum as well.

Thanks and regards,
Subhasis

buchmann

Jun '16

Hi Subhasis,

Thank you for replying.

Yes, I found the src.rpm, and yesterday I did mess around with the spec-file - exactly at the line you mention. Thanks, though.

I have tried various things to test it out. I have not actually tested any of the installations - just verified that installation is possible (rpm -i --test), but at least it shows if compilation is possible, and if the generated rpm(s) should be able to install on my system.

Firstly, it may be important for other readers of this thread to get a simple howto - the steps to compile pbspro RPMs to a specific CentOS 7 environment (please correct me if these steps are wrong).

A. Get the centos7 zip-file with pre-compiled rpms. It will contain the necessary src.rpm.

B. Extract the content of the src.rpm like e.g.:
rpm2cpio pbspro-14.1.0-13.1.src.rpm | cpio -idmv

This should generate a tarball and a specfile (pbspro-14.1.0.tar.gz and pbspro.spec).

C. Put the tarball in ~/rpmbuild/SOURCES/

D. Edit the spec-file - I had to replace the sendmail with postfix (but see below!)

perl -pi -e 's/^Requires: sendmail$/Requires: postfix/' pbspro.spec

E. Compile: rpmbuild -bb pbspro.spec

With a bit of luck, new rpms should be generated in ~/rpmbuild/RPMS/x86_64/

Now on with the spec-file issues.

Firstly, sendmail is "obsolete" on RHEL7 (and thus on CentOS7). Redhat writes

Red Hat Enterprise Linux 7 offers two primary MTAs: Postfix and Sendmail.
Postfix is configured as the default MTA and Sendmail is considered deprecated.

ref: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/s1-email-mta.html5
So, if you want to hard-code a particular Mail Transport Agent (MTA), then probably postfix is a better choice than sendmail - but see below.

For newer rpm versions (>= 4.13), it is actually possible to write stuff like:
Requires: (sendmail or postfix)
however, for CentOS72, rpm is only v4.11.3, so that does not buy us much (compilation fails if you try).

There seems to be a better solution - which is just to require "any Mail Transport Agent" with:

Requires: MTA

MTA is provided by both sendmail and postfix (and by exim, opensmtpd and ssmtp if you have those in your repo), so it should work for both MTA flavors. Thus, I suggest you simply change this line up-stream.

And yes - I would suggest to include the RPM-build instructions in the INSTALL file. It our site, we certainly prefer to use RPMs to deploy.

I'll try to raise both as "bugs" - we'll see how it goes - I'll refer to this thread for possible solutions.

With regard to the libical issue, I do not really know how to fix this, so that a Centos7 (7.0 or 7.1) build may install on a 7.2 system. Maybe, it just won't - it is not like you explicitly require the .0 lib - it is probably just the one present in the build environment - while CentOS7.2 use the .1 lib.

Once again, many thanks for the warm reception.

/Bjarne

subhasisb

Jun '16

Hi Bjarne,

Thanks for the detailed email and the updated steps for CentOS7.2. This will be very valuable for other community members as well.

About the libical issue, i have in the past been able to install pbs ignoring/supressing rpm dependencies and then create a softlink from libical to the version that pbs needs. This is really brute force way of making it work, and should not be done on a production system, but just mentioning for academic interest.

The right solution (as you have noted already in the issue you raised) is to distribute a version of PBS for CentOS 7.2 (or fix the sendmail dependency from pbspro.sepc to allow community to build PBS from source on CentOS 7.2)

I noticed you have raised the issues on the pbs issue tracker. Many thanks for that. Kindly feel free to submit code fixes for any/all of the issues, or leave them for other community members to work on.

Recommended Links

Google matched content

Softpanorama Recommended

Top articles

Sites

Top articles

Sites

...



Etc

Society

Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks : Toxic Managers :   Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism  : The Iron Law of Oligarchy : Libertarian Philosophy

Quotes

War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin : Skeptics : Propaganda  : SE quotes : Language Design and Programming Quotes : Random IT-related quotesSomerset Maugham : Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose BierceBernard Shaw : Mark Twain Quotes

Bulletin:

Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 : Unemployment Bulletin, 2010 :  Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) : Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 : Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November, 2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method  : Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law

History:

Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science : Richard Stallman : Linus Torvalds  : Larry Wall  : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor : History of pipes concept : Solaris : MS DOSProgramming Languages History : PL/1 : Simula 67 : C : History of GCC developmentScripting Languages : Perl history   : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander : Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history

Classic books:

The Peter Principle : Parkinson Law : 1984 : The Mythical Man-MonthHow to Solve It by George Polya : The Art of Computer Programming : The Elements of Programming Style : The Unix Haterís Handbook : The Jargon file : The True Believer : Programming Pearls : The Good Soldier Svejk : The Power Elite

Most popular humor pages:

Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor : Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor : Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor : Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor : Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor

The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D


Copyright © 1996-2021 by Softpanorama Society. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.

This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...

You can use PayPal to to buy a cup of coffee for authors of this site

Disclaimer:

The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the Softpanorama society. We do not warrant the correctness of the information provided or its fitness for any purpose. The site uses AdSense so you need to be aware of Google privacy policy. You you do not want to be tracked by Google please disable Javascript for this site. This site is perfectly usable without Javascript.

Last modified: March, 12, 2019