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/vim-core/files/, app-editors/vim-core/
Date: Wed, 17 Aug 2022 19:52:34
Message-Id: 1660765944.fcb39bd3c5102ee6e87719d38df2625f36513611.sam@gentoo
1 commit: fcb39bd3c5102ee6e87719d38df2625f36513611
2 Author: Varsha Teratipally <teratipally <AT> google <DOT> com>
3 AuthorDate: Tue Aug 2 23:11:58 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 17 19:52:24 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcb39bd3
7
8 app-editors/vim-core: fix cross-compilation (configure check for timer_create)
9
10 Problem: Configure check for timer_create may give wrong error.
11 Solution: Give a warning instead of an error.
12
13 Closes: https://github.com/gentoo/gentoo/pull/26713
14 Signed-off-by: Varsha Teratipally <teratipally <AT> google.com>
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 ...m-9.0-fix-create-timer-for-cros-compiling.patch | 28 ++++++++++++++++++++++
18 app-editors/vim-core/vim-core-9.0.0099.ebuild | 3 ++-
19 2 files changed, 30 insertions(+), 1 deletion(-)
20
21 diff --git a/app-editors/vim-core/files/vim-9.0-fix-create-timer-for-cros-compiling.patch b/app-editors/vim-core/files/vim-9.0-fix-create-timer-for-cros-compiling.patch
22 new file mode 100644
23 index 000000000000..5247a80754cc
24 --- /dev/null
25 +++ b/app-editors/vim-core/files/vim-9.0-fix-create-timer-for-cros-compiling.patch
26 @@ -0,0 +1,28 @@
27 +From bba26c9ed9d4ddc82afd0343f145dc9e14b91498 Mon Sep 17 00:00:00 2001
28 +From: Varsha Teratipally <teratipally@××××××.com>
29 +Date: Tue, 2 Aug 2022 22:18:29 +0000
30 +Subject: [PATCH] Configure check for timer_create may give wrong error.
31 +Give a warning instead of an error
32 +
33 +Partial solution from github.com/vim/vim/commit/5f6cae8b8a49c435556e32f84d067cd0b4d28e4c
34 +
35 +---
36 + src/configure.ac | 2 +-
37 + 1 file changed, 1 insertion(+), 1 deletion(-)
38 +
39 +diff --git a/src/configure.ac b/src/configure.ac
40 +index e8522ec05..41f41dee3 100644
41 +--- a/src/configure.ac
42 ++++ b/src/configure.ac
43 +@@ -3850,7 +3850,7 @@ static void set_flag(union sigval sv) {}
44 + ])],
45 + vim_cv_timer_create=yes,
46 + vim_cv_timer_create=no),
47 +- AC_MSG_ERROR(cross-compiling: please set 'vim_cv_timer_create')
48 ++ AC_MSG_WARN(cross-compiling: please set 'vim_cv_timer_create')
49 + )]
50 + )
51 +
52 +--
53 +
54 +
55
56 diff --git a/app-editors/vim-core/vim-core-9.0.0099.ebuild b/app-editors/vim-core/vim-core-9.0.0099.ebuild
57 index f01043a5b22c..8bea948c71c7 100644
58 --- a/app-editors/vim-core/vim-core-9.0.0099.ebuild
59 +++ b/app-editors/vim-core/vim-core-9.0.0099.ebuild
60 @@ -42,7 +42,8 @@ pkg_setup() {
61 src_prepare() {
62 if [[ ${PV} != 9999* ]] ; then
63 # Gentoo patches to fix runtime issues, cross-compile errors, etc
64 - eapply "${WORKDIR}/vim-patches-vim-9.0.0049-patches"
65 + eapply "${WORKDIR}"/vim-patches-vim-9.0.0049-patches
66 + eapply "${FILESDIR}"/vim-9.0-fix-create-timer-for-cros-compiling.patch
67 fi
68
69 # Fixup a script to use awk instead of nawk