public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Why busybox?
@ 2020-04-05 17:53 Ian Zimmerman
  2020-04-05 18:45 ` Ashley Dixon
  2020-04-05 20:03 ` [gentoo-user] " Mark Knecht
  0 siblings, 2 replies; 10+ messages in thread
From: Ian Zimmerman @ 2020-04-05 17:53 UTC (permalink / raw
  To: Gentoo User Mailinglist

Why does portage insist on installing busybox for me?

As far as I know the only use for it on a desktop system is for
initramfs.  I have no initramfs, therefore I have no need for busybox.
I unmerged it and nothing bad happened except for a warning from portage
that it is part of my profile set.  I went ahead and ignored the
warning.

But now I updated the tree and emerge -p shows it will be installed
again.  Why is that?  The only reverse dependencies are virtuals which
are satisfied in other ways, like virtual/awk.  So is it the profile
thing?  But I have done the same with other profile packages (notably
editors/nano) and those are _not_ coming back.

-- 
Ian


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Why busybox?
  2020-04-05 17:53 [gentoo-user] Why busybox? Ian Zimmerman
@ 2020-04-05 18:45 ` Ashley Dixon
  2020-04-05 19:56   ` [gentoo-user] " Ian Zimmerman
  2020-04-05 20:03 ` [gentoo-user] " Mark Knecht
  1 sibling, 1 reply; 10+ messages in thread
From: Ashley Dixon @ 2020-04-05 18:45 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1831 bytes --]

On Sun, Apr 05, 2020 at 10:53:50AM -0700, Ian Zimmerman wrote:
> Why does portage insist on installing busybox for me?

BusyBox is just a minimal set of utilities which would be useful for rescuing a
system, or to be used on an embedded system with extreme limitations. There's
not really any reason to remove this, but if you insist...

> As far as I know the only use for it on a desktop system is for
> initramfs.  I have no initramfs, therefore I have no need for busybox.
> I unmerged it and nothing bad happened except for a warning from portage
> that it is part of my profile set.  I went ahead and ignored the
> warning.
> 
> But now I updated the tree and emerge -p shows it will be installed
> again.  Why is that?  The only reverse dependencies are virtuals which
> are satisfied in other ways, like virtual/awk.  So is it the profile
> thing?  But I have done the same with other profile packages (notably
> editors/nano) and those are _not_ coming back.

Read more about profiles at [1]; a guide to making custom profiles can be found
as a subsection. Portage's attempts to reinstall BusyBox is not unexpected
behaviour, as the "profile" defines a core set of packages which should be
installed for a particular use case (e.g., desktop profiles mandate an X
server). Thus, when you invoke Portage to do a full overhaul, it interprets
anything defined in the profile which is not installed on the system to be an
error which needs to be rectified.

If you really don't want to have Portage install BusyBox, see the --exclude
option of emerge. But again, there's really no need to remove BusyBox unless
you're _very_ short on disk space.

[1] https://wiki.gentoo.org/wiki/Profile_(Portage)

-- 

Ashley Dixon
suugaku.co.uk

2A9A 4117
DA96 D18A
8A7B B0D2
A30E BF25
F290 A8AA


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-user] Re: Why busybox?
  2020-04-05 18:45 ` Ashley Dixon
@ 2020-04-05 19:56   ` Ian Zimmerman
  2020-04-05 20:19     ` Ashley Dixon
                       ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Ian Zimmerman @ 2020-04-05 19:56 UTC (permalink / raw
  To: gentoo-user

On 2020-04-05 19:45, Ashley Dixon wrote:

> > Why does portage insist on installing busybox for me?
> 
> BusyBox is just a minimal set of utilities which would be useful for
> rescuing a system, or to be used on an embedded system with extreme
> limitations. There's not really any reason to remove this, but if you
> insist...

As for rescue scenarios, that has been obsolete for a long time.  For at
least 10 years now, whenever I need to rescue myself I boot from a
separate medium that is normally offline, a CD, an SD card or a thumb
drive.  And I did the same even when I had an initramfs.

And this is a desktop.  BTW, I'm curious - are there really embedded
systems, especially ones with extreme limitations, running gentoo?

> Read more about profiles at [1]; a guide to making custom profiles can
> be found as a subsection.

Indeed, profiles are a big hole in my gentoo knowledge.  Thanks for the
pointer.

> If you really don't want to have Portage install BusyBox, see the
> --exclude option of emerge. But again, there's really no need to
> remove BusyBox unless you're _very_ short on disk space.

The true reason I want to avoid it is that portage keeps spamming me
about the configuration - handled by saveconfig or something.  It
happens every time it is rebuild and I don't know how to stop it.

BTW, I found why app-editor/nano is different.  It is not part of the
profile set itself, it is just that it happens to satisfy virtual/editor
which is in the profile set.

virtuals are another area which I need to study, sigh

-- 
Ian


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Why busybox?
  2020-04-05 17:53 [gentoo-user] Why busybox? Ian Zimmerman
  2020-04-05 18:45 ` Ashley Dixon
@ 2020-04-05 20:03 ` Mark Knecht
  2020-04-05 20:18   ` Dale
  2020-04-05 20:57   ` Jack
  1 sibling, 2 replies; 10+ messages in thread
From: Mark Knecht @ 2020-04-05 20:03 UTC (permalink / raw
  To: Gentoo User

[-- Attachment #1: Type: text/plain, Size: 989 bytes --]

On Sun, Apr 5, 2020 at 10:54 AM Ian Zimmerman <itz@very.loosely.org> wrote:
>
> Why does portage insist on installing busybox for me?
>
> As far as I know the only use for it on a desktop system is for
> initramfs.  I have no initramfs, therefore I have no need for busybox.
> I unmerged it and nothing bad happened except for a warning from portage
> that it is part of my profile set.  I went ahead and ignored the
> warning.
>
> But now I updated the tree and emerge -p shows it will be installed
> again.  Why is that?  The only reverse dependencies are virtuals which
> are satisfied in other ways, like virtual/awk.  So is it the profile
> thing?  But I have done the same with other profile packages (notably
> editors/nano) and those are _not_ coming back.
>
> --
> Ian

emerge is your friend. Something like

emerge -p -e

should. I believe, tell you where every package dependency comes from.

It's not always fun to read but the answer to your question should be there.

- Mark

[-- Attachment #2: Type: text/html, Size: 1316 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Why busybox?
  2020-04-05 20:03 ` [gentoo-user] " Mark Knecht
@ 2020-04-05 20:18   ` Dale
  2020-04-05 20:20     ` Mark Knecht
  2020-04-05 20:57   ` Jack
  1 sibling, 1 reply; 10+ messages in thread
From: Dale @ 2020-04-05 20:18 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1456 bytes --]

Mark Knecht wrote:
>
>
> On Sun, Apr 5, 2020 at 10:54 AM Ian Zimmerman <itz@very.loosely.org
> <mailto:itz@very.loosely.org>> wrote:
> >
> > Why does portage insist on installing busybox for me?
> >
> > As far as I know the only use for it on a desktop system is for
> > initramfs.  I have no initramfs, therefore I have no need for busybox.
> > I unmerged it and nothing bad happened except for a warning from portage
> > that it is part of my profile set.  I went ahead and ignored the
> > warning.
> >
> > But now I updated the tree and emerge -p shows it will be installed
> > again.  Why is that?  The only reverse dependencies are virtuals which
> > are satisfied in other ways, like virtual/awk.  So is it the profile
> > thing?  But I have done the same with other profile packages (notably
> > editors/nano) and those are _not_ coming back.
> >
> > --
> > Ian
>
> emerge is your friend. Something like 
>
> emerge -p -e
>
> should. I believe, tell you where every package dependency comes from.
>
> It's not always fun to read but the answer to your question should be
> there.
>
> - Mark
>


I usually do a emerge -et either -p or -a then package name to get a
tree list of what it depends on and what is pulling it in.  On some
packages tho, it can get rather long.  Example:

emerge -etp firefox

or

emerge -eta firefox

Doesn't either one of those q commands or equery do this as well???

Whichever works.  ;-)

Dale

:-)  :-) 



[-- Attachment #2: Type: text/html, Size: 2715 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Re: Why busybox?
  2020-04-05 19:56   ` [gentoo-user] " Ian Zimmerman
@ 2020-04-05 20:19     ` Ashley Dixon
  2020-04-05 21:09     ` Neil Bothwick
  2020-04-06  8:52     ` Adam Carter
  2 siblings, 0 replies; 10+ messages in thread
From: Ashley Dixon @ 2020-04-05 20:19 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1747 bytes --]

On Sun, Apr 05, 2020 at 12:56:13PM -0700, Ian Zimmerman wrote:
> As for rescue scenarios, that has been obsolete for a long time. For at least
> 10 years now

It is still used in some rescue situations, for example, an initramfs panic.
https://askubuntu.com/q/137655/ (This post was eight years ago but is still
applicable today. I still can't believe 2012 was almost a decade ago; it feels
like yesterday...)

> And this is a desktop.  BTW, I'm curious - are there really embedded
> systems, especially ones with extreme limitations, running gentoo?

I have seen them around. There used to be this great machine by Marvell called a
"SheevaPlug", and whilst its limitations weren't _extreme_, it could certainly
be classed as "embedded" by some. Think a power-line networking device, but a
full computer ! See [1], [2], and [3].

Anyway, that came with some peculiar variant of Linux with some proprietary
stuff on, which I (along with almost every other user, I assume), replaced with
a bare Gentoo installation. There was a moderately-sized mailing list a few
years ago which was dedicated to Gentoo on the Sheeva, although I think the
domain, and thus archives, have been lost to history.

> virtuals are another area which I need to study, sigh

They're not very intuitive, but just one of those things that you learn about
naturally while casually using Gentoo over a number of years.

[1] https://en.wikipedia.org/wiki/SheevaPlug
[2] https://wiki.gentoo.org/wiki/Embedded_Handbook/Boards/Marvell_Sheevaplug
[3] https://web.archive.org/web/20140717151031/https://dev.gentoo.org/~armin76/arm/sheevaplug/install.xml

-- 

Ashley Dixon
suugaku.co.uk

2A9A 4117
DA96 D18A
8A7B B0D2
A30E BF25
F290 A8AA


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Why busybox?
  2020-04-05 20:18   ` Dale
@ 2020-04-05 20:20     ` Mark Knecht
  0 siblings, 0 replies; 10+ messages in thread
From: Mark Knecht @ 2020-04-05 20:20 UTC (permalink / raw
  To: Gentoo User

[-- Attachment #1: Type: text/plain, Size: 1566 bytes --]

On Sun, Apr 5, 2020 at 1:19 PM Dale <rdalek1967@gmail.com> wrote:

> Mark Knecht wrote:
>
>
>
> On Sun, Apr 5, 2020 at 10:54 AM Ian Zimmerman <itz@very.loosely.org>
> wrote:
> >
> > Why does portage insist on installing busybox for me?
> >
> > As far as I know the only use for it on a desktop system is for
> > initramfs.  I have no initramfs, therefore I have no need for busybox.
> > I unmerged it and nothing bad happened except for a warning from portage
> > that it is part of my profile set.  I went ahead and ignored the
> > warning.
> >
> > But now I updated the tree and emerge -p shows it will be installed
> > again.  Why is that?  The only reverse dependencies are virtuals which
> > are satisfied in other ways, like virtual/awk.  So is it the profile
> > thing?  But I have done the same with other profile packages (notably
> > editors/nano) and those are _not_ coming back.
> >
> > --
> > Ian
>
> emerge is your friend. Something like
>
> emerge -p -e
>
> should. I believe, tell you where every package dependency comes from.
>
> It's not always fun to read but the answer to your question should be
> there.
>
> - Mark
>
>
>
> I usually do a emerge -et either -p or -a then package name to get a tree
> list of what it depends on and what is pulling it in.  On some packages
> tho, it can get rather long.  Example:
>
> emerge -etp firefox
>
> or
>
> emerge -eta firefox
>
> Doesn't either one of those q commands or equery do this as well???
>
> Whichever works.  ;-)
>
> Dale
>
> :-)  :-)
>
>
> Yes, I forgot to add the 'tree' function. Thanks!

[-- Attachment #2: Type: text/html, Size: 2946 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Why busybox?
  2020-04-05 20:03 ` [gentoo-user] " Mark Knecht
  2020-04-05 20:18   ` Dale
@ 2020-04-05 20:57   ` Jack
  1 sibling, 0 replies; 10+ messages in thread
From: Jack @ 2020-04-05 20:57 UTC (permalink / raw
  To: gentoo-user

On 2020.04.05 16:03, Mark Knecht wrote:
> On Sun, Apr 5, 2020 at 10:54 AM Ian Zimmerman <itz@very.loosely.org>  
> wrote:
> >
> > Why does portage insist on installing busybox for me?
> >
> > As far as I know the only use for it on a desktop system is for
> > initramfs.  I have no initramfs, therefore I have no need for  
> busybox.
> > I unmerged it and nothing bad happened except for a warning from  
> portage
> > that it is part of my profile set.  I went ahead and ignored the
> > warning.
> >
> > But now I updated the tree and emerge -p shows it will be installed
> > again.  Why is that?  The only reverse dependencies are virtuals  
> which
> > are satisfied in other ways, like virtual/awk.  So is it the profile
> > thing?  But I have done the same with other profile packages  
> (notably
> > editors/nano) and those are _not_ coming back.
> >
> > --
> > Ian
> 
> emerge is your friend. Something like
> 
> emerge -p -e
> 
> should. I believe, tell you where every package dependency comes from.
> 
> It's not always fun to read but the answer to your question should be  
> there.
> 
> - Mark
I find "emerge -p -c busybox" even easier, and it tells me busybox is  
required by @system.

Jack

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Re: Why busybox?
  2020-04-05 19:56   ` [gentoo-user] " Ian Zimmerman
  2020-04-05 20:19     ` Ashley Dixon
@ 2020-04-05 21:09     ` Neil Bothwick
  2020-04-06  8:52     ` Adam Carter
  2 siblings, 0 replies; 10+ messages in thread
From: Neil Bothwick @ 2020-04-05 21:09 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 446 bytes --]

On Sun, 5 Apr 2020 12:56:13 -0700, Ian Zimmerman wrote:

> The true reason I want to avoid it is that portage keeps spamming me
> about the configuration - handled by saveconfig or something.  It
> happens every time it is rebuild and I don't know how to stop it.

Read the spam, it tells you what to do ;-)


-- 
Neil Bothwick

The trouble with doing something right the first time is that nobody
appreciates how difficult it was.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Re: Why busybox?
  2020-04-05 19:56   ` [gentoo-user] " Ian Zimmerman
  2020-04-05 20:19     ` Ashley Dixon
  2020-04-05 21:09     ` Neil Bothwick
@ 2020-04-06  8:52     ` Adam Carter
  2 siblings, 0 replies; 10+ messages in thread
From: Adam Carter @ 2020-04-06  8:52 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 942 bytes --]

> > > Why does portage insist on installing busybox for me?
> >
> > BusyBox is just a minimal set of utilities which would be useful for
> > rescuing a system, or to be used on an embedded system with extreme
> > limitations. There's not really any reason to remove this, but if you
> > insist...
>
> As for rescue scenarios, that has been obsolete for a long time.  For at
> least 10 years now, whenever I need to rescue myself I boot from a
> separate medium that is normally offline, a CD, an SD card or a thumb
> drive.
>

If your breakage can be fixed by busybox, then its easier, faster and
avoids downtime when compared to booting from alternate media. As its
statically linked, it will still run if any libraries required by the
conventional binary are stuffed (BTDT). Of course, sometimes its not enough
and you will have to fall back to booting from alternate media.

I don't think many will find a compelling case for its removal.

[-- Attachment #2: Type: text/html, Size: 1256 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-04-06  8:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-05 17:53 [gentoo-user] Why busybox? Ian Zimmerman
2020-04-05 18:45 ` Ashley Dixon
2020-04-05 19:56   ` [gentoo-user] " Ian Zimmerman
2020-04-05 20:19     ` Ashley Dixon
2020-04-05 21:09     ` Neil Bothwick
2020-04-06  8:52     ` Adam Carter
2020-04-05 20:03 ` [gentoo-user] " Mark Knecht
2020-04-05 20:18   ` Dale
2020-04-05 20:20     ` Mark Knecht
2020-04-05 20:57   ` Jack

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox