[torqueusers] Torque rpm build headaches

Trutwin, Joshua JTRUTWIN at CSBSJU.EDU
Mon Sep 12 14:19:01 MDT 2011


Hi - I just setup torque for a single compute node (currently).  I'm having some trouble with the make rpm command passing all my configure params to the rpmbuild.

Here's what I did:

./configure --prefix=/opt/torque-2.5.8 --disable-rpp --with-default-server=torque.csbsju.edu

When I do this and run:

make rpm

In the output I see this:

./configure --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --program-prefix= 
  --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share 
  --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var 
  --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
  --includedir=/usr/include/torque --with-default-server=torque.csbsju.edu 
  --with-server-home=/var/spool/torque --with-sendmail=/usr/sbin/sendmail 
  --disable-dependency-tracking --disable-gui --without-tcl --with-rcp=scp --enable-syslog 
  --disable-gcc-warnings --disable-munge-auth --without-pam --disable-drmaa --enable-high-availability 
  --disable-qsub-keep-override --disable-blcr --disable-cpuset --enable-spool --enable-server-xml

The --with-default-server was passed but not the --disable-rpp or --prefix=/opt/torque-2.5.8.  And --disable-gui is passed in even though it's enabled when running the ./configure on it's own.

I can get around these by running:  

make RPMOPTS="--with gui --without rpp" rpm

I can't seem to change the prefix this way though, so what I do here is open torque.spec and add this line:

%define _prefix /opt/torque-2.5.8

Which gets wiped out if I reconfigure.

At this point if I run the make RPMOPTS... line above it gives me a configure that I can work with for my needs:

./configure --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --program-prefix= 
  --prefix=/opt/torque-2.5.8 --exec-prefix=/opt/torque-2.5.8 --bindir=/opt/torque-2.5.8/bin  
  --sbindir=/opt/torque-2.5.8/sbin --sysconfdir=/etc --datadir=/opt/torque-2.5.8/share 
  --includedir=/opt/torque-2.5.8/include --libdir=/opt/torque-2.5.8/lib64 --libexecdir=/opt/torque-2.5.8/libexec 
  --localstatedir=/var --sharedstatedir=/var/lib --mandir=/opt/torque-2.5.8/share/man 
  --infodir=/opt/torque-2.5.8/share/info --includedir=/opt/torque-2.5.8/include/torque 
  --with-default-server=torque.csbsju.edu --with-server-home=/var/spool/torque 
  --with-sendmail=/opt/torque-2.5.8/sbin/sendmail --disable-dependency-tracking --enable-gui 
  --with-tcl --with-rcp=scp --enable-syslog --disable-gcc-warnings --disable-munge-auth --without-pam 
  --disable-drmaa --enable-high-availability --disable-qsub-keep-override --disable-blcr --disable-cpuset 
  --enable-spool --enable-server-xml

Unfortunately with this though now it's picking a nonexistent sendmail so I added -with-sendmail=/usr/sbin/sendmail to configure the sendmail path but it still uses /opt/torque-2.5.8/sbin/sendmail so I have to add a symlink here after installing the rpms...


Can this be simplified at all so it works like it says it should from the INSTALL doc please:

  TORQUE has built-in support for making RPMs. After running
  ./configure with all desired options, 'make rpm' should create a
  set of binary RPMs that match your configuration.

I take "match your configuration" to mean that it'll keep all my original ./configure options.

Thanks!

Josh


More information about the torqueusers mailing list