Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/gvim/, app-editors/gvim/files/
Date: Fri, 04 Nov 2022 03:49:15
Message-Id: 1667532308.4b5495f5fc56b94cea4d63a01c4de0cb589bce1b.sam@gentoo
1 commit: 4b5495f5fc56b94cea4d63a01c4de0cb589bce1b
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 4 03:24:57 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 4 03:25:08 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b5495f5
7
8 app-editors/gvim: 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 ...vim-9.0.0828.ebuild => gvim-9.0.0828-r1.ebuild} | 4 ++++
14 2 files changed, 32 insertions(+)
15
16 diff --git a/app-editors/gvim/files/vim-0.0.0828-configure-clang16.patch b/app-editors/gvim/files/vim-0.0.0828-configure-clang16.patch
17 new file mode 100644
18 index 000000000000..e202a9dd3caa
19 --- /dev/null
20 +++ b/app-editors/gvim/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/gvim/gvim-9.0.0828.ebuild b/app-editors/gvim/gvim-9.0.0828-r1.ebuild
52 similarity index 99%
53 rename from app-editors/gvim/gvim-9.0.0828.ebuild
54 rename to app-editors/gvim/gvim-9.0.0828-r1.ebuild
55 index 41d899a1c67d..579921d9d43e 100644
56 --- a/app-editors/gvim/gvim-9.0.0828.ebuild
57 +++ b/app-editors/gvim/gvim-9.0.0828-r1.ebuild
58 @@ -81,6 +81,10 @@ PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
59 # various failures (bugs #630042 and #682320)
60 RESTRICT="test"
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