On Thu, Apr 29, 2021 at 3:29 PM Khem Raj <raj.khem@...> wrote:
On Wed, Apr 28, 2021 at 10:40 AM Andre McCurdy <armccurdy@...> wrote:
On Tue, Apr 27, 2021 at 10:06 PM Khem Raj <raj.khem@...> wrote:
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.
What's the connection between enabling the getopt applet (a utility to help with parsing options in shell scripts etc) and enabling support for long options in a bunch of other unconnected apps?
I think enabling support for long options in a particular app would be better done where that app is enabled (e.g. CONFIG_FEATURE_GZIP_LONG_OPTIONS should be enabled where CONFIG_GZIP is enabled - in the defconfig file).
I experimented a bit more and it seems that these options are tied to the corresponding feature being enabled so they can be enabled in a fragment, unless the feature itself is enabled it will be ignored and disabled. So for disabled features/applets these options are moot. So as such, I think enabling them is a good thing as it will widen the ecompatibility for busibox systems.
OK, so all that's left to do is to move them into their own config fragment (since they have nothing to do with the existing getops config fragment).