diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-07-29 13:11:49 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-02 11:30:00 +0100 |
commit | 4fa54657650757af10e794c802a22db656e0194b (patch) | |
tree | 85ec28b8be27cde7620eaca6901345a1e0031725 /meta/recipes-extended | |
parent | a7a8e995625ce3b0854adab8b95293e2440ca5f1 (diff) | |
download | poky-4fa54657650757af10e794c802a22db656e0194b.tar.gz |
hdparm: Fix build with glibc 2.36
(From OE-Core rev: 799074e1912147b94cf876a9652cbbd9c5e35ad2)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/hdparm/hdparm/0001-hdparm-Remove-unused-linux-fs.h-header.patch | 32 | ||||
-rw-r--r-- | meta/recipes-extended/hdparm/hdparm_9.64.bb | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-extended/hdparm/hdparm/0001-hdparm-Remove-unused-linux-fs.h-header.patch b/meta/recipes-extended/hdparm/hdparm/0001-hdparm-Remove-unused-linux-fs.h-header.patch new file mode 100644 index 0000000000..dd88743d1e --- /dev/null +++ b/meta/recipes-extended/hdparm/hdparm/0001-hdparm-Remove-unused-linux-fs.h-header.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From c8fc52968f9e97d29ccf6deb348ec02627d74235 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Jul 2022 13:00:40 -0700 | ||
4 | Subject: [PATCH] hdparm: Remove unused linux/fs.h header | ||
5 | |||
6 | this helps fixing builds with glibc 2.36 where mount.h conflits now with | ||
7 | kernel mount.h which is included indirectly by linux/fs.h see [1] for | ||
8 | details | ||
9 | |||
10 | [1] https://sourceware.org/glibc/wiki/Release/2.36 | ||
11 | |||
12 | Upstream-Status: Submitted [https://sourceforge.net/p/hdparm/patches/52/] | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | hdparm.c | 1 - | ||
16 | 1 file changed, 1 deletion(-) | ||
17 | |||
18 | diff --git a/hdparm.c b/hdparm.c | ||
19 | index fa21e2f..901bdd8 100644 | ||
20 | --- a/hdparm.c | ||
21 | +++ b/hdparm.c | ||
22 | @@ -25,7 +25,6 @@ | ||
23 | #include <sys/mman.h> | ||
24 | #include <sys/user.h> | ||
25 | #include <linux/types.h> | ||
26 | -#include <linux/fs.h> | ||
27 | #include <linux/major.h> | ||
28 | #include <endian.h> | ||
29 | #include <asm/byteorder.h> | ||
30 | -- | ||
31 | 2.37.1 | ||
32 | |||
diff --git a/meta/recipes-extended/hdparm/hdparm_9.64.bb b/meta/recipes-extended/hdparm/hdparm_9.64.bb index 558dd53f8f..eeb63a27e5 100644 --- a/meta/recipes-extended/hdparm/hdparm_9.64.bb +++ b/meta/recipes-extended/hdparm/hdparm_9.64.bb | |||
@@ -24,6 +24,7 @@ RDEPENDS:wiper = "bash gawk coreutils" | |||
24 | 24 | ||
25 | SRC_URI = "${SOURCEFORGE_MIRROR}/hdparm/${BP}.tar.gz \ | 25 | SRC_URI = "${SOURCEFORGE_MIRROR}/hdparm/${BP}.tar.gz \ |
26 | file://wiper.sh-fix-stat-path.patch \ | 26 | file://wiper.sh-fix-stat-path.patch \ |
27 | file://0001-hdparm-Remove-unused-linux-fs.h-header.patch \ | ||
27 | " | 28 | " |
28 | 29 | ||
29 | SRC_URI[sha256sum] = "315b956951c3fea027287de204381534217c0bd0f37b4935877fe2db0cab859a" | 30 | SRC_URI[sha256sum] = "315b956951c3fea027287de204381534217c0bd0f37b4935877fe2db0cab859a" |