Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 445148 - app-eselect/eselect-sh should list busybox ash as an option
Summary: app-eselect/eselect-sh should list busybox ash as an option
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: Bug
Depends on: 445218 451160
Blocks:
  Show dependency tree
 
Reported: 2012-11-29 05:51 UTC by Richard Yao (RETIRED)
Modified: 2018-11-14 17:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao (RETIRED) gentoo-dev 2012-11-29 05:51:01 UTC
It is possible to select busybox's ash shell by using `eselect sh set busybox`, but busybox ash is not listed as an option, despite being part of @system.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-11-29 09:16:33 UTC
Do you think that 'bb' (the statically linked version) should be an option as well?
Comment 2 Richard Yao (RETIRED) gentoo-dev 2012-11-29 19:44:04 UTC
(In reply to comment #1)
> Do you think that 'bb' (the statically linked version) should be an option
> as well?

The statically linked version wastes memory in comparison to the dynamically linked version and provides no benefit over it.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-14 13:43:01 UTC
Fixed in 0.4.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2016-01-25 09:25:49 UTC
[ebuild   R    ] app-eselect/eselect-sh-0.4-r2::gentoo  0 KiB
[ebuild   R    ] sys-apps/busybox-1.24.1::gentoo  USE="ipv6 savedconfig static -debug -livecd -make-symlinks -math -mdev -pam (-selinux) -sep-usr -syslog (-systemd)" 0 KiB

# eselect sh list
Available POSIX shell implementations:
  [1]   bash *

Is this why the bug is CONFIRMED and not FIXED?
Comment 5 Hadrien Lacour 2018-11-14 13:12:15 UTC
Ping. Adding busybox to "SYMLINK_TARGETS=( bash dash posh mksh )" shouldn't be that hard.
Comment 6 Hadrien Lacour 2018-11-14 16:32:06 UTC
Now that I think of it, if busybox is selected, a warning about CONFIG_PREFER_APPLET/CONFIG_SH_STANDALONE possibly breaking scripts should be given.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-11-14 17:01:32 UTC
I've looked through the history and I see that this addition was reverted because busybox shell silently replaces system tools with its own, and breaks stuff.  Therefore, this is not going to be officially supported.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2018-11-14 17:20:20 UTC
(In reply to Michał Górny from comment #7)
> I've looked through the history and I see that this addition was reverted
> because busybox shell silently replaces system tools with its own, and
> breaks stuff.  Therefore, this is not going to be officially supported.

This is precisely what was pointed out in comment #6.