1 |
commit: 8928da1acfffdc887ba79d34b1088fe21406e0d7 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 30 09:10:31 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 30 10:48:12 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8928da1a |
7 |
|
8 |
x11-misc/xbatt: fix build with clang16 |
9 |
|
10 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
11 |
|
12 |
x11-misc/xbatt/files/xbatt-1.2.1-clang16.patch | 8 ++++++++ |
13 |
x11-misc/xbatt/xbatt-1.3_rc1-r1.ebuild | 1 + |
14 |
2 files changed, 9 insertions(+) |
15 |
|
16 |
diff --git a/x11-misc/xbatt/files/xbatt-1.2.1-clang16.patch b/x11-misc/xbatt/files/xbatt-1.2.1-clang16.patch |
17 |
new file mode 100644 |
18 |
index 000000000000..9a7c03157738 |
19 |
--- /dev/null |
20 |
+++ b/x11-misc/xbatt/files/xbatt-1.2.1-clang16.patch |
21 |
@@ -0,0 +1,8 @@ |
22 |
+https://bugs.gentoo.org/870412 |
23 |
+--- a/xbatt.c |
24 |
++++ b/xbatt.c |
25 |
+@@ -223,3 +223,3 @@ |
26 |
+ |
27 |
+-main( |
28 |
++int main( |
29 |
+ int argc, |
30 |
|
31 |
diff --git a/x11-misc/xbatt/xbatt-1.3_rc1-r1.ebuild b/x11-misc/xbatt/xbatt-1.3_rc1-r1.ebuild |
32 |
index 1c3072e729f7..460d865a6a04 100644 |
33 |
--- a/x11-misc/xbatt/xbatt-1.3_rc1-r1.ebuild |
34 |
+++ b/x11-misc/xbatt/xbatt-1.3_rc1-r1.ebuild |
35 |
@@ -32,6 +32,7 @@ BDEPEND=" |
36 |
|
37 |
PATCHES=( |
38 |
"${FILESDIR}"/${PN}-1.2.1-implicits.patch |
39 |
+ "${FILESDIR}"/${PN}-1.2.1-clang16.patch |
40 |
) |
41 |
|
42 |
src_configure() { |