Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 738542 - sys-apps/busybox: add USE flag ash as symlink. Optionally with app-eselect/eselect-sh parameter
Summary: sys-apps/busybox: add USE flag ash as symlink. Optionally with app-eselect/es...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-22 08:28 UTC by Reva Denis
Modified: 2022-06-30 21:41 UTC (History)
2 users (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 Reva Denis 2020-08-22 08:28:55 UTC
The goal is to use busybox's ash shell in scripts. I suggest to add USE ash to package sys-apps/busybox which symlinks ash into busybox.
We can use it secure way if we create symlink.
Optionally we can permit it in app-eselect/eselect-sh

Reproducible: Always

Actual Results:  
RarogCmexDell ~ # LC_ALL=C eix sys-apps/busybox -v
* sys-apps/busybox
     Available versions:  1.31.1-r2^t ~1.32.0^t **9999*l^t
     IUSE (all versions): debug ipv6 livecd make-symlinks math mdev pam savedconfig selinux sep-usr static syslog systemd
     Installed versions:  Version:   1.31.1-r2^t
                          Date:      01:00:43 03/26/20
                          USE:       ipv6 static -debug -livecd -make-symlinks -math -mdev -pam -savedconfig -selinux -sep-usr -syslog -systemd
                          DEPEND:    ${RDEPEND} virtual/libcrypt[static-libs] >=sys-kernel/linux-headers-2.6.39
                          RDEPEND:   virtual/libcrypt:0/1=
                          SRC_URI:   
                          EAPI:      7
     Best versions/slot:  1.31.1-r2^t
     Package sets:        system
     Homepage:            https://www.busybox.net/
     Find open bugs:      https://bugs.gentoo.org/buglist.cgi?quicksearch=sys-apps%2Fbusybox
     Description:         Utilities for rescue and embedded systems
     License:             GPL-2
Comment 1 Reva Denis 2020-08-22 08:30:15 UTC
What it looks
RarogCmexDell ~ # LC_ALL=C ls -la /bin/ash 
lrwxrwxrwx 1 root root 7 Aug 13 06:10 /bin/ash -> busybox
Comment 2 Larry the Git Cow gentoo-dev 2022-06-30 21:41:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1217ef8f763e30c9751950b5635198ec1b6604df

commit 1217ef8f763e30c9751950b5635198ec1b6604df
Author:     Viorel Munteanu <ceamac.paragon@gmail.com>
AuthorDate: 2022-04-17 09:52:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-30 21:40:15 +0000

    sys-apps/busybox: Add /bin/ash symlink
    
    Closes: https://bugs.gentoo.org/738542
    Signed-off-by: Viorel Munteanu <ceamac.paragon@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/busybox/busybox-1.34.1-r1.ebuild | 3 +++
 1 file changed, 3 insertions(+)