pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Patches for NetBSD
Module Name: pkgsrc-wip
Committed By: Jason Bacon <bacon4000%gmail.com@localhost>
Pushed By: outpaddling
Date: Sun May 15 10:02:47 2016 -0500
Changeset: 52fadc6c372b61fa3aef90eb162981e3c2e6fe6f
Added Files:
slurm-devel/patches/patch-src_common_callerid.c
slurm-devel/patches/patch-src_common_gres.c
slurm-devel/patches/patch-src_plugins_burst__buffer_common_burst__buffer__common.c
slurm-devel/patches/patch-src_plugins_power_common_power__common.c
Log Message:
Patches for NetBSD
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=52fadc6c372b61fa3aef90eb162981e3c2e6fe6f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
slurm-devel/patches/patch-src_common_callerid.c | 18 +++++++++++++++
slurm-devel/patches/patch-src_common_gres.c | 27 ++++++++++++++++++++++
...ns_burst__buffer_common_burst__buffer__common.c | 14 +++++++++++
.../patch-src_plugins_power_common_power__common.c | 14 +++++++++++
4 files changed, 73 insertions(+)
diffs:
diff --git a/slurm-devel/patches/patch-src_common_callerid.c b/slurm-devel/patches/patch-src_common_callerid.c
new file mode 100644
index 0000000..9a311dc
--- /dev/null
+++ b/slurm-devel/patches/patch-src_common_callerid.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+# Macros only provided for kernel in in6.h
+--- src/common/callerid.c.orig 2016-05-03 22:41:59.000000000 +0000
++++ src/common/callerid.c
+@@ -61,6 +61,12 @@
+ #define s6_addr32 __u6_addr.__u6_addr32
+ #endif
+
++#ifdef __NetBSD__
++#define s6_addr8 __u6_addr.__u6_addr8
++#define s6_addr16 __u6_addr.__u6_addr16
++#define s6_addr32 __u6_addr.__u6_addr32
++#endif
++
+ #if HAVE_DIRENT_H
+ # include <dirent.h>
+ #endif
diff --git a/slurm-devel/patches/patch-src_common_gres.c b/slurm-devel/patches/patch-src_common_gres.c
new file mode 100644
index 0000000..d30eb68
--- /dev/null
+++ b/slurm-devel/patches/patch-src_common_gres.c
@@ -0,0 +1,27 @@
+$NetBSD$
+
+# Linux compatibility
+--- src/common/gres.c.orig 2016-05-03 22:41:59.000000000 +0000
++++ src/common/gres.c
+@@ -79,6 +79,21 @@ typedef cpuset_t cpu_set_t;
+ #include <sys/stat.h>
+ #include <math.h>
+
++#ifdef __NetBSD__
++#define CPU_ZERO(p) cpuset_zero((p))
++#define CPU_ISSET(i,c) cpuset_isset((i),(c))
++#define sched_getaffinity sched_getaffinity_np
++#define SCHED_GETAFFINITY_THREE_ARGS
++
++// From /usr/src/common/lib/libc/sys/cpuset.c
++struct _cpuset {
++ uint32_t bits[0];
++};
++
++// Must come after #include <sched.h>
++typedef cpuset_t cpu_set_t;
++#endif
++
+ #include "slurm/slurm.h"
+ #include "slurm/slurm_errno.h"
+ #include "src/common/bitstring.h"
diff --git a/slurm-devel/patches/patch-src_plugins_burst__buffer_common_burst__buffer__common.c b/slurm-devel/patches/patch-src_plugins_burst__buffer_common_burst__buffer__common.c
new file mode 100644
index 0000000..5f11717
--- /dev/null
+++ b/slurm-devel/patches/patch-src_plugins_burst__buffer_common_burst__buffer__common.c
@@ -0,0 +1,14 @@
+$NetBSD$
+
+# Linux compat
+--- src/plugins/burst_buffer/common/burst_buffer_common.c.orig 2016-05-14 18:55:22.000000000 +0000
++++ src/plugins/burst_buffer/common/burst_buffer_common.c
+@@ -52,7 +52,7 @@
+ #include <sys/types.h>
+ #include <unistd.h>
+
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ #define POLLRDHUP POLLHUP
+ #include <signal.h>
+ #endif
diff --git a/slurm-devel/patches/patch-src_plugins_power_common_power__common.c b/slurm-devel/patches/patch-src_plugins_power_common_power__common.c
new file mode 100644
index 0000000..d7a205c
--- /dev/null
+++ b/slurm-devel/patches/patch-src_plugins_power_common_power__common.c
@@ -0,0 +1,14 @@
+$NetBSD$
+
+# Linux compat
+--- ./src/plugins/power/common/power_common.c.orig 2016-05-03 22:35:12.000000000 +0000
++++ ./src/plugins/power/common/power_common.c
+@@ -50,7 +50,7 @@
+ #include <sys/types.h>
+ #include <unistd.h>
+
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ #define POLLRDHUP POLLHUP
+ #include <signal.h>
+ #endif
Home |
Main Index |
Thread Index |
Old Index