Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 295886

Summary: emerge should support reading a list of packages to merge from stdin or file
Product: Portage Development Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: alex_y_xu, spatz
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.