summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-08-19 16:02:36 -0700
committerKhem Raj <raj.khem@gmail.com>2018-08-19 16:09:28 -0700
commitdc7d910b756f1f180c5b9c90d927a80ba44b4b9c (patch)
tree86688b9299198f384f829bab5a01c07ced66fe6b /meta-networking
parent8cec59341a845eb9776a54a5c34e6777f8a332aa (diff)
downloadmeta-openembedded-dc7d910b756f1f180c5b9c90d927a80ba44b4b9c.tar.gz
dlm: Fix build with glibc 2.28+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-extended/dlm/dlm/0001-Include-sys-sysmacros.h-for-major-minor-macros-in-gl.patch41
-rw-r--r--meta-networking/recipes-extended/dlm/dlm_4.0.7.bb3
2 files changed, 43 insertions, 1 deletions
diff --git a/meta-networking/recipes-extended/dlm/dlm/0001-Include-sys-sysmacros.h-for-major-minor-macros-in-gl.patch b/meta-networking/recipes-extended/dlm/dlm/0001-Include-sys-sysmacros.h-for-major-minor-macros-in-gl.patch
new file mode 100644
index 000000000..6f9a0a45a
--- /dev/null
+++ b/meta-networking/recipes-extended/dlm/dlm/0001-Include-sys-sysmacros.h-for-major-minor-macros-in-gl.patch
@@ -0,0 +1,41 @@
1From a55ab8a07770296bf6a622df14f2f0445be16327 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 19 Aug 2018 15:58:49 -0700
4Subject: [PATCH] Include sys/sysmacros.h for major/minor macros in glibc 2.25+
5
6sys/sysmacros.h was included though sys/types.h until 2.28
7glibc release removed it therefore it must be included
8explicitly now.
9
10Upstream-Status: Pending
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 dlm_controld/action.c | 2 ++
14 libdlm/libdlm.c | 1 +
15 2 files changed, 3 insertions(+)
16
17diff --git a/dlm_controld/action.c b/dlm_controld/action.c
18index 84637f1..2b8ad6c 100644
19--- a/dlm_controld/action.c
20+++ b/dlm_controld/action.c
21@@ -8,6 +8,8 @@
22
23 #include "dlm_daemon.h"
24
25+#include <sys/sysmacros.h>
26+
27 #include <corosync/corotypes.h>
28 #include <corosync/cmap.h>
29
30diff --git a/libdlm/libdlm.c b/libdlm/libdlm.c
31index a9e6195..499eb6a 100644
32--- a/libdlm/libdlm.c
33+++ b/libdlm/libdlm.c
34@@ -14,6 +14,7 @@
35 #include <sys/ioctl.h>
36 #include <sys/param.h>
37 #include <sys/stat.h>
38+#include <sys/sysmacros.h>
39 #include <stdint.h>
40 #include <stdlib.h>
41 #include <inttypes.h>
diff --git a/meta-networking/recipes-extended/dlm/dlm_4.0.7.bb b/meta-networking/recipes-extended/dlm/dlm_4.0.7.bb
index 18843a61f..027864a1a 100644
--- a/meta-networking/recipes-extended/dlm/dlm_4.0.7.bb
+++ b/meta-networking/recipes-extended/dlm/dlm_4.0.7.bb
@@ -9,7 +9,8 @@ SRC_URI = "https://releases.pagure.org/dlm/${BP}.tar.gz \
9 file://respect-ldflags-also-from-bin_ldflags.patch \ 9 file://respect-ldflags-also-from-bin_ldflags.patch \
10 file://0001-dlm-fix-compile-error-since-xml2-config-should-not-b.patch \ 10 file://0001-dlm-fix-compile-error-since-xml2-config-should-not-b.patch \
11 file://0001-dlm-fix-package-qa-error.patch \ 11 file://0001-dlm-fix-package-qa-error.patch \
12" 12 file://0001-Include-sys-sysmacros.h-for-major-minor-macros-in-gl.patch \
13 "
13 14
14SRC_URI[md5sum] = "aa604a10d5ac2d3414eb89ec6984cd12" 15SRC_URI[md5sum] = "aa604a10d5ac2d3414eb89ec6984cd12"
15SRC_URI[sha256sum] = "639ddfc82369272a68d56816689736c00b8f1b6b2869a6b66b7dbf6dad86469a" 16SRC_URI[sha256sum] = "639ddfc82369272a68d56816689736c00b8f1b6b2869a6b66b7dbf6dad86469a"