diff options
author | Sam James <sam@gentoo.org> | 2022-11-04 03:24:57 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-11-04 03:25:08 +0000 |
commit | 4b5495f5fc56b94cea4d63a01c4de0cb589bce1b (patch) | |
tree | e27b5af726ccd03256b0d2ef266b42c2b2a75115 /app-editors | |
parent | app-editors/vim-core: fix configure w/ clang 16 (diff) | |
download | gentoo-4b5495f5fc56b94cea4d63a01c4de0cb589bce1b.tar.gz gentoo-4b5495f5fc56b94cea4d63a01c4de0cb589bce1b.tar.bz2 gentoo-4b5495f5fc56b94cea4d63a01c4de0cb589bce1b.zip |
app-editors/gvim: fix configure w/ clang 16
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-editors')
-rw-r--r-- | app-editors/gvim/files/vim-0.0.0828-configure-clang16.patch | 28 | ||||
-rw-r--r-- | app-editors/gvim/gvim-9.0.0828-r1.ebuild (renamed from app-editors/gvim/gvim-9.0.0828.ebuild) | 4 |
2 files changed, 32 insertions, 0 deletions
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 new file mode 100644 index 000000000000..e202a9dd3caa --- /dev/null +++ b/app-editors/gvim/files/vim-0.0.0828-configure-clang16.patch @@ -0,0 +1,28 @@ +https://github.com/vim/vim/pull/11496 + +From 360b569f86b851c37e32b7cfaec079823188ff27 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Fri, 4 Nov 2022 03:18:23 +0000 +Subject: [PATCH] configure.ac: Fix -Wimplicit-int + +Clang 16 makes -Wimplicit-int an error by default. Fixes errors like: +``` +error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int] +``` + +We already use proper declarations with every other test anyway, so +let's be consistent. + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/src/configure.ac ++++ b/src/configure.ac +@@ -3654,7 +3654,7 @@ dnl check if struct sigcontext is defined (used for SGI only) + AC_MSG_CHECKING(for struct sigcontext) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ + #include <signal.h> +-test_sig() ++int test_sig() + { + struct sigcontext *scont; + scont = (struct sigcontext *)0; + diff --git a/app-editors/gvim/gvim-9.0.0828.ebuild b/app-editors/gvim/gvim-9.0.0828-r1.ebuild index 41d899a1c67d..579921d9d43e 100644 --- a/app-editors/gvim/gvim-9.0.0828.ebuild +++ b/app-editors/gvim/gvim-9.0.0828-r1.ebuild @@ -81,6 +81,10 @@ PDEPEND="!minimal? ( app-vim/gentoo-syntax )" # various failures (bugs #630042 and #682320) RESTRICT="test" +PATCHES=( + "${FILESDIR}"/vim-0.0.0828-configure-clang16.patch +) + pkg_setup() { # people with broken alphabets run into trouble. bug 82186. unset LANG LC_ALL |