diff options
author | Ross Burton <ross.burton@intel.com> | 2018-05-10 12:06:19 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-11 07:49:38 +0100 |
commit | 6dee5da9db7721adb02283e118d779ffa567f439 (patch) | |
tree | b6c797c7bf0b39b78a1e7b75eb173633e84f0d1d /meta | |
parent | 5945fffebc5b0f519e2d98b98eebad78026a00c8 (diff) | |
download | poky-6dee5da9db7721adb02283e118d779ffa567f439.tar.gz |
systemd: fix build with util-linux 2.32
(From OE-Core rev: 12b4fc15f6919d7573bea5d913fb805993e8640a)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/systemd/systemd/libmount.patch | 75 | ||||
-rw-r--r-- | meta/recipes-core/systemd/systemd_237.bb | 1 |
2 files changed, 76 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/libmount.patch b/meta/recipes-core/systemd/systemd/libmount.patch new file mode 100644 index 0000000000..b59d5b7d70 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/libmount.patch | |||
@@ -0,0 +1,75 @@ | |||
1 | Upstream-Status: Backport | ||
2 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
3 | |||
4 | From 227b8a762fea1458547be2cdf0e6e4aac0079730 Mon Sep 17 00:00:00 2001 | ||
5 | From: Michael Olbrich <m.olbrich@pengutronix.de> | ||
6 | Date: Mon, 26 Mar 2018 17:34:53 +0200 | ||
7 | Subject: [PATCH] core: don't include libmount.h in a header file (#8580) | ||
8 | |||
9 | linux/fs.h sys/mount.h, libmount.h and missing.h all include MS_* | ||
10 | definitions. | ||
11 | |||
12 | To avoid problems, only one of linux/fs.h, sys/mount.h and libmount.h | ||
13 | should be included. And missing.h must be included last. | ||
14 | |||
15 | Without this, building systemd may fail with: | ||
16 | |||
17 | In file included from [...]/libmount/libmount.h:31:0, | ||
18 | from ../systemd-238/src/core/manager.h:23, | ||
19 | from ../systemd-238/src/core/emergency-action.h:37, | ||
20 | from ../systemd-238/src/core/unit.h:34, | ||
21 | from ../systemd-238/src/core/dbus-timer.h:25, | ||
22 | from ../systemd-238/src/core/timer.c:26: | ||
23 | [...]/sys/mount.h:57:2: error: expected identifier before numeric constant | ||
24 | --- | ||
25 | src/core/dbus-execute.c | 1 + | ||
26 | src/core/manager.h | 3 ++- | ||
27 | src/core/mount.c | 2 ++ | ||
28 | 3 files changed, 5 insertions(+), 1 deletion(-) | ||
29 | |||
30 | diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c | ||
31 | index 7344623ebf6..c342093bca4 100644 | ||
32 | --- a/src/core/dbus-execute.c | ||
33 | +++ b/src/core/dbus-execute.c | ||
34 | @@ -18,6 +18,7 @@ | ||
35 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | ||
36 | ***/ | ||
37 | |||
38 | +#include <sys/mount.h> | ||
39 | #include <sys/prctl.h> | ||
40 | #include <stdio_ext.h> | ||
41 | |||
42 | diff --git a/src/core/manager.h b/src/core/manager.h | ||
43 | index 28c5da225b1..e09e0cdf5e9 100644 | ||
44 | --- a/src/core/manager.h | ||
45 | +++ b/src/core/manager.h | ||
46 | @@ -20,7 +20,6 @@ | ||
47 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | ||
48 | ***/ | ||
49 | |||
50 | -#include <libmount.h> | ||
51 | #include <stdbool.h> | ||
52 | #include <stdio.h> | ||
53 | |||
54 | @@ -34,6 +33,8 @@ | ||
55 | #include "list.h" | ||
56 | #include "ratelimit.h" | ||
57 | |||
58 | +struct libmnt_monitor; | ||
59 | + | ||
60 | /* Enforce upper limit how many names we allow */ | ||
61 | #define MANAGER_MAX_NAMES 131072 /* 128K */ | ||
62 | |||
63 | diff --git a/src/core/mount.c b/src/core/mount.c | ||
64 | index 0e755da5c02..0154ebda5d6 100644 | ||
65 | --- a/src/core/mount.c | ||
66 | +++ b/src/core/mount.c | ||
67 | @@ -23,6 +23,8 @@ | ||
68 | #include <stdio.h> | ||
69 | #include <sys/epoll.h> | ||
70 | |||
71 | +#include <libmount.h> | ||
72 | + | ||
73 | #include "sd-messages.h" | ||
74 | |||
75 | #include "alloc-util.h" | ||
diff --git a/meta/recipes-core/systemd/systemd_237.bb b/meta/recipes-core/systemd/systemd_237.bb index 6f59e6064e..b7c2113255 100644 --- a/meta/recipes-core/systemd/systemd_237.bb +++ b/meta/recipes-core/systemd/systemd_237.bb | |||
@@ -51,6 +51,7 @@ SRC_URI += "file://touchscreen.rules \ | |||
51 | file://0031-fix-missing-ULONG_LONG_MAX-definition-in-case-of-mus.patch \ | 51 | file://0031-fix-missing-ULONG_LONG_MAX-definition-in-case-of-mus.patch \ |
52 | file://0032-memfd.patch \ | 52 | file://0032-memfd.patch \ |
53 | file://0033-basic-macros-rename-noreturn-into-_noreturn_-8456.patch \ | 53 | file://0033-basic-macros-rename-noreturn-into-_noreturn_-8456.patch \ |
54 | file://libmount.patch \ | ||
54 | " | 55 | " |
55 | SRC_URI_append_qemuall = " file://0001-core-device.c-Change-the-default-device-timeout-to-2.patch" | 56 | SRC_URI_append_qemuall = " file://0001-core-device.c-Change-the-default-device-timeout-to-2.patch" |
56 | 57 | ||