diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2019-01-31 21:55:14 -0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-02-04 22:09:31 -0800 |
commit | 6ef9657068492d4644079c88f2adee9c3cac9543 (patch) | |
tree | 08d71743c61c51ebf465c05bf27e87f6b4bac6a1 | |
parent | afe79a501d881887d053d55c5c4700ea0e502c02 (diff) | |
download | meta-openembedded-6ef9657068492d4644079c88f2adee9c3cac9543.tar.gz |
vim: improve reproducibility
Clear all_cflags, all_lflags, compiled_user
and compiled_sys to avoid introducing build
info to improve reproducibility as below:
WARNING: vim-8.1.0347-r0 do_package_qa: QA Issue: File /work/core2-64-wrs-linux/vim/8.1.0347-r0/packages-split/vim/usr/bin/vim.vim in package contained reference to tmpdir [buildpaths]
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/vim/files/0001-src-Makefile-improve-reproducibility.patch | 46 | ||||
-rw-r--r-- | meta-oe/recipes-support/vim/vim_8.1.0347.bb | 1 |
2 files changed, 47 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/vim/files/0001-src-Makefile-improve-reproducibility.patch b/meta-oe/recipes-support/vim/files/0001-src-Makefile-improve-reproducibility.patch new file mode 100644 index 000000000..63a7b78f1 --- /dev/null +++ b/meta-oe/recipes-support/vim/files/0001-src-Makefile-improve-reproducibility.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From 133ab27cdb17ca20ef6b0304cf30621d2bcbe757 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mingli Yu <mingli.yu@windriver.com> | ||
3 | Date: Thu, 31 Jan 2019 21:32:26 -0800 | ||
4 | Subject: [PATCH] src/Makefile: improve reproducibility | ||
5 | |||
6 | Clear all_cflags, all_lflags, compiled_user | ||
7 | and compiled_sys to avoid introducing build | ||
8 | info to improve reproducibility as below: | ||
9 | |||
10 | WARNING: vim-8.1.0347-r0 do_package_qa: QA Issue: File /work/core2-64-wrs-linux/vim/8.1.0347-r0/packages-split/vim/usr/bin/vim.vim in package contained reference to tmpdir [buildpaths] | ||
11 | |||
12 | Upstream-Status: Inappropriate [oe specific] | ||
13 | |||
14 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
15 | --- | ||
16 | src/Makefile | 14 ++++---------- | ||
17 | 1 file changed, 4 insertions(+), 10 deletions(-) | ||
18 | |||
19 | diff --git a/src/Makefile b/src/Makefile | ||
20 | index f2fafa4dc..7148d4bd9 100644 | ||
21 | --- a/src/Makefile | ||
22 | +++ b/src/Makefile | ||
23 | @@ -2845,16 +2845,10 @@ auto/pathdef.c: Makefile auto/config.mk | ||
24 | -@echo '#include "vim.h"' >> $@ | ||
25 | -@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' | $(QUOTESED) >> $@ | ||
26 | -@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' | $(QUOTESED) >> $@ | ||
27 | - -@echo 'char_u *all_cflags = (char_u *)"$(CC) -c -I$(srcdir) $(ALL_CFLAGS)";' | $(QUOTESED) >> $@ | ||
28 | - -@echo 'char_u *all_lflags = (char_u *)"$(CC) $(ALL_LIB_DIRS) $(LDFLAGS) -o $(VIMTARGET) $(ALL_LIBS) ";' | $(QUOTESED) >> $@ | ||
29 | - -@echo 'char_u *compiled_user = (char_u *)"' | tr -d $(NL) >> $@ | ||
30 | - -@if test -n "$(COMPILEDBY)"; then \ | ||
31 | - echo "$(COMPILEDBY)" | tr -d $(NL) >> $@; \ | ||
32 | - else ((logname) 2>/dev/null || whoami) | tr -d $(NL) >> $@; fi | ||
33 | - -@echo '";' >> $@ | ||
34 | - -@echo 'char_u *compiled_sys = (char_u *)"' | tr -d $(NL) >> $@ | ||
35 | - -@if test -z "$(COMPILEDBY)"; then hostname | tr -d $(NL) >> $@; fi | ||
36 | - -@echo '";' >> $@ | ||
37 | + -@echo 'char_u *all_cflags = (char_u *)"";' | $(QUOTESED) >> $@ | ||
38 | + -@echo 'char_u *all_lflags = (char_u *)"";' | $(QUOTESED) >> $@ | ||
39 | + -@echo 'char_u *compiled_user = (char_u *)"";' >> $@ | ||
40 | + -@echo 'char_u *compiled_sys = (char_u *)"";' >> $@ | ||
41 | -@sh $(srcdir)/pathdef.sh | ||
42 | |||
43 | GUI_GTK_RES_INPUTS = \ | ||
44 | -- | ||
45 | 2.17.1 | ||
46 | |||
diff --git a/meta-oe/recipes-support/vim/vim_8.1.0347.bb b/meta-oe/recipes-support/vim/vim_8.1.0347.bb index 46d229e03..4de4d8e38 100644 --- a/meta-oe/recipes-support/vim/vim_8.1.0347.bb +++ b/meta-oe/recipes-support/vim/vim_8.1.0347.bb | |||
@@ -11,6 +11,7 @@ LIC_FILES_CHKSUM = "file://../runtime/doc/uganda.txt;endline=287;md5=f1f82b42360 | |||
11 | SRC_URI = "git://github.com/vim/vim.git \ | 11 | SRC_URI = "git://github.com/vim/vim.git \ |
12 | file://disable_acl_header_check.patch;patchdir=.. \ | 12 | file://disable_acl_header_check.patch;patchdir=.. \ |
13 | file://vim-add-knob-whether-elf.h-are-checked.patch;patchdir=.. \ | 13 | file://vim-add-knob-whether-elf.h-are-checked.patch;patchdir=.. \ |
14 | file://0001-src-Makefile-improve-reproducibility.patch;patchdir=.. \ | ||
14 | " | 15 | " |
15 | SRCREV = "f1c118be93184e8e57e3e80b1b3383f464ed649e" | 16 | SRCREV = "f1c118be93184e8e57e3e80b1b3383f464ed649e" |
16 | 17 | ||