]> code.ossystems Code Review - openembedded-core.git/commit
busybox: Enable long options for enabled applets
authorKhem Raj <raj.khem@gmail.com>
Fri, 30 Apr 2021 02:45:59 +0000 (19:45 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 3 May 2021 14:23:44 +0000 (15:23 +0100)
commit6a6c64426f544fcd376f2eabdb5aecc0ab04e541
tree377ec3e739f3c86189e1039c94fc060325ae6511
parent3d949f286c29bcaaf4dfc0aaffd15f129d1bab2d
busybox: Enable long options for enabled applets

certain applets are enabled but the long options are not enabled for
them, it results in subtle failures in ptests where its expecting these
options e.g. gzip --best is commonly used in many package tests e.g.

root@qemux86-64:/usr/lib# grep -r "\-\-best" *
acl/ptest/Makefile:GZIP_ENV = --best
attr/ptest/Makefile:GZIP_ENV = --best
coreutils/ptest/Makefile:GZIP_ENV = --best
ethtool/ptest/Makefile:GZIP_ENV = --best
libxml2/ptest/Makefile:GZIP_ENV = --best
lttng-tools/ptest/Makefile:GZIP_ENV = --best
opkg/ptest/Makefile:GZIP_ENV = --best
perl/ptest/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm:    COMPRESS     ('gzip --best')
python3.9/test/test_gzip.py:        for compress_level in ('--fast', '--best'):
...

this ensures that these options are enabled by default, which makes them more
compatible than now with coreutils provided utilities

busybox size grows by 4K which perhaps is acceptable

--rwxr-xr-x root       root           817704 ./bin/busybox.nosuid
+-rwxr-xr-x root       root           821800 ./bin/busybox.nosuid

This makes autopoint-3/gettext pass

This patch add all the long options to this fragment. The long options
for a tool will only get enabled if the corresponding tool/feature is
enabled in main defconfig, otherwise it will be ignored in final .config

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/busybox/busybox/longopts.cfg [new file with mode: 0644]
meta/recipes-core/busybox/busybox_1.33.0.bb