summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-08-11 14:53:59 -0700
committerKhem Raj <raj.khem@gmail.com>2018-08-15 08:20:06 -0700
commit00eb88d1ce5c53d02b5a9a70af09f2e714e5234e (patch)
treea64273a99290967c530a58372434be479d9e6000
parentbd0db062df54cfe9fc550db91be2134ddbf763e6 (diff)
downloadmeta-openembedded-00eb88d1ce5c53d02b5a9a70af09f2e714e5234e.tar.gz
eject: Fix build with glibc 2.28+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/eject/eject/0001-eject-Include-sys-sysmacros.h-for-major-minor.patch27
-rw-r--r--meta-oe/recipes-support/eject/eject_2.1.5.bb3
2 files changed, 29 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/eject/eject/0001-eject-Include-sys-sysmacros.h-for-major-minor.patch b/meta-oe/recipes-support/eject/eject/0001-eject-Include-sys-sysmacros.h-for-major-minor.patch
new file mode 100644
index 000000000..055128706
--- /dev/null
+++ b/meta-oe/recipes-support/eject/eject/0001-eject-Include-sys-sysmacros.h-for-major-minor.patch
@@ -0,0 +1,27 @@
1From 433ffb21119a0f39e882dd3fea4742e64aadcc40 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 11 Aug 2018 09:56:40 -0700
4Subject: [PATCH] eject: Include sys/sysmacros.h for major/minor
5
6Fixes
7arm-bec-linux-gnueabi/gcc/arm-bec-linux-gnueabi/8.2.0/ld: eject.o: in function `GetMajorMinor':
8/usr/src/debug/eject/2.1.5-r1/eject-2.1.5/../../../../../../../workspace/sources/eject/eject.c:866: undefined reference to `major'
9
10Upstream-Status: Pending
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 eject.c | 1 +
14 1 file changed, 1 insertion(+)
15
16diff --git a/eject.c b/eject.c
17index 47e09fe..b171218 100644
18--- a/eject.c
19+++ b/eject.c
20@@ -54,6 +54,7 @@
21 #include <sys/wait.h>
22 #include <sys/mtio.h>
23 #include <sys/mount.h>
24+#include <sys/sysmacros.h>
25
26 #if defined(__linux__)
27 #include <linux/version.h>
diff --git a/meta-oe/recipes-support/eject/eject_2.1.5.bb b/meta-oe/recipes-support/eject/eject_2.1.5.bb
index 49a3d74f6..dec2e7ab4 100644
--- a/meta-oe/recipes-support/eject/eject_2.1.5.bb
+++ b/meta-oe/recipes-support/eject/eject_2.1.5.bb
@@ -10,7 +10,8 @@ SRC_URI = "http://sources.openembedded.org/${BP}.tar.gz \
10 file://eject-2.1.1-verbose.patch \ 10 file://eject-2.1.1-verbose.patch \
11 file://eject-2.1.5-spaces.patch \ 11 file://eject-2.1.5-spaces.patch \
12 file://eject-timeout.patch \ 12 file://eject-timeout.patch \
13" 13 file://0001-eject-Include-sys-sysmacros.h-for-major-minor.patch \
14 "
14 15
15SRC_URI[md5sum] = "b96a6d4263122f1711db12701d79f738" 16SRC_URI[md5sum] = "b96a6d4263122f1711db12701d79f738"
16SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e2ffe55" 17SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e2ffe55"