On 06/22/2017 06:39 PM, Michael Jennings wrote:

On Thursday, 22 June 2017, at 04:19:04 (-0600),
Loris Bennett wrote:

   rpmbuild --rebuild --with=slurm --without=torque pdsh-2.26-4.el6.src.rpm

Remove the equals signs.  I have no problems building pdsh 2.29 via:

   rpmbuild --rebuild --with slurm --without torque pdsh-2.29-1.el7.src.rpm

for EL5, EL6, and EL7.

You're right! On CentOS 6.9 with rpm-build-4.8.0-55.el6.x86_64 you apparently need to remove the "=" signs as you say. Then rpmbuild also works for me as documented in https://wiki.fysik.dtu.dk/niflheim/SLURM#pdsh-parallel-distributed-shell.

The requirement of removing "=" must be a bug since "rpmbuild --help" says:

  --with=<option>               enable configure <option> for build
  --without=<option>            disable configure <option> for build

Unfortunately, PDSH 2.26 has an error related to pdsh-mod-slurm, so rpmbuild bombs out with:

Processing files: pdsh-mod-slurm-2.26-4.el6.x86_64
error: File not found by glob: /root/rpmbuild/BUILDROOT/pdsh-2.26-4.el6.x86_64/usr/lib64/pdsh/slurm.*

The PDSH homepage has apparently moved recently to https://github.com/grondo/pdsh and now offers version pdsh-2.32 (2017-06-22). However, I'm currently unable to build an RPM from this version.

Michael: From where can one download pdsh-2.29-1.el7.src.rpm? I can only find version 2.31 at https://dl.fedoraproject.org/pub/epel/7/SRPMS/p/pdsh-2.31-1.el7.src.rpm, and this version won't build on EL6.

Thanks,
Ole

Reply via email to