slurm-spank-x11: add backward compatibility patch

This commit is contained in:
Markus Kowalewski
2026-06-04 14:47:50 +02:00
parent dba6c890cb
commit 99602dbb5e
2 changed files with 19 additions and 1 deletions
@@ -0,0 +1,15 @@
diff --git a/slurm-spank-x11-plug.c b/slurm-spank-x11-plug.c
index bef6c14..feaf041 100644
--- a/slurm-spank-x11-plug.c
+++ b/slurm-spank-x11-plug.c
@@ -36,6 +36,10 @@
#include <stdint.h>
+#ifndef SLURM_BACKWARD_COMPAT
+#define SLURM_BACKWARD_COMPAT 1
+#endif
+
#include <slurm/slurm.h>
#include <slurm/spank.h>
+4 -1
View File
@@ -15,7 +15,10 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "1dmsr7whxcxwnlvl1x4s3bqr5cr6q5ssb28vqi67w5hj4sshisry";
};
patches = [ ./hostlist.patch ];
patches = [
./hostlist.patch
./backward-compat.patch
];
# Required for build with gcc-14
env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";