vim: add option to disable NLS support
PATCH 1/1 vim: add option to disable NLS support
- Some distributions with UTF-8 locale have problem when National Language Support is enabled. Add there an option to disable it.
- refresh options based on configure.ac
--- meta/recipes-support/vim/vim.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
meta/recipes-support/vim/vim.inc +5 -3
@@ -54,19 +54,21 @@ do_compile() { autotools_do_compile } -#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny +#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny, selinux, elfutils, nls PACKAGECONFIG ??= "" PACKAGECONFIG += " \ ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '', d)} \ + nls \ " PACKAGECONFIG[gtkgui] = "--enable-gui=gtk3,--enable-gui=no,gtk+3" -PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl," +PACKAGECONFIG[acl] = "enable_acl="yes",--disable-acl,acl," PACKAGECONFIG[x11] = "--with-x,--without-x,xt," PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," -PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux," +PACKAGECONFIG[selinux] = "enable_selinux="yes",--disable-selinux,libselinux," PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils," +PACKAGECONFIG[nls] = "enable_nls="yes",--disable-nls,," EXTRA_OECONF = " \ --disable-gpm \
Signature · 1 line
2.11.0
PATCH v2 1/1 busybox: 1.33.1 -> 1.34.0
- update to next stable version 1.34.0
- refresh defconfig
- remove and refresh already merged patches
---
...inittab_1.33.0.bb => busybox-inittab_1.34.0.bb} | 0
...iles-Use-C-locale-when-calling-sed-on-glo.patch | 28 ------
...-testsuite-check-uudecode-before-using-it.patch | 6 +-
.../busybox/busybox-udhcpc-no_deconfig.patch | 102 +++++----------------
meta/recipes-core/busybox/busybox/defconfig | 12 ++-
.../{busybox_1.33.1.bb => busybox_1.34.0.bb} | 3 +-
6 files changed, 36 insertions(+), 115 deletions(-)
rename meta/recipes-core/busybox/{busybox-inittab_1.33.0.bb => busybox-inittab_1.34.0.bb} (100%)
delete mode 100644 meta/recipes-core/busybox/busybox/0001-gen_build_files-Use-C-locale-when-calling-sed-on-glo.patch
rename meta/recipes-core/busybox/{busybox_1.33.1.bb => busybox_1.34.0.bb} (92%)meta/recipes-core/busybox/busybox-inittab_1.34.0.bb renamed from meta/recipes-core/busybox/busybox-inittab_1.33.0.bb +0 -0
meta/recipes-core/busybox/busybox/0001-gen_build_files-Use-C-locale-when-calling-sed-on-glo.patch deleted +0 -28
@@ -1,28 +0,0 @@ -From bff7f16f7f41de8df67beb03722f235828ef2249 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Mon, 3 May 2021 15:48:19 -0700 -Subject: [PATCH] gen_build_files: Use C locale when calling sed on globbed files - -sort order is different based on chosen locale and also default shell -being bash or dash - -This sets the environment variable LC_ALL to the value C, which will -enforce bytewise sorting, irrespective of the shell - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> ---- - scripts/gen_build_files.sh | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/scripts/gen_build_files.sh -+++ b/scripts/gen_build_files.sh -@@ -4,6 +4,8 @@ - # but users complain that many sed implementations - # are misinterpreting --. - -+export LC_ALL=C -+ - test $# -ge 2 || { echo "Syntax: $0 SRCTREE OBJTREE"; exit 1; } - - # cd to objtree
meta/recipes-core/busybox/busybox/0001-testsuite-check-uudecode-before-using-it.patch +3 -3
@@ -18,13 +18,13 @@ diff --git a/testsuite/tar.tests b/testsuite/tar.tests index d71a349..8c88567 100755 --- a/testsuite/tar.tests +++ b/testsuite/tar.tests -@@ -336,7 +336,7 @@ SKIP= - cd .. || exit 1; rm -rf tar.tempdir 2>/dev/null +@@ -339,7 +339,7 @@ cd .. || exit 1; rm -rf tar.tempdir 2>/d + fi mkdir tar.tempdir && cd tar.tempdir || exit 1 -optional FEATURE_SEAMLESS_BZ2 FEATURE_TAR_AUTODETECT LS +optional FEATURE_SEAMLESS_BZ2 FEATURE_TAR_AUTODETECT LS UUDECODE - testing "Symlink attack: create symlink and then write through it" '\ + testing "tar Symlink attack: create symlink and then write through it" '\ exec 2>&1 uudecode -o input && tar xvf input; echo $? diff --git a/testsuite/unzip.tests b/testsuite/unzip.tests
meta/recipes-core/busybox/busybox/busybox-udhcpc-no_deconfig.patch +23 -79
130 lines not on this page · raw message
meta/recipes-core/busybox/busybox/defconfig +9 -3
@@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Busybox version: 1.33.0 -# Wed Mar 10 13:29:25 2021 +# Busybox version: 1.34.0 +# Wed Aug 23 09:07:25 2021 # CONFIG_HAVE_DOT_CONFIG=y
@@ -207,11 +207,13 @@ CONFIG_CHOWN=y # CONFIG_FEATURE_CHOWN_LONG_OPTIONS is not set CONFIG_CHROOT=y # CONFIG_CKSUM is not set +CONFIG_CRC32=y # CONFIG_COMM is not set CONFIG_CP=y # CONFIG_FEATURE_CP_LONG_OPTIONS is not set # CONFIG_FEATURE_CP_REFLINK is not set CONFIG_CUT=y +CONFIG_FEATURE_CUT_REGEX=y CONFIG_DATE=y # CONFIG_FEATURE_DATE_ISOFMT is not set # CONFIG_FEATURE_DATE_NANO is not set
@@ -316,7 +318,6 @@ CONFIG_TEST2=y CONFIG_FEATURE_TEST_64=y # CONFIG_TIMEOUT is not set CONFIG_TOUCH=y -CONFIG_FEATURE_TOUCH_NODEREF=y CONFIG_FEATURE_TOUCH_SUSV3=y CONFIG_TR=y CONFIG_FEATURE_TR_CLASSES=y
@@ -424,6 +425,7 @@ CONFIG_VI=y CONFIG_FEATURE_VI_MAX_LEN=1024 CONFIG_FEATURE_VI_8BIT=y CONFIG_FEATURE_VI_COLON=y +CONFIG_FEATURE_VI_COLON_EXPAND=y CONFIG_FEATURE_VI_YANKMARK=y CONFIG_FEATURE_VI_SEARCH=y # CONFIG_FEATURE_VI_REGEX_SEARCH is not set
@@ -437,6 +439,7 @@ CONFIG_FEATURE_VI_WIN_RESIZE=y CONFIG_FEATURE_VI_UNDO=y CONFIG_FEATURE_VI_UNDO_QUEUE=y CONFIG_FEATURE_VI_UNDO_QUEUE_MAX=256 +CONFIG_FEATURE_VI_VERBOSE_STATUS=y CONFIG_FEATURE_ALLOW_EXEC=y #
@@ -743,6 +746,7 @@ CONFIG_FEATURE_VOLUMEID_SQUASHFS=y # Miscellaneous Utilities # # CONFIG_ADJTIMEX is not set +CONFIG_ASCII=y # CONFIG_BBCONFIG is not set # CONFIG_FEATURE_COMPRESS_BBCONFIG is not set # CONFIG_BC is not set
@@ -838,6 +842,7 @@ CONFIG_TS=y # CONFIG_UBIRENAME is not set # CONFIG_VOLNAME is not set # CONFIG_WATCHDOG is not set +# CONFIG_FEATURE_WATCHDOG_OPEN_TWICE is not set # # Networking Utilities
@@ -976,6 +981,7 @@ CONFIG_TRACEROUTE=y CONFIG_WGET=y CONFIG_FEATURE_WGET_LONG_OPTIONS=y CONFIG_FEATURE_WGET_STATUSBAR=y +CONFIG_FEATURE_WGET_FTP=y CONFIG_FEATURE_WGET_AUTHENTICATION=y CONFIG_FEATURE_WGET_TIMEOUT=y CONFIG_FEATURE_WGET_HTTPS=y
meta/recipes-core/busybox/busybox_1.34.0.bb renamed from meta/recipes-core/busybox/busybox_1.33.1.bb +1 -2
@@ -47,9 +47,8 @@ SRC_URI = "https://busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://0001-testsuite-use-www.example.org-for-wget-test-cases.patch \ file://0001-du-l-works-fix-to-use-145-instead-of-144.patch \ file://0001-sysctl-ignore-EIO-of-stable_secret-below-proc-sys-ne.patch \ - file://0001-gen_build_files-Use-C-locale-when-calling-sed-on-glo.patch \ file://0001-mktemp-add-tmpdir-option.patch \ " SRC_URI:append:libc-musl = " file://musl.cfg " -SRC_URI[tarball.sha256sum] = "12cec6bd2b16d8a9446dd16130f2b92982f1819f6e1c5f5887b6db03f5660d28" +SRC_URI[tarball.sha256sum] = "ec8d1615edb045b83b81966604759c4d4ac921434ab4011da604f629c06074ce"
Signature · 1 line
2.11.0
Quoted 19 lines · Andrej Valek
- Some distributions with UTF-8 locale have problem when National Language Support is enabled. Add there an option to disable it.
- refresh options based on configure.acSigned-off-by Andrej Valek <[email protected]>--- meta/recipes-support/vim/vim.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)meta/recipes-support/vim/vim.inc +1
-1@@ -54,19 +54,21 @@ do_compile() { autotools_do_compile } -#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny +#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny, selinux, elfutils, nls
meta/recipes-support/vim/vim.inc do_compile() { · line 66
Quoted 10 lines
meta/recipes-support/vim/vim.inc +2
-1PACKAGECONFIG ??= "" PACKAGECONFIG += " \ ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '', d)} \ + nls \ " PACKAGECONFIG[gtkgui] = "--enable-gui=gtk3,--enable-gui=no,gtk+3" -PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl," +PACKAGECONFIG[acl] = "enable_acl="yes",--disable-acl,acl,"
is 'yes' needed to be explicit ? I thought --enable-XYZ meant it implicitly
Quoted 14 lines
meta/recipes-support/vim/vim.inc +2
-1PACKAGECONFIG[x11] = "--with-x,--without-x,xt," PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," -PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux," +PACKAGECONFIG[selinux] = "enable_selinux="yes",--disable-selinux,libselinux," PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils," +PACKAGECONFIG[nls] = "enable_nls="yes",--disable-nls,," EXTRA_OECONF = " \ --disable-gpm \
Hello Khem,
I looked exactly into configure.ac which arguments are expecting for those options. So I think, it has to be mentioned explicitly.
Regards,
Andrej
Quoted 45 lines · Andrej Valek
Quoted 22 lines
- Some distributions with UTF-8 locale have problem when National Language Support is enabled. Add there an option to disable it.
- refresh options based on configure.acSigned-off-by Andrej Valek <[email protected]>--- meta/recipes-support/vim/vim.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)meta/recipes-support/vim/vim.inc +2
-1@@ -54,19 +54,21 @@ do_compile() { autotools_do_compile } -#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny +#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny, selinux, +elfutils, nls PACKAGECONFIG ??= ""meta/recipes-support/vim/vim.inc do_compile() { · line 68
Quoted 10 lines
meta/recipes-support/vim/vim.inc +2
-1PACKAGECONFIG += " \ ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '', d)} \ + nls \ " PACKAGECONFIG[gtkgui] = "--enable-gui=gtk3,--enable-gui=no,gtk+3" -PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl," +PACKAGECONFIG[acl] = "enable_acl="yes",--disable-acl,acl,"is 'yes' needed to be explicit ? I thought --enable-XYZ meant it implicitly
Quoted 9 lines
meta/recipes-support/vim/vim.inc +2
-1PACKAGECONFIG[x11] = "--with-x,--without-x,xt," PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," -PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux," +PACKAGECONFIG[selinux] = "enable_selinux="yes",--disable-selinux,libselinux," PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils," +PACKAGECONFIG[nls] = "enable_nls="yes",--disable-nls,," EXTRA_OECONF = " \ --disable-gpm \
Quoted 4 lines · Andrej Valek
Hello Khem,
I looked exactly into configure.ac which arguments are expecting for those options. So I think, it has to be mentioned explicitly.
Assuming configure.ac is based around AC_ARG_ENABLE / AC_ARG_WITH then an explicit option is not required. A default value of "yes" will be set for --enable-foo / --with-foo and a default value of "no" will be set for --disable-foo / --without-foo.
However, apart from that, you've also dropped the leaving "--" from various --enable-foo options and converted dashes to underscores, all of which looks wrong. How were the changes tested?
Quoted 51 lines
Regards,
AndrejQuoted 45 lines · Andrej Valek
Quoted 22 lines
- Some distributions with UTF-8 locale have problem when National Language Support is enabled. Add there an option to disable it.
- refresh options based on configure.acSigned-off-by Andrej Valek <[email protected]>--- meta/recipes-support/vim/vim.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)meta/recipes-support/vim/vim.inc +2
-1@@ -54,19 +54,21 @@ do_compile() { autotools_do_compile } -#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny +#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny, selinux, +elfutils, nls PACKAGECONFIG ??= ""meta/recipes-support/vim/vim.inc do_compile() { · line 68
Quoted 10 lines
meta/recipes-support/vim/vim.inc +2
-1PACKAGECONFIG += " \ ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '', d)} \ + nls \ " PACKAGECONFIG[gtkgui] = "--enable-gui=gtk3,--enable-gui=no,gtk+3" -PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl," +PACKAGECONFIG[acl] = "enable_acl="yes",--disable-acl,acl,"is 'yes' needed to be explicit ? I thought --enable-XYZ meant it implicitly
Quoted 9 lines
meta/recipes-support/vim/vim.inc +2
-1PACKAGECONFIG[x11] = "--with-x,--without-x,xt," PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," -PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux," +PACKAGECONFIG[selinux] = "enable_selinux="yes",--disable-selinux,libselinux," PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils," +PACKAGECONFIG[nls] = "enable_nls="yes",--disable-nls,," EXTRA_OECONF = " \ --disable-gpm \
Hi all,
Of course, that I tried it and it works.
...
configure.ac:4517: You should run autoupdate.
NOTE: Running ./configure --build=x86_64-linux --host=x86_64-poky-linux ... --disable-static enable_acl=yes --enable-gui=gtk3 enable_nls=yes --disable-selinux --with-features=big --with-x
configure: WARNING: unrecognized options: --disable-silent-rules, --disable-dependency-tracking, --with-libtool-sysroot, --disable-static
configure: loading site script /home/projects/yocto/qemux86-64/layers/build/meta/site/endian-little
configure: loading site script /home/projects/yocto/qemux86-64/layers/build/meta/site/common-linux
...
checking how to run man with a section nr... man
checking --disable-nls argument... no
checking for msgfmt... msgfmt
checking for NLS... gettext() works
checking for bind_textdomain_codeset... yes
...
So does it mean, that I should use the --enable instead anyway?
Andrej
Quoted 62 lines · Andrej Valek
Quoted 4 lines
Hello Khem,
I looked exactly into configure.ac which arguments are expecting for those options. So I think, it has to be mentioned explicitly.
Assuming configure.ac is based around
AC_ARG_ENABLE/AC_ARG_WITHthen an explicit option is not required. A default value of "yes" will be set for --enable-foo / --with-foo and a default value of "no" will be set for --disable-foo / --without-foo.However, apart from that, you've also dropped the leaving "--" from various --enable-foo options and converted dashes to underscores, all of which looks wrong. How were the changes tested?
Quoted 52 lines
Regards,
AndrejQuoted 46 lines · Andrej Valek
Quoted 22 lines
- Some distributions with UTF-8 locale have problem when National Language Support is enabled. Add there an option to disable it.
- refresh options based on configure.acSigned-off-by Andrej Valek <[email protected]>--- meta/recipes-support/vim/vim.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)meta/recipes-support/vim/vim.inc +2
-1@@ -54,19 +54,21 @@ do_compile() { autotools_do_compile } -#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny +#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny, +selinux, elfutils, nls PACKAGECONFIG ??= ""meta/recipes-support/vim/vim.inc do_compile() { · line 68
Quoted 10 lines
meta/recipes-support/vim/vim.inc +2
-1PACKAGECONFIG += " \ ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '', d)} \ + nls \ " PACKAGECONFIG[gtkgui] = "--enable-gui=gtk3,--enable-gui=no,gtk+3" -PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl," +PACKAGECONFIG[acl] = "enable_acl="yes",--disable-acl,acl,"is 'yes' needed to be explicit ? I thought --enable-XYZ meant it implicitly
Quoted 9 lines
meta/recipes-support/vim/vim.inc +2
-1PACKAGECONFIG[x11] = "--with-x,--without-x,xt," PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," -PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux," +PACKAGECONFIG[selinux] = "enable_selinux="yes",--disable-selinux,libselinux," PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils," +PACKAGECONFIG[nls] = "enable_nls="yes",--disable-nls,," EXTRA_OECONF = " \ --disable-gpm \
Hello,
Is there any problem, which should I fix?
I would like to include this feature into dunfell if possible.
Thanks,
Andrej
Quoted 102 lines · On Tue, 2021-08-24 at 06:56 +0000, Valek, Andrej (ADV D EU SK SI-BP1) wrote:
Hi all,
Of course, that I tried it and it works.
...
configure.ac:4517: You should run autoupdate.
NOTE: Running ./configure --build=x86_64-linux --host=x86_64-poky- linux ... --disable-static enable_acl=yes --enable-gui=gtk3 enable_nls=yes --disable-selinux --with-features=big --with-x
configure: WARNING: unrecognized options: --disable-silent-rules, -- disable-dependency-tracking, --with-libtool-sysroot, --disable-static
configure: loading site script/home/projects/yocto/qemux86-64/layers/build/meta/site/endian-little
configure: loading site script/home/projects/yocto/qemux86-64/layers/build/meta/site/common-linux
...
checking how to run man with a section nr... man
checking --disable-nls argument... no
checking for msgfmt... msgfmt
checking for NLS...gettext()works
checking forbind_textdomain_codeset... yes
...So does it mean, that I should use the --enable instead anyway?
Andrej
Quoted 76 lines
Quoted 5 lines · Andrej Valek
Hello Khem,
I looked exactly into configure.ac which arguments are expecting for those options. So I think, it has to be mentioned explicitly.
Assuming configure.ac is based around
AC_ARG_ENABLE/AC_ARG_WITHthen an explicit option is not required. A default value of "yes" will be set for --enable-foo / --with-foo and a default value of "no" will be set for --disable-foo / --without-foo.However, apart from that, you've also dropped the leaving "--" from various --enable-foo options and converted dashes to underscores, all of which looks wrong. How were the changes tested?
Quoted 59 lines
Regards,
AndrejQuoted 53 lines · Andrej Valek
Quoted 33 lines
- Some distributions with UTF-8 locale have problem when National Language
Support is enabled. Add there an option to disable it.
- refresh options based on configure.acSigned-off-by Andrej Valek <[email protected]>---
meta/recipes-support/vim/vim.inc | 8 +++++---1 file changed, 5 insertions(+), 3 deletions(-)meta/recipes-support/vim/vim.inc +0
-0@@ -54,19 +54,21 @@ do_compile() {
autotools_do_compile
}meta/recipes-support/vim/vim.inc +1
-1-#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny +selinux, elfutils, nlsPACKAGECONFIG ??= ""
PACKAGECONFIG += " \
${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui',
'', d)} \
+ nls \
"PACKAGECONFIG[gtkgui] = "--enable-gui=gtk3,--enable- gui=no,gtk+3"
meta/recipes-support/vim/vim.inc do_compile() { · line 66
Quoted 2 lines
meta/recipes-support/vim/vim.inc +1
-1-PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl," +PACKAGECONFIG[acl] = "enable_acl="yes",--disable-acl,acl,"is 'yes' needed to be explicit ? I thought --enable-XYZ meant it
implicitlyQuoted 12 lines
PACKAGECONFIG[x11] = "--with-x,--without-x,xt," PACKAGECONFIG[tiny] = "--with-features=tiny,--with- features=big,,"
-PACKAGECONFIG[selinux] = "--enable-selinux,--disable- selinux,libselinux,"
+PACKAGECONFIG[selinux] = "enable_selinux="yes",--disable- selinux,libselinux,"
PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils," +PACKAGECONFIG[nls] = "enable_nls="yes",--disable-nls,,"
EXTRA_OECONF= " \
--disable-gpm \
Quoted 4 lines · Andrej
Hello,
Is there any problem, which should I fix?
I would like to include this feature into dunfell if possible.
Autotools usually has a very specific option format and this isn't following it. I know others expressed some surprise and I share that. It can happen if the software is doing something unusual so it is possible but I wanted to go and double check this as it looks odd. It may be both formats can be used and if that were the case, I'd much prefer we used the standard format we use everywhere else.
So basically this is held pending me doing some due diligence as it worries me. I am however struggling to do everything needed at the moment.
The other issue is that nls is an option many other recipes have but we've always handled it at the core level in the gettext bbclass. native recipes explictly pass --disable-nls for example.
I also wanted to check if the recipe uses the gextext class (or should?) and if instead we should be exposing the PACKAGECONFIG differently through that class.
Cheers,
Richard
Hello Richard,
If it isn't a big deal, I can use the "--enable" variant. If we keep -- enable-nls like a default, we will brake nothing I guess. (It's enabled by default anyway). So I'm adding there only a feature to disable it with PACKAGEOPTION.
Regards,
Andrej
Quoted 37 lines · Richard Purdie
Quoted 4 lines · Andrej
Hello,
Is there any problem, which should I fix?
I would like to include this feature into dunfell if possible.Autotools usually has a very specific option format and this isn't following it.
I know others expressed some surprise and I share that. It can happen if the
software is doing something unusual so it is possible but I wanted to go and
double check this as it looks odd. It may be both formats can be used and if
that were the case, I'd much prefer we used the standard format we use
everywhere else.So basically this is held pending me doing some due diligence as it worries me.
I am however struggling to do everything needed at the moment.The other issue is that nls is an option many other recipes have but we've
always handled it at the core level in the gettext bbclass. native recipes
explictly pass --disable-nls for example.I also wanted to check if the recipe uses the gextext class (or should?) and if
instead we should be exposing the PACKAGECONFIG differently through that class.Cheers,
Richard
Quoted 6 lines · Andrej
Hello Richard,
If it isn't a big deal, I can use the "--enable" variant. If we keep -- enable-nls like a default, we will brake nothing I guess. (It's enabled by default anyway). So I'm adding there only a feature to disable it with PACKAGEOPTION.
Yes, lets use --enable please since that is the way the rest of the world/code works.
I'm a bit worried about the nls option since the recipe does have BBCLASSEXTEND for native/nativesdk and we do disable nls for native by default. As you say, the patch probably doesn't change anything but it is a bit of an oddity.
The code does look to be using gettext and there is a gettext-native dependency but the recipe does not use the gettext class. Why? Not sure.
I'll put the patch in for testing if we can use the standard format though (which should work since I checked and configure is using the standard autoconf macros).
Cheers,
Richard
PATCH v2 1/1 vim: add option to disable NLS support
In reply to Andrej Valek- Some distributions with UTF-8 locale have problem when National Language Support is enabled. Add there an option to disable it.
--- meta/recipes-support/vim/vim.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-support/vim/vim.inc +3 -1
@@ -54,11 +54,12 @@ do_compile() { autotools_do_compile } -#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny +#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny selinux, elfutils, nls PACKAGECONFIG ??= "" PACKAGECONFIG += " \ ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '', d)} \ + nls \ " PACKAGECONFIG[gtkgui] = "--enable-gui=gtk3,--enable-gui=no,gtk+3"
@@ -67,6 +68,7 @@ PACKAGECONFIG[x11] = "--with-x,--without-x,xt," PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux," PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils," +PACKAGECONFIG[nls] = "--enable-nls,--disable-nls,," EXTRA_OECONF = " \ --disable-gpm \
Signature · 1 line
2.31.1
Hello Steve,
Could you please cherry-pick this patch into dunfell branch too?
Thank you,
Andrej
Quoted 39 lines · Andrej Valek
- Some distributions with UTF-8 locale have problem when National Language
Support is enabled. Add there an option to disable it.Signed-off-by Andrej Valek <[email protected]>---
meta/recipes-support/vim/vim.inc | 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)meta/recipes- renamed from meta/recipes-support/vim/vim.inc +0
-0support/vim/vim.inc
index17d1c24a7c..860fd24863100644meta/recipes-support/vim/vim.inc +0
-0@@ -54,11 +54,12 @@ do_compile() {
autotools_do_compile
}meta/recipes-support/vim/vim.inc +1
-1-#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny +#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny selinux,elfutils, nls
PACKAGECONFIG ??= ""
PACKAGECONFIG += " \
${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '', d)} \
+ nls \
"
PACKAGECONFIG[gtkgui] = "--enable-gui=gtk3,--enable-gui=no,gtk+3"meta/recipes-support/vim/vim.inc +0
-0@@ -67,6 +68,7 @@ PACKAGECONFIG[x11] = "--with-x,--without-x,xt,"PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," PACKAGECONFIG[selinux] = "--enable-selinux,--disable- selinux,libselinux,"
PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils," +PACKAGECONFIG[nls] = "--enable-nls,--disable-nls,,"
EXTRA_OECONF = " \
--disable-gpm \
Quoted 4 lines · Andrej Valek
Hello Steve,
Could you please cherry-pick this patch into dunfell branch too?
OK, will add this to my test queue.
Steve
Quoted 48 lines
Thank you,
AndrejQuoted 39 lines · Andrej Valek
- Some distributions with UTF-8 locale have problem when National Language
Support is enabled. Add there an option to disable it.Signed-off-by Andrej Valek <[email protected]>--- meta/recipes-support/vim/vim.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta/recipes- renamed from meta/recipes-support/vim/vim.inc +0
-0support/vim/vim.inc
index17d1c24a7c..860fd24863100644meta/recipes-support/vim/vim.inc +1
-1@@ -54,11 +54,12 @@ do_compile() { autotools_do_compile } -#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny +#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny selinux,elfutils, nls
PACKAGECONFIG ??= ""PACKAGECONFIG += " \ ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '',d)} \
meta/recipes-support/vim/vim.inc +1
-0+ nls \ " PACKAGECONFIG[gtkgui] = "--enable-gui=gtk3,--enable-gui=no,gtk+3"@@ -67,6 +68,7 @@ PACKAGECONFIG[x11] = "--with-x,--without-x,xt," PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,"
PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils,"
+PACKAGECONFIG[nls] = "--enable-nls,--disable-nls,,"EXTRA_OECONF = " \ --disable-gpm \
Hello Steve,
What's the current status in this case?
I see, that changes are in dunfell-nut branch
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=stable/dunfell-nut
. But you bumped the 3.1.11 version already
(http://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=dunfell ) where the changes are not there.
Regards,
Andrej
Quoted 61 lines · Steve Sakoman
Quoted 4 lines · Andrej Valek
Hello Steve,
Could you please cherry-pick this patch into dunfell branch too?
OK, will add this to my test queue.
Steve
Quoted 50 lines
Thank you,
AndrejQuoted 41 lines · Andrej Valek
- Some distributions with UTF-8 locale have problem when National Language
Support is enabled. Add there an option to disable it.Signed-off-by Andrej Valek <[email protected]>---
meta/recipes-support/vim/vim.inc | 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)meta/recipes- renamed from meta/recipes-support/vim/vim.inc +0
-0support/vim/vim.inc
index17d1c24a7c..860fd24863100644meta/recipes-support/vim/vim.inc +0
-0@@ -54,11 +54,12 @@ do_compile() {
autotools_do_compile
}meta/recipes-support/vim/vim.inc +1
-1-#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny +#Available PACKAGECONFIG options are gtkgui, acl, x11, tinyselinux,
elfutils, nls
PACKAGECONFIG ??= ""
PACKAGECONFIG += " \
${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '',
d)} \
+ nls \
"PACKAGECONFIG[gtkgui] = "--enable-gui=gtk3,--enable-gui=no,gtk+3"
meta/recipes-support/vim/vim.inc +0
-0@@ -67,6 +68,7 @@ PACKAGECONFIG[x11] = "--with-x,--without-x,xt,"PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," PACKAGECONFIG[selinux] = "--enable-selinux,--disable- selinux,libselinux,"
PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils," +PACKAGECONFIG[nls] = "--enable-nls,--disable-nls,,"EXTRA_OECONF = " \
--disable-gpm \
Quoted 4 lines · Andrej Valek
Hello Steve,
What's the current status in this case?
It is in my most recent pull request for openembedded-core:
https://lists.openembedded.org/g/openembedded-core/message/155775
Quoted 2 lines
I see, that changes are in dunfell-nut branch
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=stable/dunfell-nut
Patches start there for testing, then move to stable/dunfell-next when ready for a pull request.
Quoted 3 lines
. But you bumped the 3.1.11 version already
(http://git.yoctoproject.org/cgit/cgit.cgi/poky/log/?h=dunfell ) where the changes are not there.
Richard took the version bump patches from yocto-docs and meta-yocto prior to the final openembedded-core patches. Not a problem, we plan to build and test 3.1.11 next week and will create the 3.1.11 tag after successful completion of testing.
Steve
Quoted 66 lines · Steve Sakoman
Quoted 61 lines
Quoted 4 lines · Andrej Valek
Hello Steve,
Could you please cherry-pick this patch into dunfell branch too?
OK, will add this to my test queue.
Steve
Quoted 50 lines
Thank you,
AndrejQuoted 41 lines · Andrej Valek
- Some distributions with UTF-8 locale have problem when National Language
Support is enabled. Add there an option to disable it.Signed-off-by Andrej Valek <[email protected]>--- meta/recipes-support/vim/vim.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)meta/recipes- renamed from meta/recipes-support/vim/vim.inc +0
-0support/vim/vim.inc
index17d1c24a7c..860fd24863100644meta/recipes-support/vim/vim.inc +1
-1@@ -54,11 +54,12 @@ do_compile() { autotools_do_compile } -#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny +#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny selinux,elfutils, nls
PACKAGECONFIG ??= ""PACKAGECONFIG += " \ ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui','',
d)} \meta/recipes-support/vim/vim.inc +1
-0+ nls \ " PACKAGECONFIG[gtkgui] = "--enable-gui=gtk3,--enable-gui=no,gtk+3"@@ -67,6 +68,7 @@ PACKAGECONFIG[x11] = "--with-x,--without-x,xt," PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,"
PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils,"
+PACKAGECONFIG[nls] = "--enable-nls,--disable-nls,,"EXTRA_OECONF = " \ --disable-gpm \