View previous topic :: View next topic |
Author |
Message |
ManDay Apprentice
Joined: 22 Jan 2008 Posts: 247
|
Posted: Sun Nov 24, 2013 10:06 am Post subject: The choice of @system |
|
|
Because of dmenu I regularly stumble across binaries which I've never heard of (which are, admitted, quite a few). Occasionally, I take the time to figure out what exactly a certain binary does, where it comes from and why it is installed. And often I find no origin for the latter. Latest example would be "ragel", which, according to the manpage "compiles regular languages into executable state machines". Admitting my ignorance of many system tools, I think I've never seen this used anywere (nor can I imagine where this would be used). I'm not saying that it's useless, in fact, I find it a really cool program, but I just wonder why it's in @system (at least `equery depends` did not return anything).
I think there are quite a few entries in @system which can't be considered mandatory components of a system. But that's exactly what I thought @system was meant to be. Is @system still subject to changes and if, what considerations is it based upon (e.g. what particular reason do we have for ragel)? _________________ <iamben> I think once you get comfortable w/ gentoo, you'll find most other distros to not be good enough |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun Nov 24, 2013 4:18 pm Post subject: |
|
|
The dev-util/ragel package is demonstrably not in the system set: Code: | hal ~ # find /usr/portage/profiles -name packages | xargs grep ragel
hal ~ # | However, several packages you might have installed do depend on it: Code: | hal ~ # equery depends --all-packages ragel
* These packages depend on ragel:
dev-ruby/gherkin-1.0.30-r1 (dev-util/ragel)
dev-ruby/gherkin-2.7.3 (dev-util/ragel)
dev-ruby/gherkin-2.11.5 (dev-util/ragel)
dev-ruby/gherkin-2.11.6 (dev-util/ragel)
dev-ruby/gherkin-2.12.0 (dev-util/ragel)
dev-ruby/hpricot-0.8.6-r1 (dev-util/ragel)
dev-ruby/hpricot-0.8.6-r2 (dev-util/ragel)
dev-ruby/json-1.6.8 (dev-util/ragel)
dev-ruby/json-1.7.7 (dev-util/ragel)
dev-ruby/json-1.7.7-r1 (dev-util/ragel)
dev-ruby/json-1.8.0 (dev-util/ragel)
dev-ruby/json-1.8.0-r1 (dev-util/ragel)
dev-ruby/json-1.8.1 (dev-util/ragel)
dev-ruby/redcloth-4.2.9 (dev-util/ragel)
dev-ruby/redcloth-4.2.9-r1 (dev-util/ragel)
media-libs/harfbuzz-0.9.18-r1 (dev-util/ragel)
media-libs/harfbuzz-9999 (dev-util/ragel)
net-dns/knot-1.3.0-r1 (fastparser ? dev-util/ragel)
www-servers/thin-1.5.1-r1 (dev-util/ragel)
www-servers/thin-1.5.1-r2 (dev-util/ragel)
www-servers/thin-1.5.1-r3 (dev-util/ragel) | Run the above query without the --all-packages option to see what you have installed that pulled in ragel. For me, it was dev-ruby/json.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters.
Last edited by John R. Graham on Thu Nov 28, 2013 11:35 am; edited 1 time in total |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Sun Nov 24, 2013 4:19 pm Post subject: |
|
|
If you try to emerge --ask --verbose --depclean a package in @system, you will be notified that the package is pulled in by @system. A package which is present without dependencies shown by equery could be obsolete, could have been installed by you, or could be an unusual dependency not handled by equery. The first choice seems most likely. |
|
Back to top |
|
|
TomWij Retired Dev
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Sun Nov 24, 2013 11:50 pm Post subject: |
|
|
John R. Graham wrote: | The dev-util/ragel package is demonstrably not in the system set: Code: | hal ~ # find /usr/portage/profiles -name packages | xargs grep ragel
hal ~ # |
|
Note that dependencies need to be taken into account, they can hose the system as well; a `grep --include='packages' -r ... /usr/portage/profiles` doesn't take that into account, the `emerge -avc ...` does. |
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2284 Location: Adendorf, Germany
|
Posted: Mon Nov 25, 2013 10:22 am Post subject: |
|
|
You might want to install app-portage/gentoolkit.
This gives you "equery".
And with that you can find out such stuff really quick.
Like this: Code: | sed@sed-notebook ~ $ equery belongs --early-out /usr/bin/ragel
* Searching for /usr/bin/ragel ...
dev-util/ragel-6.7-r1 (/usr/bin/ragel)
sed@sed-notebook ~ $ equery depends dev-util/ragel
* These packages depend on dev-util/ragel:
dev-ruby/json-1.8.0 (dev-util/ragel) |
_________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Nov 25, 2013 10:00 pm Post subject: |
|
|
TomWij wrote: | Note that dependencies need to be taken into account, they can hose the system as well; a `grep --include='packages' -r ... /usr/portage/profiles` doesn't take that into account, the `emerge -avc ...` does. | Tom,
Thank you, and good point. Just for the record, though, ragel is not part of the system set, either directly or as a dependency.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
|