summaryrefslogtreecommitdiffstats
path: root/meta-filesystems
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-08-11 15:12:10 -0700
committerKhem Raj <raj.khem@gmail.com>2018-08-15 08:20:06 -0700
commitf92e153135d7ae5689c2fbf5b440976d6e72c5fc (patch)
treeceaf0a9344bcd5874e0e3f5700592c2bf737290b /meta-filesystems
parentc9e1918542b9466cdd811afcdbfaa049311533da (diff)
downloadmeta-openembedded-f92e153135d7ae5689c2fbf5b440976d6e72c5fc.tar.gz
logfsprogs: Fix build with glibc 2.28
mkfs.c:639: undefined reference to `major' Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-filesystems')
-rw-r--r--meta-filesystems/recipes-filesystems/logfsprogs/logfsprogs/0001-include-sys-sysmacros.h-for-major-minor-definition.patch24
-rw-r--r--meta-filesystems/recipes-filesystems/logfsprogs/logfsprogs_git.bb1
2 files changed, 25 insertions, 0 deletions
diff --git a/meta-filesystems/recipes-filesystems/logfsprogs/logfsprogs/0001-include-sys-sysmacros.h-for-major-minor-definition.patch b/meta-filesystems/recipes-filesystems/logfsprogs/logfsprogs/0001-include-sys-sysmacros.h-for-major-minor-definition.patch
new file mode 100644
index 000000000..86bb0b53a
--- /dev/null
+++ b/meta-filesystems/recipes-filesystems/logfsprogs/logfsprogs/0001-include-sys-sysmacros.h-for-major-minor-definition.patch
@@ -0,0 +1,24 @@
1From 3b02acbb3d5bc93422a6821ce47568633ef4ae5e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 11 Aug 2018 15:09:24 -0700
4Subject: [PATCH] include sys/sysmacros.h for major/minor definition
5
6Upstream-Status: Pending
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 mkfs.c | 1 +
11 1 file changed, 1 insertion(+)
12
13diff --git a/mkfs.c b/mkfs.c
14index e612cbd..b6aa63d 100644
15--- a/mkfs.c
16+++ b/mkfs.c
17@@ -21,6 +21,7 @@
18 #include <sys/ioctl.h>
19 #include <sys/stat.h>
20 #include <sys/types.h>
21+#include <sys/sysmacros.h>
22 #define __USE_UNIX98
23 #include <unistd.h>
24 #include <zlib.h>
diff --git a/meta-filesystems/recipes-filesystems/logfsprogs/logfsprogs_git.bb b/meta-filesystems/recipes-filesystems/logfsprogs/logfsprogs_git.bb
index 1b4d97d76..d9864ac3e 100644
--- a/meta-filesystems/recipes-filesystems/logfsprogs/logfsprogs_git.bb
+++ b/meta-filesystems/recipes-filesystems/logfsprogs/logfsprogs_git.bb
@@ -14,6 +14,7 @@ DEPENDS = "zlib"
14SRC_URI = "git://github.com/prasad-joshi/logfsprogs.git \ 14SRC_URI = "git://github.com/prasad-joshi/logfsprogs.git \
15 file://0001-Add-LDFLAGS-to-linker-cmdline.patch \ 15 file://0001-Add-LDFLAGS-to-linker-cmdline.patch \
16 file://0001-btree-Avoid-conflicts-with-libc-namespace-about-setk.patch \ 16 file://0001-btree-Avoid-conflicts-with-libc-namespace-about-setk.patch \
17 file://0001-include-sys-sysmacros.h-for-major-minor-definition.patch \
17 " 18 "
18SRCREV = "45b72c81ce3c6fa17ca19bafc207ea93e76312f4" 19SRCREV = "45b72c81ce3c6fa17ca19bafc207ea93e76312f4"
19 20