One would expect portage, when called to a specific path/foo.ebuild it would find the appropriate digest. There may be other issues caused by this 'symptom.' emerge /usr/portage/app-office/gnucash/gnucash-1.6.6-r1.ebuild Calculating dependencies ...done! >>> emerge app-office/gnucash-1.6.6-r1 to / !!! No digest file found: /usr/portage.local/app-office/gnucash/files/digest-gnucash-1.6.6-r1 Sure, I can copy or symlink the digest in this case, but if a package changes from .tar.gz to .tar.bz2, the digest will change. Thus the 'hack' of cp/symlink isn't a smooth solution to this issue. NOTE: /usr/portage.local/app-office/gnucash/gnucash-1.6.6-r2.ebuild exists and has a digest in /usr/portage.local/app-office/gnucash/files PS: I know... many paths.
Why can't you put the digest in /usr/portage? Why is the digest in one tree and the ebuild in the other anyway?
The digest /IS/ in the same tree as the ebuild. Re-read the bug-report. I was merging from /usr/portage, but emerge was searching for a digest in /usr/portage.local
I was trying to install LTSP (ebuild downloadable from http://http://www.pfm.ee/gentoo/ ) and i copied the ltsp-core directory to /usr/my.portage/net-misc. I ofcourse have /usr/my.portage as PORTDIR_OVERLAY. Now, i can't install it. Consider the following output: gentoo root # emerge -s ltsp Searching... [ Results for search key : ltsp ] [ Applications found : 1 ] * net-misc/ltsp-core [ Masked ] Latest version available: 3.0.7 Latest version installed: [ Not Installed ] Size of downloaded files: [no/bad digest] Homepage: http://www.ltsp.org/ Description: LTSP - Linux Terminal Server Project notice the no/bad digest. There is a digest, and it isn't corrupt since eubild <ebuildfile> digest doesn't solve the problem.If i remove that directory and put it in /usr/portage/net-misc, it says nothing about bad digest. This is using portage 2.0.44
Also of note: ebuilds in PORTDIR_OVERLY, when the SRC_URI is fetched, the files go into /usr/portage/distfiles .. IMHO it makes sence to put keep PORTDIR_OVERLY COMPLETELY seperate from /usr/portage .. distfiles and all.
also emerge -s doesn't display the digest, when the build is in PORTAGE_OVERLAY * media-video/vdr [ Masked ] Latest version available: 1.1.26 Latest version installed: 1.1.26 Size of downloaded files: [no/bad digest] Homepage: sv24/gentoo Description: Vdr
Created attachment 10424 [details, diff] Patch to find digest files in PORTDIR_OVERLAY This patch fixes the wrong behavior of emerge for digestfiles (it used to look only in $PORTDIR). Only tested on my machine. I just took an hour to learn python for this, so if it's ugly feel free to improve it.
*** Bug 13637 has been marked as a duplicate of this bug. ***
Looks good. Accepted for 2.0.48