1 |
commit: 9f5d3532993ce5e69c1726d6cc077237801f338d |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 4 03:24:18 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 4 03:25:07 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f5d3532 |
7 |
|
8 |
app-editors/vim-core: fix configure w/ clang 16 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
.../files/vim-0.0.0828-configure-clang16.patch | 28 ++++++++++++++++++++++ |
13 |
...9.0.0828.ebuild => vim-core-9.0.0828-r1.ebuild} | 4 ++++ |
14 |
2 files changed, 32 insertions(+) |
15 |
|
16 |
diff --git a/app-editors/vim-core/files/vim-0.0.0828-configure-clang16.patch b/app-editors/vim-core/files/vim-0.0.0828-configure-clang16.patch |
17 |
new file mode 100644 |
18 |
index 000000000000..e202a9dd3caa |
19 |
--- /dev/null |
20 |
+++ b/app-editors/vim-core/files/vim-0.0.0828-configure-clang16.patch |
21 |
@@ -0,0 +1,28 @@ |
22 |
+https://github.com/vim/vim/pull/11496 |
23 |
+ |
24 |
+From 360b569f86b851c37e32b7cfaec079823188ff27 Mon Sep 17 00:00:00 2001 |
25 |
+From: Sam James <sam@g.o> |
26 |
+Date: Fri, 4 Nov 2022 03:18:23 +0000 |
27 |
+Subject: [PATCH] configure.ac: Fix -Wimplicit-int |
28 |
+ |
29 |
+Clang 16 makes -Wimplicit-int an error by default. Fixes errors like: |
30 |
+``` |
31 |
+error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] |
32 |
+``` |
33 |
+ |
34 |
+We already use proper declarations with every other test anyway, so |
35 |
+let's be consistent. |
36 |
+ |
37 |
+Signed-off-by: Sam James <sam@g.o> |
38 |
+--- a/src/configure.ac |
39 |
++++ b/src/configure.ac |
40 |
+@@ -3654,7 +3654,7 @@ dnl check if struct sigcontext is defined (used for SGI only) |
41 |
+ AC_MSG_CHECKING(for struct sigcontext) |
42 |
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ |
43 |
+ #include <signal.h> |
44 |
+-test_sig() |
45 |
++int test_sig() |
46 |
+ { |
47 |
+ struct sigcontext *scont; |
48 |
+ scont = (struct sigcontext *)0; |
49 |
+ |
50 |
|
51 |
diff --git a/app-editors/vim-core/vim-core-9.0.0828.ebuild b/app-editors/vim-core/vim-core-9.0.0828-r1.ebuild |
52 |
similarity index 99% |
53 |
rename from app-editors/vim-core/vim-core-9.0.0828.ebuild |
54 |
rename to app-editors/vim-core/vim-core-9.0.0828-r1.ebuild |
55 |
index 9412ba51653d..e078361724fc 100644 |
56 |
--- a/app-editors/vim-core/vim-core-9.0.0828.ebuild |
57 |
+++ b/app-editors/vim-core/vim-core-9.0.0828-r1.ebuild |
58 |
@@ -30,6 +30,10 @@ IUSE="nls acl minimal" |
59 |
DEPEND=">=sys-libs/ncurses-5.2-r2:0" |
60 |
BDEPEND="sys-devel/autoconf" |
61 |
|
62 |
+PATCHES=( |
63 |
+ "${FILESDIR}"/vim-0.0.0828-configure-clang16.patch |
64 |
+) |
65 |
+ |
66 |
pkg_setup() { |
67 |
# people with broken alphabets run into trouble. bug #82186. |
68 |
unset LANG LC_ALL |