Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 750920 - static busybox still required in default/linux @system ?
Summary: static busybox still required in default/linux @system ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Profiles (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: future-profile
  Show dependency tree
 
Reported: 2020-10-23 20:49 UTC by Andreas K. Hüttel
Modified: 2021-09-24 21:06 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 Andreas K. Hüttel archtester gentoo-dev 2020-10-23 20:49:35 UTC
We have in default/linux/package.use

# Mike Frysinger <vapier@gentoo.org> (2015-11-12)
# We want busybox statically linked by default as it is the system rescue shell.
# But we cannot statically link pam, so turn that off by default. #468580
sys-apps/busybox -pam static


Do we still need this? It means e.g. that also libxcrypt needs to be available as static lib.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-07-19 22:56:15 UTC
Ping. As per discussions in #gentoo-base, I plan on writing a news item regarding its removal from @system to avoid surprising folks who have to come to rely on it.

The consensus was that a rescue shell is generally not enough to save a broken system anyway and that it's much safer to just reboot into a rescue environment.
Comment 2 Larry the Git Cow gentoo-dev 2021-09-24 21:02:03 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87629e669d0b7d36bd2a51d7da4604e1af02cce9

commit 87629e669d0b7d36bd2a51d7da4604e1af02cce9
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-09-24 21:01:31 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-09-24 21:01:31 +0000

    sys-libs/libxcrypt: disable static-libs by default
    
    Bug: https://bugs.gentoo.org/750920
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-libs/libxcrypt/libxcrypt-4.4.20.ebuild | 2 +-
 sys-libs/libxcrypt/libxcrypt-4.4.25.ebuild | 2 +-
 sys-libs/libxcrypt/libxcrypt-4.4.26.ebuild | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

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

commit e4bfce1fb8589b3c6984337156c279e3c1524528
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-09-09 19:42:57 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-09-24 20:58:46 +0000

    virtual/libcrypt: disable static-libs by default
    
    Bug: https://bugs.gentoo.org/750920
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 virtual/libcrypt/libcrypt-1-r1.ebuild | 2 +-
 virtual/libcrypt/libcrypt-2.ebuild    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01719e7fbaca5885997b47d797d5a1462530687a

commit 01719e7fbaca5885997b47d797d5a1462530687a
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-09-09 19:40:31 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-09-24 20:58:44 +0000

    profiles/embedded: enable libcrypt[static-libs] by default
    
    Needed for busybox[static].
    
    Bug: https://bugs.gentoo.org/750920
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 profiles/embedded/package.use | 2 ++
 1 file changed, 2 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=971176581ada9973cf45ac3b3230d6476fae48fb

commit 971176581ada9973cf45ac3b3230d6476fae48fb
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-09-09 19:38:18 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-09-24 20:58:42 +0000

    profiles/default/linux: remove busybox from package.use
    
    With busybox no longer in @system, there is no reason to make it static
    by default.
    
    Bug: https://bugs.gentoo.org/750920
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 profiles/default/linux/package.use | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

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

commit d6ab67e78875aebd3b88a5a1dc84cde4ec29490f
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-09-09 19:29:02 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-09-24 20:58:40 +0000

    profiles/default/linux: remove busybox from @system
    
    busybox[static] was added to @system as a system recovery tool. It's
    unclear why a recovery tool should be present in @system and stage3
    tarballs.
    
    If the system is in such a state that a static shell is needed for
    recovery, it is likely that remote access is also broken, and the
    sysadmin will need to log into a console. At that point, they could boot
    from recovery media anyway.
    
    Bug: https://bugs.gentoo.org/750920
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 profiles/default/linux/packages | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)