diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-26 11:17:38 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-01 16:27:29 +0100 |
| commit | 6a0d24ba1c7d3f3ea27f62817b03693ed9cbfea1 (patch) | |
| tree | 5099a8c69dd40499e17f7836b501f208e2c4515c /meta/recipes-support/vim/files/crosscompile.patch | |
| parent | 1630dbb40bbf68d5713913e5a1ccf9acbf3de7bf (diff) | |
| download | poky-6a0d24ba1c7d3f3ea27f62817b03693ed9cbfea1.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.
(From OE-Core rev: 8b42e405fc630537398116a1429a9bc7cb2152ab)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d0c1de084c7ce030d47a428e4bbfbc4ce2996057)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/vim/files/crosscompile.patch')
| -rw-r--r-- | meta/recipes-support/vim/files/crosscompile.patch | 51 |
1 files changed, 51 insertions, 0 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 @@ | |||
| 1 | configure.ac: Fix create_timer solaris test for cross compiling | ||
| 2 | |||
| 3 | A runtime test was added for create_timer however this meant cross compiling | ||
| 4 | would no longer work. Allow a cache value to be specified to allow cross | ||
| 5 | compiling again. | ||
| 6 | |||
| 7 | Signed-off-by: Richard Purdie richard.purdie@linuxfoundation.org | ||
| 8 | |||
| 9 | Upstream-Status: Submitted [https://github.com/vim/vim/pull/10777] | ||
| 10 | |||
| 11 | Index: 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 | [ | ||
