Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88535 - Upgrade patches
Summary: Upgrade patches
Status: RESOLVED DUPLICATE of bug 24433
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-09 19:30 UTC by Gavin Lambert
Modified: 2007-01-11 14:51 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 Gavin Lambert 2005-04-09 19:30:14 UTC
When doing an upgrade from one version of a package to another, emerge currently downloads a full source package.  This is fine for small packages, but when the source package is >5Mb or so this can get annoying.

What'd be good is if the Gentoo system automatically kept patches on the server side.  So that instead of a ~10Mb source download you could download a ~1Mb patch.  Like so:
  - you already have foo-1.2.3 installed, WITH its source archive still existing
  - 'emerge --update foo'; finds version 1.4.5 available
  - downloads the patch from 1.2.3 to 1.4.5 (or alternatively multiple patch files for the incremental steps, whichever is easier -- though a single-step patch would be smaller and hence better)
  - unzips the 1.2.3 sources and applies the patch(es)
  - rezips the new source tree, ready for the next update
  - starts building, as normal

For user-friendliness, you should keep patches around until either (a) the upgrade has been existing (and in the stable branch) for more than six months -- people should be updating at least that often anyway), or (b) the size of the patch exceeds the size of the source archive (if you're doing sequential mini-patches, then drop off the oldest ones as the cumulative size starts to exceed the size of the source archive).  Whenever a patch is not available, emerge just downloads the full archive as normal.

This way small archives will never get a patch, and major upgrades would probably still require downloading the full archive (since too many files would have changed, or large binary files changed), but the common case (large archives changing only a few files) the total download size would be significantly reduced.  That should both help users and reduce the load on your servers.

Reproducible: Always
Steps to Reproduce:
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2005-04-09 19:32:02 UTC
This bug is completely a duplicate of countless other bugs.  Please search bugzilla before filing :)
Comment 2 Gavin Lambert 2005-04-09 19:43:31 UTC
I did search.  Nothing similar comes up with "ALL emerge patch" -- what else would you suggest trying?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-04-10 02:46:30 UTC
You probably want to check app-portage/deltup or app-portage/getdelta - both are in portage (still masked). 
Comment 4 Gavin Lambert 2005-04-11 04:57:32 UTC
Thanks -- that sounds exactly like what I was looking for.  I'll check it out :)

There's all sorts of random goodies hidden away in the portage tree, which none of the FAQs or guides tell you about.......
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-04-11 07:00:43 UTC
I can't find a duplicate either although I am sure there is one still open. Either way, GLEP 25 definitely covers it and is being actively worked on.
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 14:50:44 UTC
Reopening for duping
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 14:51:48 UTC

*** This bug has been marked as a duplicate of bug 24433 ***