diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-08-11 19:15:43 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-08-15 08:20:06 -0700 |
commit | 66fd2a9e041e0ec94dd46a14e0a479b1ade67886 (patch) | |
tree | e2fc6eb4e05df49db49990c320881a6ddbe56ce8 /meta-oe/recipes-support/udisks | |
parent | 547288ad6a7542932ecf73e45503fde8fe745fed (diff) | |
download | meta-openembedded-66fd2a9e041e0ec94dd46a14e0a479b1ade67886.tar.gz |
udisks: Fix build with glibc 2.28+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/udisks')
-rw-r--r-- | meta-oe/recipes-support/udisks/udisks/0001-include-sys-sysmacros.h.patch | 77 | ||||
-rw-r--r-- | meta-oe/recipes-support/udisks/udisks_1.0.5.bb | 14 |
2 files changed, 84 insertions, 7 deletions
diff --git a/meta-oe/recipes-support/udisks/udisks/0001-include-sys-sysmacros.h.patch b/meta-oe/recipes-support/udisks/udisks/0001-include-sys-sysmacros.h.patch new file mode 100644 index 000000000..f140793c5 --- /dev/null +++ b/meta-oe/recipes-support/udisks/udisks/0001-include-sys-sysmacros.h.patch | |||
@@ -0,0 +1,77 @@ | |||
1 | From 64f051963d6cdeebd19f9e7f0a7e584a1f7acc60 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 11 Aug 2018 19:12:57 -0700 | ||
4 | Subject: [PATCH] include sys/sysmacros.h | ||
5 | |||
6 | fixes build with glibc 2.28+ | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | src/daemon.c | 1 + | ||
12 | src/device.c | 1 + | ||
13 | src/mount-monitor.c | 1 + | ||
14 | tools/udisks.c | 1 + | ||
15 | tools/umount-udisks.c | 1 + | ||
16 | 5 files changed, 5 insertions(+) | ||
17 | |||
18 | diff --git a/src/daemon.c b/src/daemon.c | ||
19 | index 14e952f..2c61cfb 100644 | ||
20 | --- a/src/daemon.c | ||
21 | +++ b/src/daemon.c | ||
22 | @@ -39,6 +39,7 @@ | ||
23 | #include <errno.h> | ||
24 | #include <string.h> | ||
25 | #include <sys/types.h> | ||
26 | +#include <sys/sysmacros.h> | ||
27 | #include <sys/stat.h> | ||
28 | #include <sys/time.h> | ||
29 | #include <sys/resource.h> | ||
30 | diff --git a/src/device.c b/src/device.c | ||
31 | index d73f9d6..5911d78 100644 | ||
32 | --- a/src/device.c | ||
33 | +++ b/src/device.c | ||
34 | @@ -29,6 +29,7 @@ | ||
35 | #include <errno.h> | ||
36 | #include <string.h> | ||
37 | #include <sys/types.h> | ||
38 | +#include <sys/sysmacros.h> | ||
39 | #include <sys/wait.h> | ||
40 | #include <sys/stat.h> | ||
41 | #include <sys/time.h> | ||
42 | diff --git a/src/mount-monitor.c b/src/mount-monitor.c | ||
43 | index 573a69c..ccf3365 100644 | ||
44 | --- a/src/mount-monitor.c | ||
45 | +++ b/src/mount-monitor.c | ||
46 | @@ -28,6 +28,7 @@ | ||
47 | #include <errno.h> | ||
48 | #include <string.h> | ||
49 | #include <sys/types.h> | ||
50 | +#include <sys/sysmacros.h> | ||
51 | #include <sys/stat.h> | ||
52 | #include <mntent.h> | ||
53 | |||
54 | diff --git a/tools/udisks.c b/tools/udisks.c | ||
55 | index d30159b..f24a30a 100644 | ||
56 | --- a/tools/udisks.c | ||
57 | +++ b/tools/udisks.c | ||
58 | @@ -29,6 +29,7 @@ | ||
59 | #include <errno.h> | ||
60 | #include <string.h> | ||
61 | #include <sys/types.h> | ||
62 | +#include <sys/sysmacros.h> | ||
63 | #include <sys/stat.h> | ||
64 | #include <sys/wait.h> | ||
65 | #include <fcntl.h> | ||
66 | diff --git a/tools/umount-udisks.c b/tools/umount-udisks.c | ||
67 | index 2813fe0..5cf6b4d 100644 | ||
68 | --- a/tools/umount-udisks.c | ||
69 | +++ b/tools/umount-udisks.c | ||
70 | @@ -29,6 +29,7 @@ | ||
71 | #include <errno.h> | ||
72 | #include <string.h> | ||
73 | #include <sys/types.h> | ||
74 | +#include <sys/sysmacros.h> | ||
75 | #include <sys/stat.h> | ||
76 | #include <fcntl.h> | ||
77 | #include <pwd.h> | ||
diff --git a/meta-oe/recipes-support/udisks/udisks_1.0.5.bb b/meta-oe/recipes-support/udisks/udisks_1.0.5.bb index e33266001..7cd999221 100644 --- a/meta-oe/recipes-support/udisks/udisks_1.0.5.bb +++ b/meta-oe/recipes-support/udisks/udisks_1.0.5.bb | |||
@@ -11,13 +11,13 @@ DEPENDS += "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ | |||
11 | dbus-glib-native \ | 11 | dbus-glib-native \ |
12 | " | 12 | " |
13 | 13 | ||
14 | SRC_URI = " \ | 14 | SRC_URI = "http://hal.freedesktop.org/releases/${BPN}-${PV}.tar.gz;name=${BPN} \ |
15 | http://hal.freedesktop.org/releases/${BPN}-${PV}.tar.gz;name=${BPN} \ | 15 | file://optional-depends.patch \ |
16 | file://optional-depends.patch \ | 16 | file://0001-fix-build-with-newer-glibc-versions.patch \ |
17 | file://0001-fix-build-with-newer-glibc-versions.patch \ | 17 | file://udisks-1.0.5-fix-service-file.patch \ |
18 | file://udisks-1.0.5-fix-service-file.patch \ | 18 | file://0001-Make-udev-rules-directory-configurable.patch \ |
19 | file://0001-Make-udev-rules-directory-configurable.patch \ | 19 | file://0001-include-sys-sysmacros.h.patch \ |
20 | " | 20 | " |
21 | 21 | ||
22 | SRC_URI[udisks.md5sum] = "70d48dcfe523a74cd7c7fbbc2847fcdd" | 22 | SRC_URI[udisks.md5sum] = "70d48dcfe523a74cd7c7fbbc2847fcdd" |
23 | SRC_URI[udisks.sha256sum] = "f2ec82eb0ea7e01dc299b5b29b3c18cdf861236ec43dcff66b3552b4b31c6f71" | 23 | SRC_URI[udisks.sha256sum] = "f2ec82eb0ea7e01dc299b5b29b3c18cdf861236ec43dcff66b3552b4b31c6f71" |