Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New portage function proposal
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Jul 07, 2004 7:00 am    Post subject: New portage function proposal Reply with quote

I think there should be a function for portage to download only upgrades for a program we chose in the command line such as "emerge -m mozilla" which will check a rsync mirror for a possible uprade of mozilla and will download the newest ebuild and emerge it, instead of rsyncing the whole portage tree which takes up bandwidth etc.
What do you think?
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
Earthwings
Administrator
Administrator


Joined: 14 Apr 2003
Posts: 7751
Location: Karlsruhe, Germany

PostPosted: Wed Jul 07, 2004 7:31 am    Post subject: Reply with quote

That was asked before, and the answer was like "that's not possible due to the dependencies". Mozilla depends on zip, imagine zip has a security flaw and gets removed from the tree, another version of zip is added. If you would only sync mozilla and not the rest, installing mozilla would not result in replacing the version of zip.
There is however the possibility to exclude parts of the whole tree from sync (could lead to similar problems, I'm afraid). Set RSYNC_EXCLUDEFROM in make.conf for that, see man make.conf and man rsync
Back to top
View user's profile Send private message
hensan
l33t
l33t


Joined: 26 Jun 2003
Posts: 868
Location: Sweden

PostPosted: Wed Jul 07, 2004 7:44 am    Post subject: Reply with quote

I think only downloading the ebuilds you need is a great idea. Why have 300+ MB of ebuilds, patches and whatnot lying around on your harddrive, most of which you are never going to use?

Either portage could be redesigned so that emerge -s/-u will actually connect to a portage mirror and do the search there (no more syncing), or instead of downloading everything just download a list of package descriptions that you can search and then download the files you need.
Back to top
View user's profile Send private message
John5788
Advocate
Advocate


Joined: 06 Apr 2004
Posts: 2102
Location: 127.0.0.1

PostPosted: Wed Jul 07, 2004 8:15 am    Post subject: Reply with quote

could set something up like the cvs updates for freebsd ports tree. i could block off some of the categories ill never even install like the different languages.
_________________
John5788
Back to top
View user's profile Send private message
Useful Idiot
Guru
Guru


Joined: 30 Aug 2002
Posts: 329
Location: Finland

PostPosted: Wed Jul 07, 2004 9:37 am    Post subject: Reply with quote

John5788 wrote:
could set something up like the cvs updates for freebsd ports tree. i could block off some of the categories ill never even install like the different languages.


You can already do that with portage:
Code:
       RSYNC_EXCLUDEFROM = "/etc/portage/rsync_excludes"
              This  is  a file that portage will pass to rsync when it updates
              the portage tree.  Specific chucks of the tree may  be  excluded
              from  the  sync  process.  This may cause dependency failures if
              you are not careful.  The  file  format  is  pattern  per  line,
              blanks and ';' or '#' lines are comments.  See rsync(1) for more
              details.

_________________
[size=9]We are all in the gutter, but some of us are looking at the stars.
Back to top
View user's profile Send private message
John5788
Advocate
Advocate


Joined: 06 Apr 2004
Posts: 2102
Location: 127.0.0.1

PostPosted: Wed Jul 07, 2004 9:38 am    Post subject: Reply with quote

well isnt that just dandy. :) u gentoo devs thought of everything already.
_________________
John5788
Back to top
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Wed Jul 07, 2004 10:16 am    Post subject: Reply with quote

If you only want to update the ebuild for one package you can add this to /etc/portage/rsync_excludes. You have to uncomment the RSYNC_EXCLUDEFROM line in /etc/make.conf, I'll use mozilla as an example, but it wonrks with any package, you just have to make sure you add the category first.

Code:
+ net-www/
+ net-www/mozilla/
+ net-www/mozilla/**
*


As said before this will not sync any dependencies, but you can add extra packages before the final * in rsync_excludes.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
yngwin
Developer
Developer


Joined: 19 Dec 2002
Posts: 4412
Location: Suzhou, China

PostPosted: Wed Jul 07, 2004 11:27 am    Post subject: Reply with quote

I don't think this is a good idea. You can run into dependancy problems. And for what? With today's hardware (and even yesterday's) most of us have enough diskspace, bandwidth and processor power to run portage the normal way.
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Jul 07, 2004 12:16 pm    Post subject: Reply with quote

I don't see a problem with it, it could be done that after the new mozilla ebuild is downloaded it also checks the dependancies for updates. :?
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
petrjanda
Veteran
Veteran


Joined: 05 Sep 2003
Posts: 1557
Location: Brno, Czech Republic

PostPosted: Wed Jul 07, 2004 12:17 pm    Post subject: Reply with quote

yngwin wrote:
I don't think this is a good idea. You can run into dependancy problems. And for what? With today's hardware (and even yesterday's) most of us have enough diskspace, bandwidth and processor power to run portage the normal way.

On the other hand, if a person wanted to upgrade just a certain package like web browser for whatever reason, he wouldn't have to run whole rsync which would put some load off of the rsync servers.
_________________
There is, a not-born, a not-become, a not-made, a not-compounded. If that unborn, not-become, not-made, not-compounded were not, there would be no escape from this here that is born, become, made and compounded. - Gautama Siddharta
Back to top
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Wed Jul 07, 2004 3:06 pm    Post subject: Reply with quote

petrjanda wrote:
I don't see a problem with it, it could be done that after the new mozilla ebuild is downloaded it also checks the dependancies for updates. :?


It could be made to make an educated guess at the dependencies from the current ebuild, then check for new ones when it downloads the new ebuild. This could go on for some time if the new dependencies have new dependencies. You could end up syncing lots of times and getting yourself banned from an rsync server.

AFAICS there's no easy way of overcoming this problem, it may be possible using the metadata cache, but would still require 2 syncs.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
ewan.paton
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1219
Location: glasgow, scotland

PostPosted: Wed Jul 07, 2004 4:53 pm    Post subject: Reply with quote

why not just check out www.gentoo-portage.com and sync if you see an update you want, the files dont take up that much space and the dependancy prob is avoided
_________________
Giay tay nam | Giay nam cao cap | Giay luoi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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