Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
The choice of @system
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ManDay
Apprentice
Apprentice


Joined: 22 Jan 2008
Posts: 247

PostPosted: Sun Nov 24, 2013 10:06 am    Post subject: The choice of @system Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Nov 24, 2013 4:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21593

PostPosted: Sun Nov 24, 2013 4:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Sun Nov 24, 2013 11:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2282
Location: Adendorf, Germany

PostPosted: Mon Nov 25, 2013 10:22 am    Post subject: Reply with quote

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:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Nov 25, 2013 10:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum