Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/efivar/, sys-libs/efivar/files/
Date: Wed, 03 Aug 2022 02:25:17
Message-Id: 1659493504.5b70c9171330cdd689f9e736b66b23800f942310.sam@gentoo
1 commit: 5b70c9171330cdd689f9e736b66b23800f942310
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 3 02:24:58 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 3 02:25:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b70c917
7
8 sys-libs/efivar: fix build w/ glibc 2.36
9
10 Closes: https://bugs.gentoo.org/863230
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 sys-libs/efivar/efivar-38.ebuild | 1 +
14 sys-libs/efivar/files/efivar-38-glibc-2.36.patch | 46 ++++++++++++++++++++++++
15 2 files changed, 47 insertions(+)
16
17 diff --git a/sys-libs/efivar/efivar-38.ebuild b/sys-libs/efivar/efivar-38.ebuild
18 index eecc85f7cbca..e17d33968234 100644
19 --- a/sys-libs/efivar/efivar-38.ebuild
20 +++ b/sys-libs/efivar/efivar-38.ebuild
21 @@ -34,6 +34,7 @@ src_prepare() {
22 "${FILESDIR}"/efivar-38-Makefile-dep.patch
23 "${FILESDIR}"/efivar-38-binutils-2.36.patch
24 "${FILESDIR}"/efivar-38-ld-locale.patch
25 + "${FILESDIR}"/efivar-38-glibc-2.36.patch
26 )
27 default
28 }
29
30 diff --git a/sys-libs/efivar/files/efivar-38-glibc-2.36.patch b/sys-libs/efivar/files/efivar-38-glibc-2.36.patch
31 new file mode 100644
32 index 000000000000..0a7e5f2e099c
33 --- /dev/null
34 +++ b/sys-libs/efivar/files/efivar-38-glibc-2.36.patch
35 @@ -0,0 +1,46 @@
36 +https://github.com/rhboot/efivar/commit/bc65d63ebf8fe6ac8a099ff15ca200986dba1565
37 +https://bugs.gentoo.org/863230
38 +
39 +From: Robbie Harwood <rharwood@××××××.com>
40 +Date: Thu, 28 Jul 2022 16:11:24 -0400
41 +Subject: [PATCH] Fix glibc 2.36 build (mount.h conflicts)
42 +
43 +glibc has decided that sys/mount.h and linux/mount.h are no longer
44 +usable at the same time. This broke the build, since linux/fs.h itself
45 +includes linux/mount.h. For now, fix the build by only including
46 +sys/mount.h where we need it.
47 +
48 +See-also: https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E
49 +Resolves: #227
50 +Signed-off-by: Robbie Harwood <rharwood@××××××.com>
51 +--- a/src/gpt.c
52 ++++ b/src/gpt.c
53 +@@ -17,6 +17,7 @@
54 + #include <stdio.h>
55 + #include <stdlib.h>
56 + #include <string.h>
57 ++#include <sys/mount.h>
58 + #include <sys/param.h>
59 + #include <sys/stat.h>
60 + #include <sys/utsname.h>
61 +--- a/src/linux.c
62 ++++ b/src/linux.c
63 +@@ -20,6 +20,7 @@
64 + #include <stdbool.h>
65 + #include <stdio.h>
66 + #include <sys/ioctl.h>
67 ++#include <sys/mount.h>
68 + #include <sys/socket.h>
69 + #include <sys/sysmacros.h>
70 + #include <sys/types.h>
71 +--- a/src/util.h
72 ++++ b/src/util.h
73 +@@ -23,7 +23,6 @@
74 + #include <stdio.h>
75 + #include <string.h>
76 + #include <sys/ioctl.h>
77 +-#include <sys/mount.h>
78 + #include <sys/stat.h>
79 + #include <sys/types.h>
80 + #include <tgmath.h>
81 +