summaryrefslogtreecommitdiffstats
path: root/meta
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-01 04:14:19 -1000
commit3afde32bfa5e5c7c4f0ebefb66d316d9677b30bd (patch)
treeb6a871a2757cb4ab3f10aded830a38be4cb35e88 /meta
parent0efbcefe73ba5240e2a5e648987f953020bde47c (diff)
downloadpoky-3afde32bfa5e5c7c4f0ebefb66d316d9677b30bd.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: 14982eabcdb96c2f7ef9e28d6c0daedb53aa96c4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
-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 d8e88af22e..1464c4f4f4 100644
--- a/meta/recipes-support/vim/vim.inc
+++ b/meta/recipes-support/vim/vim.inc
@@ -41,22 +41,16 @@ do_configure () {
41 cd src 41 cd src
42 rm -f auto/* 42 rm -f auto/*
43 touch auto/config.mk 43 touch auto/config.mk
44 # git timestamps aren't reliable and we want to consistently regenerate these generated files
45 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
44 aclocal 46 aclocal
45 autoconf 47 autoconf
46 cd .. 48 cd ..
47 oe_runconf 49 oe_runconf
48 touch src/auto/configure 50 touch src/auto/configure
49 touch src/auto/config.mk src/auto/config.h 51 touch src/auto/config.mk src/auto/config.h
50} 52 # need a native tool, not a target one
51 53 ${BUILD_CC} src/po/sjiscorr.c -o src/po/sjiscorr
52do_compile() {
53 # We do not support fully / correctly the following locales. Attempting
54 # to use these with msgfmt in order to update the ".desktop" files exposes
55 # this problem and leads to the compile failing.
56 for LOCALE in cs fr ko pl sk zh_CN zh_TW;do
57 echo -n > src/po/${LOCALE}.po
58 done
59 autotools_do_compile
60} 54}
61 55
62PACKAGECONFIG ??= "\ 56PACKAGECONFIG ??= "\