Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 371635 - app-portage/getdelta picks bad source file names
Summary: app-portage/getdelta picks bad source file names
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
Depends on:
Reported: 2011-06-14 16:39 UTC by Xake
Modified: 2021-08-24 12:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Xake 2011-06-14 16:39:06 UTC
I have app-portage/getdelta-0.7.8 installed with the patch applied to make it work with EAPI=2 and higher.


Somehow getdelta thinks it is fun to download a file bigger then what is manifested...

>>> Fetching (69 of 1230) sys-devel/bin86-0.16.18
>>> Downloading ''
Searching for a previously downloaded file in /var/portage/distfiles

We have the following candidates to choose from 

The best of all is ... bind-9.7.3.tar.gz

Checking if this file is OK.

Trying to download bind-9.7.3.tar.gz-bin86-0.16.18.tar.gz.dtu

--2011-06-14 17:58:46--
Resolving (
Connecting to (||:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: [following]
--2011-06-14 17:58:47--
Connecting to connected.
HTTP request sent, awaiting response... 200 OK
Length: 276024 (270K) [application/octet-stream]
Saving to: `bind-9.7.3.tar.gz-bin86-0.16.18.tar.gz.dtu'

68% [======================================================================================================================================================================================================>                                                                                           ] 189,889     5.89K/s  eta 17s     ^

 emerge -pv bin86

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-devel/bin86-0.16.18  143 kB

Total: 1 package (1 reinstall), Size of downloads: 143 kB

So I guess this is really two bugs:
first is that should be better att figuring out what a good candidate for a bin-delta may be.
second is that getdelta should query the server to see if the delta is acctually smaller then the original download.

I think first could be easily implemented fetching ${P} (and maybe check for ${MY_P}) from the environment and compare it to ${FILE}, and if it is a match, us it to figure out what is a comparable match found in ${DISTDIR}.
Second one coulöd be harder as you may not be able to trust the info from the server, and you must have one way to look up the metadata for the ebuild in question to make sure that the dtu acctually is smaller.
Comment 1 Pavel Kozlov 2018-07-02 19:36:05 UTC
Hello! Is getdelta still supported by gentoo? When I try to use it, I see response from "Your request has been queued (Pos. 21154)", and that's it, no delta, next thing wget just downloads the full size file.
Comment 2 Larry the Git Cow gentoo-dev 2021-08-24 12:39:10 UTC
The bug has been closed via the following commit(s):

commit b965153d7733fe0a58bdd54a378cd337e76a420c
Author:     Jakov Smolic <>
AuthorDate: 2021-08-24 12:38:35 +0000
Commit:     David Seifert <>
CommitDate: 2021-08-24 12:38:35 +0000

    app-portage/getdelta: Remove last-rited package
    Signed-off-by: Jakov Smolic <>
    Signed-off-by: David Seifert <>

 app-portage/getdelta/Manifest                   |   1 -
 app-portage/getdelta/files/getdelta-0.7.9.patch | 252 ------------------------
 app-portage/getdelta/getdelta-0.7.9-r2.ebuild   |  46 -----
 app-portage/getdelta/metadata.xml               |   8 -
 profiles/package.mask                           |   5 -
 5 files changed, 312 deletions(-)