Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 460106

Summary: sys-apps/portage-2.2.0_alpha164: egencache does not use /etc/portage/categories
Product: Portage Development Reporter: Dennis Schridde <dschridde+gentoobugs>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: vapier
Priority: Normal    
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dennis Schridde 2013-03-03 11:39:00 UTC
# ls -l /var/cache/portage/local/cross*
/var/cache/portage/local/cross-i686-w32-mingw32:
total 20
lrwxrwxrwx 1 root root 44 Feb 16 15:36 binutils -> /var/cache/portage/gentoo/sys-devel/binutils
lrwxrwxrwx 1 root root 39 Feb 16 15:36 gcc -> /var/cache/portage/gentoo/sys-devel/gcc
[...]

# egencache --update --repo=local

# ls /var/cache/portage/local/metadata/md5-cache/cross*
ls: cannot access /var/cache/portage/local/metadata/md5-cache/cross*: No such file or directory

egencache should create a metadata cache for the packages that are symlinked into the overlay. (Because e.g. eix-update takes ages for packages without cached metadata.)
Comment 1 Zac Medico gentoo-dev 2013-03-03 16:21:52 UTC
Do you have the cross-i686-w32-mingw32 category listed in /var/cache/portage/local/profiles/categories? The symlinks are not supposed to make a difference.
Comment 2 Dennis Schridde 2013-03-03 21:26:21 UTC
(In reply to comment #1)
> Do you have the cross-i686-w32-mingw32 category listed in
> /var/cache/portage/local/profiles/categories? The symlinks are not supposed
> to make a difference.

No, that file does not even exist. I guess that makes it a sys-devel/crossdev bug, since it is the program that created these symlinks. It appears it only created /etc/portage/categories.
Comment 3 Zac Medico gentoo-dev 2013-03-04 02:32:38 UTC
(In reply to comment #2)
> It appears it only created /etc/portage/categories.

That works for emerge. But egencache ignores local user config files like this, since it's intended to give results that are reproducible regardless of local configuration (like repoman).
Comment 4 SpanKY gentoo-dev 2013-03-06 07:08:03 UTC
(In reply to comment #3)

i could have it maintain a categories file in the overlay itself.  i think that should work.
Comment 5 Dennis Schridde 2013-03-08 06:10:41 UTC
I added a symlink as a temporary workaround:
# ln -s ../../../../../etc/portage/categories /var/cache/portage/local/profiles/