• [gentoo-dev] [PATCH 1/5] profiles/default/linux: remove busybox from @s

    From Mike Gilbert@21:1/5 to All on Thu Sep 9 21:50:03 2021
    busybox[static] was added to @system as a system recovery tool.

    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.

    Also, stage3 tarballs are often used to build containers, where having
    a recovery tool installed is completely pointless.

    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    ---
    profiles/default/linux/packages | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    diff --git a/profiles/default/linux/packages b/profiles/default/linux/packages index d0b8745d044..6d35bf72e20 100644
    --- a/profiles/default/linux/packages
    +++ b/profiles/default/linux/packages
    @@ -1,4 +1,4 @@
    -# Copyright 2004-2015 Gentoo Foundation.
    +# Copyright 2004-2021 Gentoo Authors.
    # Distributed under the terms of the GNU General Public License v2

    # This file extends the base packages file for the default profile that all
    @@ -6,7 +6,6 @@
    # will have. Some will have an selinux profile (see ${PORTDIR}/profiles/selinux).
    # The idea is to only create a new family of profiles when absolutely necessary.

    -*sys-apps/busybox
    *sys-apps/iproute2
    *sys-apps/man-pages
    *sys-apps/net-tools
    --
    2.33.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike Gilbert@21:1/5 to All on Thu Sep 9 21:50:01 2021
    With busybox no longer in @system, there is no reason to make it static
    by default.

    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    ---
    profiles/default/linux/package.use | 7 +------
    1 file changed, 1 insertion(+), 6 deletions(-)

    diff --git a/profiles/default/linux/package.use b/profiles/default/linux/package.use
    index e45526319f5..a283c16b146 100644
    --- a/profiles/default/linux/package.use
    +++ b/profiles/default/linux/package.use
    @@ -1,15 +1,10 @@
    -# Copyright 1999-2011 Gentoo Foundation
    +# Copyright 1999-2021 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # Mike Gilbert <floppym@gentoo.org> (2017-10-29)
    # Override default from make.defaults, bug 635822.
    net-libs/mbedtls -zlib

    -# 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
    -
    # Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> (2011-02-13)
    # Disable deprecated bsddb module of Python 2 by default.
    =dev-lang/python-2* -berkdb
  • From Mike Gilbert@21:1/5 to All on Thu Sep 9 22:00:02 2021
    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 +-
    2 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.20.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.20.ebuild
    index f75a2a57824..f31e856bc88 100644
    --- a/sys-libs/libxcrypt/libxcrypt-4.4.20.ebuild
    +++ b/sys-libs/libxcrypt/libxcrypt-4.4.20.ebuild
    @@ -21,7 +21,7 @@ fi
    LICENSE="LGPL-2.1+ public-domain BSD BSD-2"
    SLOT="0/1"
    KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86"
    -IUSE="+compat split-usr +static-libs system test"
    +IUSE="+compat split-usr static-libs system test"
    REQUIRED_USE="split-usr? ( system )"
    RESTRICT="!test? ( test )"

    diff --git a/sys-libs/libxcrypt/libxcrypt-4.4.25.ebuild b/sys-libs/libxcrypt/libxcrypt-4.4.25.ebuild
    index 0124869d552..dca937cb958 100644
    --- a/sys-libs/libxcrypt/libxcrypt-4.4.25.ebuild
    +++ b/sys-libs/libxcrypt/libxcrypt-4.4.25.ebuild
    @@ -21,7 +21,7 @@ fi
    LICENSE="LGPL-2.1
  • From Sam James@21:1/5 to All on Thu Sep 9 22:50:01 2021
    On 9 Sep 2021, at 20:47, Mike Gilbert <floppym@gentoo.org> wrote:

    busybox[static] was added to @system as a system recovery tool.

    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.


    Indeed, @system is for essential tools, and busybox isn't one of them.

    It's a choice. Maybe folks prefer toybox.

    Also, stage3 tarballs are often used to build containers, where having
    a recovery tool installed is completely pointless.


    Please tag Bug: https://bugs.gentoo.org/750920 in the commits (ideally all
    so no context is lost for future references).

    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    ---
    profiles/default/linux/packages | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    best,
    sam

    -----BEGIN PGP SIGNATURE-----

    iQGTBAEBCgB9FiEEYOpPv/uDUzOcqtTy9JIoEO6gSDsFAmE6cyBfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDYw RUE0RkJGRkI4MzUzMzM5Q0FBRDRGMkY0OTIyODEwRUVBMDQ4M0IACgkQ9JIoEO6g SDur0wf+ILSNLSU8hTPNX2jQIZwHcArWH08aYUaN+BEHULulmRJbup1e8M8+9C/W vuCNH3sX7Y1rg6D1VEBW7we74IxfsbXFjSJjlX3yuxCGunPxVIT+x4c/VepAyXqj vcyThnTivFJf+36FPXnfEBnDiscnQQY4raIlz+V8Ruw/X6CsY6vQoc8kIUhCn5C+ RyWwf8CKPaZv9R30RQlQtW0c0MdxZOsWZhr84iGc2jQHRwV7IxztC1OmGg3zxul1 Qm6qHcYbGQFc2tPQN30sTMMHGTriWcwbsuPdIidndVgpk8953LWS+pS8ZxbaOyoS wRPrDFO5GwGqnJCSDfO7GLih09tDAA==
    =EFr2
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Matt Turner@21:1/5 to All on Thu Sep 9 23:00:02 2021
    I support this.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Seifert@21:1/5 to Mike Gilbert on Thu Sep 9 23:00:01 2021
    On Thu, 2021-09-09 at 15:47 -0400, Mike Gilbert wrote:
    busybox[static] was added to @system as a system recovery tool.

    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.

    Also, stage3 tarballs are often used to build containers, where having
    a recovery tool installed is completely pointless.

    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    ---
     profiles/default/linux/packages | 3 +--
     1 file changed, 1 insertion(+), 2 deletions(-)

    diff --git a/profiles/default/linux/packages b/profiles/default/linux/packages
    index d0b8745d044..6d35bf72e20 100644
    --- a/profiles/default/linux/packages
    +++ b/profiles/default/linux/packages
    @@ -1,4 +1,4 @@
    -# Copyright 2004-2015 Gentoo Foundation.
    +# Copyright 2004-2021 Gentoo Authors.
     # Distributed under the terms of the GNU General Public License v2
     
     # This file extends the base packages file for the default profile
    that all
    @@ -6,7 +6,6 @@
     # will have.  Some will have an selinux profile (see ${PORTDIR}/profiles/selinux).
     # The idea is to only create a new family of profiles when absolutely necessary.
     
    -*sys-apps/busybox
     *sys-apps/iproute2
     *sys-apps/man-pages
     *sys-apps/net-tools

    I fully support this
    +1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)