diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-08-06 15:57:06 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-08 10:51:59 +0100 |
commit | 41171c6c62931ba99b8236c07216737c03230449 (patch) | |
tree | c46aae05f4b966c814fc75d6ed006c1dae10358c /meta/recipes-extended | |
parent | e803b9567ac5340ec354d4f21e36f17c68aa4805 (diff) | |
download | poky-41171c6c62931ba99b8236c07216737c03230449.tar.gz |
blktool: Fix build with glibc 2.28
(From OE-Core rev: 1c279929b87fda0eb2598e9e9f218dd38cfeb1a1)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/blktool/blktool/blktool-gnulib-makedev.patch | 23 | ||||
-rw-r--r-- | meta/recipes-extended/blktool/blktool_4-7.bb | 1 |
2 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-extended/blktool/blktool/blktool-gnulib-makedev.patch b/meta/recipes-extended/blktool/blktool/blktool-gnulib-makedev.patch new file mode 100644 index 0000000000..6eea608b29 --- /dev/null +++ b/meta/recipes-extended/blktool/blktool/blktool-gnulib-makedev.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | include <sys/sysmacros.h> for major/minor defintions | ||
2 | |||
3 | Fixes | ||
4 | |||
5 | | ../blktool-4.orig/blktool.c: In function 'detect_dev_class': | ||
6 | | ../blktool-4.orig/blktool.c:295:10: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] | ||
7 | | switch (major(st_rdev)) { | ||
8 | | ^~~~~ | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | Index: blktool-4.orig/blktool.c | ||
13 | =================================================================== | ||
14 | --- blktool-4.orig.orig/blktool.c | ||
15 | +++ blktool-4.orig/blktool.c | ||
16 | @@ -27,6 +27,7 @@ | ||
17 | #include <linux/cdrom.h> | ||
18 | #include <linux/major.h> | ||
19 | #include <scsi/scsi.h> | ||
20 | +#include <sys/sysmacros.h> | ||
21 | |||
22 | #include "blktool.h" | ||
23 | |||
diff --git a/meta/recipes-extended/blktool/blktool_4-7.bb b/meta/recipes-extended/blktool/blktool_4-7.bb index 4551c3233e..0e6f7ee6df 100644 --- a/meta/recipes-extended/blktool/blktool_4-7.bb +++ b/meta/recipes-extended/blktool/blktool_4-7.bb | |||
@@ -13,6 +13,7 @@ SRC_URI = "http://snapshot.debian.org/archive/debian/20160728T043443Z/pool/main/ | |||
13 | file://0001-fix-typos-in-manpage.patch \ | 13 | file://0001-fix-typos-in-manpage.patch \ |
14 | file://0002-fix-string-error.patch \ | 14 | file://0002-fix-string-error.patch \ |
15 | file://0003-Fix-3-d-argument-for-BLKROSET-it-must-be-const-int.patch \ | 15 | file://0003-Fix-3-d-argument-for-BLKROSET-it-must-be-const-int.patch \ |
16 | file://blktool-gnulib-makedev.patch \ | ||
16 | " | 17 | " |
17 | 18 | ||
18 | SRC_URI[tarball.md5sum] = "62edc09c9908107e69391c87f4f3fd40" | 19 | SRC_URI[tarball.md5sum] = "62edc09c9908107e69391c87f4f3fd40" |