1 |
commit: 5fa97bca95c5a6ff2448bf1abe7ef96016d2be7a |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 28 03:20:15 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 28 03:20:15 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fa97bca |
7 |
|
8 |
sys-apps/accountsservice: fix configure w/ clang 16 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
....8.ebuild => accountsservice-22.08.8-r1.ebuild} | 1 + |
13 |
...accountsservice-22.08.8-configure-clang16.patch | 33 ++++++++++++++++++++++ |
14 |
2 files changed, 34 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/accountsservice/accountsservice-22.08.8.ebuild b/sys-apps/accountsservice/accountsservice-22.08.8-r1.ebuild |
17 |
similarity index 97% |
18 |
rename from sys-apps/accountsservice/accountsservice-22.08.8.ebuild |
19 |
rename to sys-apps/accountsservice/accountsservice-22.08.8-r1.ebuild |
20 |
index 9f34a6d97636..738666099808 100644 |
21 |
--- a/sys-apps/accountsservice/accountsservice-22.08.8.ebuild |
22 |
+++ b/sys-apps/accountsservice/accountsservice-22.08.8-r1.ebuild |
23 |
@@ -51,6 +51,7 @@ RDEPEND="${CDEPEND} |
24 |
|
25 |
PATCHES=( |
26 |
"${FILESDIR}"/${PN}-22.04.62-gentoo-system-users.patch |
27 |
+ "${FILESDIR}"/${P}-configure-clang16.patch |
28 |
) |
29 |
|
30 |
python_check_deps() { |
31 |
|
32 |
diff --git a/sys-apps/accountsservice/files/accountsservice-22.08.8-configure-clang16.patch b/sys-apps/accountsservice/files/accountsservice-22.08.8-configure-clang16.patch |
33 |
new file mode 100644 |
34 |
index 000000000000..939418752731 |
35 |
--- /dev/null |
36 |
+++ b/sys-apps/accountsservice/files/accountsservice-22.08.8-configure-clang16.patch |
37 |
@@ -0,0 +1,33 @@ |
38 |
+https://gitlab.freedesktop.org/accountsservice/accountsservice/-/commit/453f893e3c38c209ae9dff47bca74ccb33a5bd34 |
39 |
+ |
40 |
+From 453f893e3c38c209ae9dff47bca74ccb33a5bd34 Mon Sep 17 00:00:00 2001 |
41 |
+From: Sam James <sam@g.o> |
42 |
+Date: Tue, 28 Feb 2023 02:31:50 +0000 |
43 |
+Subject: [PATCH] meson.build: fix -Wimplicit-function-declaration in configure |
44 |
+ tests for printf |
45 |
+ |
46 |
+<stdio.h> needs to be included for printf. Newer compilers like Clang 16 make |
47 |
+implicit function declarations an error by default which can cause misleading |
48 |
+or incorrect configure test results. |
49 |
+ |
50 |
+Signed-off-by: Sam James <sam@g.o> |
51 |
+--- a/meson.build |
52 |
++++ b/meson.build |
53 |
+@@ -79,6 +79,7 @@ endforeach |
54 |
+ |
55 |
+ if cc.has_header_symbol('utmpx.h', 'WTMPX_FILENAME', prefix: '#define _GNU_SOURCE') |
56 |
+ code = '''#define _GNU_SOURCE |
57 |
++ #include <stdio.h> |
58 |
+ #include <utmpx.h> |
59 |
+ int main (int argc, char **argv) { |
60 |
+ printf ("%s\n", WTMPX_FILENAME); |
61 |
+@@ -91,6 +92,7 @@ if cc.has_header_symbol('utmpx.h', 'WTMPX_FILENAME', prefix: '#define _GNU_SOURC |
62 |
+ config_h.set('PATH_WTMP', 'WTMPX_FILENAME') |
63 |
+ elif cc.has_header_symbol('paths.h', '_PATH_WTMPX') |
64 |
+ code = '''#include <paths.h> |
65 |
++ #include <stdio.h> |
66 |
+ int main (int argc, char **argv) { |
67 |
+ printf ("%s\n", _PATH_WTMPX); |
68 |
+ return 0; |
69 |
+-- |
70 |
+GitLab |