sys-cluster/slurm-2.2.7-r1 in portage has many small issues. I'm uploading a fixed ebuild for 2.2.7 and an updated version to 2.3.0-2. It's also available on github: https://github.com/nbigaouette/ebuilds/tree/master/sys-cluster/slurm or my overlay (nbigaouette) Changes: -files/slurm.confd: Changed "PBS_USE_MUNGE=..." to "SLURM_USE_MUNGE=..." -Added support for "ypbind" use flag. Without it, our diskless cluster cannot start slurm (as slurm would start before ypbind). -3 init scripts: checkconfig was not called in start(), allowing to slurm to fail silently. -We need limits to be propagated. Thus before starting slurmctld, "ulimit -l unlimited" is called. See https://computing.llnl.gov/linux/slurm/faq.html#rlimit and http://www.open-mpi.org/faq/?category=openfabrics#ib-locked-pages -Changed SRC_URI to new location, as package moved from sourceforge to http://www.schedmd.com/#repos -RESTRICT="primaryuri" for the same reason. -inherit versionator to parse the package version: slurm-2.3.0-2.tar.bz2 -Moved folder creation+permissions to own function to prevent duplication/copy-paste problems: create_folders_and_fix_permissions() -Added notes about these path as they should be used in /etc/slurm/slurm.conf. If not, slurm won't work properly. The same ebuild should work with 2.2.7-r2 and 2.3.0-2. Except: -File /etc/cgroup.release_agent moved to /etc/cgroup.release_common.example -File /src/plugins/proctrack/cgroup/xcgroup.h moved to /src/common/xcgroup.h Reproducible: Always
Created attachment 288963 [details] slurm-2.3.0.2.ebuild
Created attachment 288965 [details] slurm-2.2.7-r2.ebuild
Thank you for you work! I incorporated your changes into slurm-2.3.4