summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2017-07-09 19:48:16 +0100
committerJustin Lecher <jlec@gentoo.org>2017-07-09 19:48:31 +0100
commite48d15c0567348bce2ea174432a066ddfc4f3de5 (patch)
treee0e51cfa6aa1f0f8d82869a8b2f5ba7ee8d1b120 /sys-cluster/singularity/files/singularity-2.3.1-slurm.patch
parentsys-auth/munge: Version Bump (diff)
downloadgentoo-e48d15c0567348bce2ea174432a066ddfc4f3de5.tar.gz
gentoo-e48d15c0567348bce2ea174432a066ddfc4f3de5.tar.bz2
gentoo-e48d15c0567348bce2ea174432a066ddfc4f3de5.zip
sys-cluster/singularity: Version Bump
Closes: https://github.com/gentoo/gentoo/pull/5005 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=621248 Package-Manager: Portage-2.3.6, Repoman-2.3.2 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'sys-cluster/singularity/files/singularity-2.3.1-slurm.patch')
-rw-r--r--sys-cluster/singularity/files/singularity-2.3.1-slurm.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/sys-cluster/singularity/files/singularity-2.3.1-slurm.patch b/sys-cluster/singularity/files/singularity-2.3.1-slurm.patch
new file mode 100644
index 000000000000..71a8d9972b75
--- /dev/null
+++ b/sys-cluster/singularity/files/singularity-2.3.1-slurm.patch
@@ -0,0 +1,54 @@
+From e858cfaf73eadb4cf4076a754c4836816c908d44 Mon Sep 17 00:00:00 2001
+From: Petr Votava <votava.petr@gene.com>
+Date: Thu, 29 Jun 2017 16:53:48 +0000
+Subject: [PATCH] A patch for slurm plugin build
+
+---
+ src/slurm/Makefile.am | 2 +-
+ src/slurm/singularity.c | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/slurm/Makefile.am b/src/slurm/Makefile.am
+index 860c7667d..152e41450 100644
+--- a/src/slurm/Makefile.am
++++ b/src/slurm/Makefile.am
+@@ -4,7 +4,7 @@ plugindir = $(libdir)/slurm
+ if WITH_SLURM
+ plugin_LTLIBRARIES = singularity_spank.la
+ singularity_spank_la_SOURCES = singularity.c
+-singularity_spank_la_LIBADD = ../lib/libsingularity_internal.la
++singularity_spank_la_LIBADD = ../lib/runtime/libinternal.la
+ singularity_spank_la_LDFLAGS = -module -no-undefined -avoid-version -export-symbols-regex '^slurm_spank_|^plugin_'
+ endif
+
+diff --git a/src/slurm/singularity.c b/src/slurm/singularity.c
+index acddddfd1..3509f4d8e 100644
+--- a/src/slurm/singularity.c
++++ b/src/slurm/singularity.c
+@@ -22,6 +22,7 @@
+
+ #define _GNU_SOURCE 1
+
++#include <stdio.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <sys/types.h>
+@@ -29,9 +30,9 @@
+ #include <string.h>
+
+ #include "config.h"
+-#include "lib/singularity.h"
+ #include "util/util.h"
+ #include "util/file.h"
++#include "util/registry.h"
+
+ #include "slurm/spank.h"
+
+@@ -169,7 +170,6 @@ static int setup_container(spank_t spank)
+ }
+
+
+- char *image;
+ if ( ( image = singularity_registry_get("IMAGE") ) == NULL ) {
+ singularity_message(ERROR, "SINGULARITY_CONTAINER not defined!\n");
+ }