Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295886 - emerge should support reading a list of packages to merge from stdin or file
Summary: emerge should support reading a list of packages to merge from stdin or file
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-05 18:05 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2015-06-11 00:29 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 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-05 18:05:50 UTC
I would suggest using the same @file option that GCC and other tools support but that's out of question since the syntax is now used by sets. But some kind of parameter would definitely be helpful.

I'm using xargs to fetch the tree for tinderboxing, but the result is sub-optimal because most of the time the list is too big for a single emerge fetch run, and it's split in two calls.
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2009-12-06 15:49:29 UTC
What's wrong with this usage?

emerge -p $(some command | cut | sed | whatever)
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-06 15:53:58 UTC
ARG_MAX is the problem.

When you got a list of packages that is around 150K big, you hit ARG_MAX pretty hard. And xargs need to split that in two calls because it can only pass around 6200 atoms in one go.
Comment 3 Alex Xu (Hello71) 2015-06-11 00:29:01 UTC
(In reply to Diego Elio Pettenò from comment #0)
> I would suggest using the same @file option that GCC and other tools support
> but that's out of question since the syntax is now used by sets. But some
> kind of parameter would definitely be helpful.

why not just make a temporary set then?

for this specific scenario (i.e. for fetching), there seem to be no features of emerge that would make one go better than multiple.