Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6253 - sys-apps/portage-2.0.27 PORTAGE_OVERLAY and digest issues
Summary: sys-apps/portage-2.0.27 PORTAGE_OVERLAY and digest issues
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
: 13637 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-08-09 10:42 UTC by Paul Belt
Modified: 2003-04-21 20:20 UTC (History)
3 users (show)

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


Attachments
Patch to find digest files in PORTDIR_OVERLAY (emerge-bad-digest.patch,690 bytes, patch)
2003-04-09 02:20 UTC, Marius Mauch (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Belt 2002-08-09 10:42:20 UTC
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.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-09-03 16:26:48 UTC
Why can't you put the digest in /usr/portage? Why is the digest in one tree and
the ebuild in the other anyway?
Comment 2 Paul Belt 2002-09-03 17:06:38 UTC
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
Comment 3 Tom Ribbens 2002-11-28 07:04:51 UTC
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
Comment 4 Paul Belt 2002-11-28 09:32:40 UTC
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.
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-03-31 11:41:04 UTC
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
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2003-04-09 02:20:57 UTC
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.
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-04-18 13:35:04 UTC
*** Bug 13637 has been marked as a duplicate of this bug. ***
Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2003-04-21 20:20:27 UTC
Looks good. Accepted for 2.0.48