Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237867 - Allow traffic shaping with Emerge on the fly
Summary: Allow traffic shaping with Emerge on the fly
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High minor
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-16 19:53 UTC by Clin
Modified: 2008-09-16 23:32 UTC (History)
0 users

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 Clin 2008-09-16 19:53:33 UTC
Emerge has a feature which allows the user to configure parameters to wget in /etc/make.conf by means of FETCHCOMMAND and RESUMECOMMAND which is really helpful, however as I am on a relatively slow connection (512kbps) downloading a file from the closest mirrors to me saturate my connection which is perfectly fine in some instances and not so much in others; 

I'd really love to pass this to emerge on the fly, for example emerge --rate-limit=25k openoffice-bin it would make my gentoo days a lot simpler and I don't believe it would be *too* much coding :)

Reproducible: Always

Steps to Reproduce:
1.Get crap Internet
2.Emerge
3.???
4.Profit

Actual Results:  
This page took 5 minutes to load

Expected Results:  
This page to load in less than 5 minutes
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2008-09-16 19:57:39 UTC
I think I can safely say this is WONTFIX. Since users can override FETCHCOMMAND, any additional commandline option for portage that modifies FETCHCOMMAND would only work properly for the default FETCHCOMMAND. Also, you can already modify FETCHCOMMAND yourself, so why do you want this added to portage?
Comment 2 Zac Medico gentoo-dev 2008-09-16 20:32:31 UTC
Can't you just copy FETCOMMAND and RESUMECOMMAND from /etc/make.globals to make.conf and modify it to fit your needs?
Comment 3 Clin 2008-09-16 21:47:30 UTC
As I have mentioned, modifying your /etc/make.conf works, but its not the least painful method of going places. You could also pass FETCHCOMMAND at the time of the emerge, but seeing as you cant leave the variable blank and expect it to work, it would take just as long to get the correct parameters in there.

All I'm asking for is a flag such as 'emerge --limit=25k package' which will allow limiting; it is a lot more user-friendly and I'm guessing there are more people than just me who would actually use it (Which is why I submitted this in the first place) 
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2008-09-16 23:32:40 UTC
Use a wrapper script in FETCHCOMMAND that triggers the wanted behavior based on some condition. Adding an emerge option for this is not really an option as it wouldn't be portable (as has been said before), and emerge already has too many options IMO.