vim: Improve reproducibility
PATCH 1/1 vim: Improve reproducibility
Override awk and perl path to avoid
using local absolute path.
--- .../0001-vim-Override-perl-and-awk.patch | 34 +++++++++++++++++++ meta/recipes-support/vim/vim.inc | 3 ++ 2 files changed, 37 insertions(+) create mode 100644 meta/recipes-support/vim/files/0001-vim-Override-perl-and-awk.patch
meta/recipes-support/vim/files/0001-vim-Override-perl-and-awk.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 1c1ca2d6306fa4b1391f54325cdd63d56d3b7b78 Mon Sep 17 00:00:00 2001 +From: Oleksiy Obitotskyy <[email protected]> +Date: Mon, 22 Feb 2021 15:21:00 +0200 +Subject: [PATCH] vim: Improve reproducibility + +Override awk and perl path to avoid +using local absolute path. + +Upstream-Status: Pending +Signed-off-by: Oleksiy Obitotskyy <[email protected]> +--- + src/Makefile | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/src/Makefile b/src/Makefile +index b7e2f7eef..c2e7efbde 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -2510,10 +2510,8 @@ installtools: $(TOOLS) $(DESTDIR)$(exec_prefix) $(DEST_BIN) \ + + # replace the path in some tools, but not when cross-compiling + ifneq ($(CROSS_COMPILING),1) +- perlpath=`./which.sh perl` && sed -e "s+/usr/bin/perl+$$perlpath+" $(TOOLSSOURCE)/efm_perl.pl >$(DEST_TOOLS)/efm_perl.pl +- awkpath=`./which.sh nawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \ +- awkpath=`./which.sh gawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \ +- awkpath=`./which.sh awk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; fi; fi ++ perlpath=$(PERL) && sed -e "s+/usr/bin/perl+$$perlpath+" $(TOOLSSOURCE)/efm_perl.pl >$(DEST_TOOLS)/efm_perl.pl ++ awkpath=$(AWK) && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk + endif + -chmod $(SCRIPTMOD) `grep -l "^#!" $(DEST_TOOLS)/*` + +-- +2.25.1 +
meta/recipes-support/vim/vim.inc +3 -0
@@ -13,6 +13,7 @@ SRC_URI = "git://github.com/vim/vim.git \ file://0001-src-Makefile-improve-reproducibility.patch \ file://no-path-adjust.patch \ file://racefix.patch \ + file://0001-vim-Override-perl-and-awk.patch \ " SRCREV = "98056533b96b6b5d8849641de93185dd7bcadc44"
@@ -80,6 +81,8 @@ EXTRA_OECONF = " \ vim_cv_tgetent=non-zero \ vim_cv_toupper_broken=no \ vim_cv_tty_group=world \ + AWK=${bindir}/awk \ + vi_cv_path_perl=${bindir}/perl \ STRIP=/bin/true \ "
Signature · 1 line
2.25.1
Quoted 9 lines · Oleksiy Obitotskyy via lists.openembedded.org
Override awk and perl path to avoid
using local absolute path.Signed-off-by Oleksiy Obitotskyy <[email protected]>---
.../0001-vim-Override-perl-and-awk.patch | 34 +++++++++++++++++++
meta/recipes-support/vim/vim.inc | 3 ++2 files changed, 37 insertions(+)create mode 100644
meta/recipes-support/vim/files/0001-vim-Override-perl-and-awk.patch
Fails in vim-native unfortunately:
https://autobuilder.yoctoproject.org/typhoon/#/builders/115/builds/26/steps/13/logs/stdio
Cheers,
Richard
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 11 lines · Richard Purdie via lists.openembedded.org
Quoted 9 lines · Oleksiy Obitotskyy via lists.openembedded.org
Override awk and perl path to avoid
using local absolute path.Signed-off-by Oleksiy Obitotskyy <[email protected]>---
.../0001-vim-Override-perl-and-awk.patch | 34 +++++++++++++++++++
meta/recipes-support/vim/vim.inc | 3 ++2 files changed, 37 insertions(+)create mode 100644
meta/recipes-support/vim/files/0001-vim-Override-perl-and-awk.patch
Quoted 4 lines
Fails in vim-native unfortunately:
https://autobuilder.yoctoproject.org/typhoon/#/builders/115/builds/26/steps/13/logs/stdio
I'm also a little puzzled as vim reproduces ok in master as far as I know. Which configuration produces the issue? Is this a /usr/bin vs /bin issue?
Cheers,
Richard