diff options
Diffstat (limited to 'meta/recipes-support/vim')
-rw-r--r-- | meta/recipes-support/vim/files/no-path-adjust.patch | 2 | ||||
-rw-r--r-- | meta/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch | 39 | ||||
-rw-r--r-- | meta/recipes-support/vim/vim.inc | 8 |
3 files changed, 3 insertions, 46 deletions
diff --git a/meta/recipes-support/vim/files/no-path-adjust.patch b/meta/recipes-support/vim/files/no-path-adjust.patch index 908459a95e..a92b1e7cdc 100644 --- a/meta/recipes-support/vim/files/no-path-adjust.patch +++ b/meta/recipes-support/vim/files/no-path-adjust.patch | |||
@@ -6,7 +6,7 @@ Subject: [PATCH] vim: do not adjust script pathnames | |||
6 | When cross-compiling, we do not want to reference the host versions of | 6 | When cross-compiling, we do not want to reference the host versions of |
7 | things like perl and awk. | 7 | things like perl and awk. |
8 | 8 | ||
9 | Upstream-Status: Pending | 9 | Upstream-Status: Inappropriate [specific to cross compilation and sysroots] |
10 | 10 | ||
11 | Signed-off-by: Joe Slater <joe.slater@windriver.com> | 11 | Signed-off-by: Joe Slater <joe.slater@windriver.com> |
12 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | 12 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> |
diff --git a/meta/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch b/meta/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch deleted file mode 100644 index 5284ba45b6..0000000000 --- a/meta/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | From 38de4bccdb8a861ffdd447f12fdab19d6d852c02 Mon Sep 17 00:00:00 2001 | ||
2 | From: Chong Lu <Chong.Lu@windriver.com> | ||
3 | Date: Tue, 26 Jun 2018 17:34:15 +0800 | ||
4 | Subject: [PATCH] vim: add knob whether elf.h are checked | ||
5 | |||
6 | Previously, it still was checked when there was no elf library in sysroots directory. | ||
7 | Add knob to decide whether elf.h are checked or not. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Chong Lu <Chong.Lu@windriver.com> | ||
12 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
13 | --- | ||
14 | src/configure.ac | 7 +++++++ | ||
15 | 1 file changed, 7 insertions(+) | ||
16 | |||
17 | Index: git/src/configure.ac | ||
18 | =================================================================== | ||
19 | --- git.orig/src/configure.ac | ||
20 | +++ git/src/configure.ac | ||
21 | @@ -3264,11 +3264,18 @@ AC_TRY_COMPILE([#include <stdio.h>], [in | ||
22 | AC_MSG_RESULT(no)) | ||
23 | |||
24 | dnl Checks for header files. | ||
25 | +AC_MSG_CHECKING(whether or not to look for elf.h) | ||
26 | +AC_ARG_ENABLE(elf-check, | ||
27 | + [ --enable-elf-check If elfutils, check for elf.h [default=no]], | ||
28 | + , enable_elf_check="no") | ||
29 | +AC_MSG_RESULT($enable_elf_check) | ||
30 | +if test "x$enable_elf_check" != "xno"; then | ||
31 | AC_CHECK_HEADER(elf.h, HAS_ELF=1) | ||
32 | dnl AC_CHECK_HEADER(dwarf.h, SVR4=1) | ||
33 | if test "$HAS_ELF" = 1; then | ||
34 | AC_CHECK_LIB(elf, main) | ||
35 | fi | ||
36 | +fi | ||
37 | |||
38 | AC_HEADER_DIRENT | ||
39 | |||
diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc index 071deed338..278a5baeb2 100644 --- a/meta/recipes-support/vim/vim.inc +++ b/meta/recipes-support/vim/vim.inc | |||
@@ -14,21 +14,18 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=d1a651ab770b45d41c0f8cb5a8ca930e" | |||
14 | 14 | ||
15 | SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https \ | 15 | SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https \ |
16 | file://disable_acl_header_check.patch \ | 16 | file://disable_acl_header_check.patch \ |
17 | file://vim-add-knob-whether-elf.h-are-checked.patch \ | ||
18 | file://0001-src-Makefile-improve-reproducibility.patch \ | 17 | file://0001-src-Makefile-improve-reproducibility.patch \ |
19 | file://no-path-adjust.patch \ | 18 | file://no-path-adjust.patch \ |
20 | " | 19 | " |
21 | 20 | ||
22 | PV .= ".0114" | 21 | PV .= ".1198" |
23 | SRCREV = "fcaed6a70faf73bff3e5405ada556d726024f866" | 22 | SRCREV = "f209dcd3defb95bae21b2740910e6aa7bb940531" |
24 | 23 | ||
25 | # Do not consider .z in x.y.z, as that is updated with every commit | 24 | # Do not consider .z in x.y.z, as that is updated with every commit |
26 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+)\.0" | 25 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+)\.0" |
27 | # Ignore that the upstream version .z in x.y.z is always newer | 26 | # Ignore that the upstream version .z in x.y.z is always newer |
28 | UPSTREAM_VERSION_UNKNOWN = "1" | 27 | UPSTREAM_VERSION_UNKNOWN = "1" |
29 | 28 | ||
30 | S = "${WORKDIR}/git" | ||
31 | |||
32 | VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" | 29 | VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" |
33 | 30 | ||
34 | inherit autotools-brokensep update-alternatives mime-xdg pkgconfig | 31 | inherit autotools-brokensep update-alternatives mime-xdg pkgconfig |
@@ -128,7 +125,6 @@ FILES:${PN}-data = "${datadir}/${BPN}" | |||
128 | # We do not want to complain if perl or gawk are not on the target. | 125 | # We do not want to complain if perl or gawk are not on the target. |
129 | # | 126 | # |
130 | FILES:${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools" | 127 | FILES:${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools" |
131 | INSANE_SKIP:${PN}-tools = "file-rdeps" | ||
132 | 128 | ||
133 | FILES:${PN}-common = " \ | 129 | FILES:${PN}-common = " \ |
134 | ${datadir}/${BPN}/${VIMDIR}/*.vim \ | 130 | ${datadir}/${BPN}/${VIMDIR}/*.vim \ |