summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-11-13 16:44:00 +0000
committerSteve Sakoman <steve@sakoman.com>2023-12-02 16:36:56 -1000
commitf46bb8ad10b667a2b7db644c70c468246f7ee71a (patch)
treebdbf6e3144be9caeac7715d5b70f990c7339d68e
parentf007ad78dd1cbc607a086fc216804757f1935bbb (diff)
downloadpoky-f46bb8ad10b667a2b7db644c70c468246f7ee71a.tar.gz
vim: Improve locale handling
When making checkouts from git, the timestamps can vary and occasionally two files can end up with the same stamp. This triggers make to regenerate ru.cp1251.po from ru.po for example. If it isn't regenerated, the output isn't quite the same leading to reproducibility issues (CP1251 vs cp1251). Since we added all locales to buildtools tarball now, we can drop the locale restrictions too. We need to generate a native binary for the sjis conversion tool so also tweak that. (From OE-Core rev: b2e62fb4d52b019728a4920553fa24f4626b881a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 042c1a501b1dae5ddb31307b461be02c3591c589) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-support/vim/vim.inc14
1 files changed, 4 insertions, 10 deletions
diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc
index 58025828f2..38212a1fa6 100644
--- a/meta/recipes-support/vim/vim.inc
+++ b/meta/recipes-support/vim/vim.inc
@@ -40,22 +40,16 @@ do_configure () {
40 cd src 40 cd src
41 rm -f auto/* 41 rm -f auto/*
42 touch auto/config.mk 42 touch auto/config.mk
43 # git timestamps aren't reliable and we want to consistently regenerate these generated files
44 rm -f po/cs.cp1250.po po/ja.euc-jp.po po/ja.sjis.po po/ko.po po/pl.UTF-8.po po/pl.cp1250.po po/ru.cp1251.po po/sk.cp1250.po po/uk.cp1251.po po/zh_CN.po po/zh_CN.cp936.po po/zh_TW.po
43 aclocal 45 aclocal
44 autoconf 46 autoconf
45 cd .. 47 cd ..
46 oe_runconf 48 oe_runconf
47 touch src/auto/configure 49 touch src/auto/configure
48 touch src/auto/config.mk src/auto/config.h 50 touch src/auto/config.mk src/auto/config.h
49} 51 # need a native tool, not a target one
50 52 ${BUILD_CC} src/po/sjiscorr.c -o src/po/sjiscorr
51do_compile() {
52 # We do not support fully / correctly the following locales. Attempting
53 # to use these with msgfmt in order to update the ".desktop" files exposes
54 # this problem and leads to the compile failing.
55 for LOCALE in cs fr ko pl sk zh_CN zh_TW;do
56 echo -n > src/po/${LOCALE}.po
57 done
58 autotools_do_compile
59} 53}
60 54
61PACKAGECONFIG ??= "\ 55PACKAGECONFIG ??= "\