1 |
commit: bd4e049b8809027727fc0f34f6ae30206d40781b |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 4 17:55:05 2022 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 4 17:55:46 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd4e049b |
7 |
|
8 |
sys-fs/btrfs-progs: fix build with glibc-2.36 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/863638 |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
sys-fs/btrfs-progs/btrfs-progs-5.18.1-r1.ebuild | 3 +++ |
14 |
.../files/btrfs-progs-5.18.1-glibc-2.36.patch | 31 ++++++++++++++++++++++ |
15 |
2 files changed, 34 insertions(+) |
16 |
|
17 |
diff --git a/sys-fs/btrfs-progs/btrfs-progs-5.18.1-r1.ebuild b/sys-fs/btrfs-progs/btrfs-progs-5.18.1-r1.ebuild |
18 |
index 76f2afe1fe01..0ba3477e685f 100644 |
19 |
--- a/sys-fs/btrfs-progs/btrfs-progs-5.18.1-r1.ebuild |
20 |
+++ b/sys-fs/btrfs-progs/btrfs-progs-5.18.1-r1.ebuild |
21 |
@@ -87,6 +87,9 @@ pkg_setup() { |
22 |
} |
23 |
|
24 |
src_prepare() { |
25 |
+ local PATCHES=( |
26 |
+ "${FILESDIR}/btrfs-progs-5.18.1-glibc-2.36.patch" |
27 |
+ ) |
28 |
default |
29 |
if [[ ${PV} == 9999 ]]; then |
30 |
AT_M4DIR="m4" eautoreconf |
31 |
|
32 |
diff --git a/sys-fs/btrfs-progs/files/btrfs-progs-5.18.1-glibc-2.36.patch b/sys-fs/btrfs-progs/files/btrfs-progs-5.18.1-glibc-2.36.patch |
33 |
new file mode 100644 |
34 |
index 000000000000..52671ea6c357 |
35 |
--- /dev/null |
36 |
+++ b/sys-fs/btrfs-progs/files/btrfs-progs-5.18.1-glibc-2.36.patch |
37 |
@@ -0,0 +1,31 @@ |
38 |
+https://github.com/kdave/btrfs-progs/commit/46eb32a019834b0a49ae9744db1a921aaa6a3d63 |
39 |
+ |
40 |
+From 46eb32a019834b0a49ae9744db1a921aaa6a3d63 Mon Sep 17 00:00:00 2001 |
41 |
+From: Khem Raj <raj.khem@×××××.com> |
42 |
+Date: Mon, 25 Jul 2022 11:58:35 -0700 |
43 |
+Subject: [PATCH] btrfs-progs: use linux mount.h instead of sys/mount.h |
44 |
+ |
45 |
+This file includes linux/fs.h which includes linux/mount.h and with |
46 |
+glibc 2.36 linux/mount.h and glibc mount.h are not compatible [1] |
47 |
+therefore try to avoid including both headers |
48 |
+ |
49 |
+[1] https://sourceware.org/glibc/wiki/Release/2.36 |
50 |
+ |
51 |
+Signed-off-by: Khem Raj <raj.khem@×××××.com> |
52 |
+Signed-off-by: David Sterba <dsterba@××××.com> |
53 |
+--- |
54 |
+ common/device-utils.c | 1 - |
55 |
+ 1 file changed, 1 deletion(-) |
56 |
+ |
57 |
+diff --git a/common/device-utils.c b/common/device-utils.c |
58 |
+index 617b67462..25a4fb8c4 100644 |
59 |
+--- a/common/device-utils.c |
60 |
++++ b/common/device-utils.c |
61 |
+@@ -15,7 +15,6 @@ |
62 |
+ */ |
63 |
+ |
64 |
+ #include <sys/ioctl.h> |
65 |
+-#include <sys/mount.h> |
66 |
+ #include <sys/statfs.h> |
67 |
+ #include <sys/types.h> |
68 |
+ #include <stdio.h> |