[torqueusers] building torque+munge rpm

Michael Jennings mej at lbl.gov
Tue Sep 13 19:58:26 MDT 2011

On Tuesday, 13 September 2011, at 11:31:59 (+0200),
Arnau Bria wrote:

> I'm building torque 2.5.7 with munge. I use the command:
> rpmbuild -ta --define 'prefix /usr'  --define
> 'torque_home /var/spool/pbs' --define 'acflags --enable-munge-auth
> --enable-maxdefault --with-readline --with-tcp-retry-limit=2
> --with-rcp=scp --with-default-server=pbs03.pic.es ' torque-2.5.7.tar.gz
> but, when I see the configure that it does I see a strange
> --disable-munge-auth on it:
> + ./configure --host=x86_64-redhat-linux-gnu --build=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux --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=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --includedir=/usr/include/torque --with-default-server=localhost --with-server-home=/var/spool/pbs --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 --enable-munge-auth --enable-maxdefault --with-readline --with-tcp-retry-limit=2 --with-rcp=scp --with-default-server=pbs03.pic.es
> I think this is not ok cause later, torque works without munge
> started...
> Is there any problem with that version and munge? or with my command?

Since --enable-munge-auth is specified after --disable-munge-auth, it
should still be enabled for the build (unless something else went
wrong), but your syntax is incorrect.

Support for "munge" is one of the conditional build options in the
spec file.  To turn it on, you need to use "--with munge" on your
rpmbuild command line.  Don't just add it to acflags.  Same goes for
all the other conditionals.  The conditionals can be found in the spec

$ grep '^%bcond_' torque.spec
%bcond_with    blcr
%bcond_with    cpuset
%bcond_with    drmaa
%bcond_with    gui
%bcond_with    munge
%bcond_with    pam
%bcond_without ha
%bcond_without scp
%bcond_without spool
%bcond_without syslog

Any of those needs to be specified via --with or --without.  If you
want one that's specified as %bcond_with, use --with.  If you don't
want one that's specified as %bcond_without, use --without.

So your command should have been:

rpmbuild -ta --with munge --with scp \
    --define 'torque_home /var/spool/pbs' \
    --define 'torque_server pbs03.pic.es' \
    --define 'acflags --enable-maxdefault --with-readline --with-tcp-retry-limit=2'

The default prefix for RPM is already /usr unless you've changed it on
your system (which is highly ill-advised), so you shouldn't need to
specify that.  And RPM uses %{_prefix}, not %{prefix}, so defining
"prefix" as you did had no effect anyway.  :-)

As for whether or not munge support was actually compiled in, you'd
need to check the configure output.  Since munge support does not
generate any additional files or packages, there is nothing to break
the build if munge support fails.  You'll have to capture the output
of rpmbuild and examine it to see what problems, if any, arose with
munge support.


Michael Jennings <mej at lbl.gov>
Linux Systems and Cluster Engineer
High-Performance Computing Services
Bldg 50B-3209E      W: 510-495-2687
MS 050C-3396        F: 510-486-8615

More information about the torqueusers mailing list