summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-07-24 10:38:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-22 14:29:48 +0100
commit5373e681cf22990ab780e4bce8f94138b6a3b551 (patch)
tree579ae96e2608db4d4fb51cad6b22f1fdb1cc5733
parent98dd6e4cac39cde42080814da2a5669760af25ff (diff)
downloadpoky-5373e681cf22990ab780e4bce8f94138b6a3b551.tar.gz
vim: Upgrade 9.0.0021 -> 9.0.0063
Pulls in several CVE fixes. Added a patch to avoid timer_create cross compile issue (and submitted upstream). Also submit the race fix upstream. We disable timer_create in the native case since some systems have it and some don't so this makes us consistent. Change from master commit: we also disable timer_create in the target case since the function isn't available in our glibc. (From OE-Core rev: f99677f79449032a3b0ea79d704fdccbd5be68b7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit d0c1de084c7ce030d47a428e4bbfbc4ce2996057) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-support/vim/files/crosscompile.patch51
-rw-r--r--meta/recipes-support/vim/files/racefix.patch12
-rw-r--r--meta/recipes-support/vim/vim.inc10
3 files changed, 67 insertions, 6 deletions
diff --git a/meta/recipes-support/vim/files/crosscompile.patch b/meta/recipes-support/vim/files/crosscompile.patch
new file mode 100644
index 0000000000..583d3fc7b0
--- /dev/null
+++ b/meta/recipes-support/vim/files/crosscompile.patch
@@ -0,0 +1,51 @@
1configure.ac: Fix create_timer solaris test for cross compiling
2
3A runtime test was added for create_timer however this meant cross compiling
4would no longer work. Allow a cache value to be specified to allow cross
5compiling again.
6
7Signed-off-by: Richard Purdie richard.purdie@linuxfoundation.org
8
9Upstream-Status: Submitted [https://github.com/vim/vim/pull/10777]
10
11Index: git/src/configure.ac
12===================================================================
13--- git.orig/src/configure.ac
14+++ git/src/configure.ac
15@@ -3814,7 +3814,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
16 dnl Check for timer_create. It probably requires the 'rt' library.
17 dnl Run the program to find out if timer_create(CLOCK_MONOTONIC) actually
18 dnl works, on Solaris timer_create() exists but fails at runtime.
19-AC_MSG_CHECKING([for timer_create])
20+AC_CACHE_CHECK([for timer_create], [vim_cv_timer_create],
21 save_LIBS="$LIBS"
22 LIBS="$LIBS -lrt"
23 AC_RUN_IFELSE([AC_LANG_PROGRAM([
24@@ -3831,7 +3831,7 @@ static void set_flag(union sigval sv) {}
25 if (timer_create(CLOCK_MONOTONIC, &action, &timer_id) < 0)
26 exit(1); // cannot create a monotonic timer
27 ])],
28- AC_MSG_RESULT(yes; with -lrt); AC_DEFINE(HAVE_TIMER_CREATE),
29+ AC_MSG_NOTICE(timer_create with -lrt); vim_cv_timer_create=yes,
30 LIBS="$save_LIBS"
31 AC_RUN_IFELSE([AC_LANG_PROGRAM([
32 #include<signal.h>
33@@ -3847,8 +3847,16 @@ static void set_flag(union sigval sv) {}
34 if (timer_create(CLOCK_MONOTONIC, &action, &timer_id) < 0)
35 exit(1); // cannot create a monotonic timer
36 ])],
37- AC_MSG_RESULT(yes); AC_DEFINE(HAVE_TIMER_CREATE),
38- AC_MSG_RESULT(no)))
39+ vim_cv_timer_create=yes,
40+ vim_cv_timer_create=no),
41+ AC_MSG_ERROR(cross-compiling: please set 'vim_cv_timer_create')
42+ )
43+)
44+
45+if test "x$vim_cv_timer_create" = "xyes" ; then
46+ AC_DEFINE(HAVE_TIMER_CREATE)
47+fi
48+
49
50 AC_CACHE_CHECK([whether stat() ignores a trailing slash], [vim_cv_stat_ignores_slash],
51 [
diff --git a/meta/recipes-support/vim/files/racefix.patch b/meta/recipes-support/vim/files/racefix.patch
index 1cb8fb442f..34bd37d650 100644
--- a/meta/recipes-support/vim/files/racefix.patch
+++ b/meta/recipes-support/vim/files/racefix.patch
@@ -1,9 +1,13 @@
1po/Makefile: Avoid race over LINGUAS file
2
1The creation of the LINGUAS file is duplicated for each desktop file 3The creation of the LINGUAS file is duplicated for each desktop file
2which can lead the commands to race against each other. Rework 4which can lead the commands to race against each other. One target might
3the makefile to avoid this as the expense of leaving the file on disk. 5remove it before another has been able to use it. Rework the makefile to
6avoid this as the expense of leaving the file on disk.
7
8Signed-off-by: Richard Purdie richard.purdie@linuxfoundation.org
4 9
5Upstream-Status: Pending 10Upstream-Status: Submitted [https://github.com/vim/vim/pull/10776]
6RP 2021/2/15
7 11
8Index: git/src/po/Makefile 12Index: git/src/po/Makefile
9=================================================================== 13===================================================================
diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc
index 1893759ae9..ed9219d8c1 100644
--- a/meta/recipes-support/vim/vim.inc
+++ b/meta/recipes-support/vim/vim.inc
@@ -19,10 +19,11 @@ SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https \
19 file://0001-src-Makefile-improve-reproducibility.patch \ 19 file://0001-src-Makefile-improve-reproducibility.patch \
20 file://no-path-adjust.patch \ 20 file://no-path-adjust.patch \
21 file://racefix.patch \ 21 file://racefix.patch \
22 file://crosscompile.patch \
22 " 23 "
23 24
24PV .= ".0021" 25PV .= ".0063"
25SRCREV = "5e59ea54c0c37c2f84770f068d95280069828774" 26SRCREV = "d61efa50f8f5b9d9dcbc136705cc33874f0fdcb3"
26 27
27# Remove when 8.3 is out 28# Remove when 8.3 is out
28UPSTREAM_VERSION_UNKNOWN = "1" 29UPSTREAM_VERSION_UNKNOWN = "1"
@@ -94,6 +95,11 @@ EXTRA_OECONF = " \
94 STRIP=/bin/true \ 95 STRIP=/bin/true \
95" 96"
96 97
98# Some host distros don't have it, disable consistently
99# also disable on dunfell target builds
100EXTRA_OECONF_append_class-native = " vim_cv_timer_create=no"
101EXTRA_OECONF_append_class-target = " vim_cv_timer_create=no"
102
97do_install() { 103do_install() {
98 autotools_do_install 104 autotools_do_install
99 105