Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265931 - metadata cache is broken from (prefix) rsync mirrors
Summary: metadata cache is broken from (prefix) rsync mirrors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: High critical (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-13 02:05 UTC by MATSUI Tetsushi
Modified: 2009-04-19 15:10 UTC (History)
1 user (show)

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 MATSUI Tetsushi 2009-04-13 02:05:59 UTC
I'm using eix-0.15.6.
When I eix-synced this morning, it showed every package as masked.


Reproducible: Didn't try

Steps to Reproduce:
1. eix-sync

Actual Results:  
something like:
[<]   == app-admin/apache-tools ((~)2.2.11!t -> **2.2.8 **2.2.9 **2.2.10 **2.2.11): 
[D]   == app-admin/emacs-updater (1.3@01/21/09; (~)1.3 -> **1.3): 
[D]   == app-admin/eselect (1.0.11-r2@04/13/09; (~)1.0.11-r2 -> **1.0.10 **1.0.11-r2): 
[<]   == app-admin/eselect-blas ((~)0.1 -> **0.1): 



Obviously, this is related to the new masking policy explained in the news 2009-03-29-eapi-prefix-deprecation.
Comment 1 Martin Väth 2009-04-13 07:28:26 UTC
I cannot see how this should be related to EAPI=prefix deprecation:
eix ignores EAPI completely (except of indirectly for the eapi-suffixed ebuilds
or when calling portage to execute the ebuild).

There is mentioning of "prefix keywords".
Are these not stored in KEYWORDS (in the ebuild or metadata/cache/* -
with "eix -l" you can see what eix found) and ARCH (in your profile)?
Comment 2 MATSUI Tetsushi 2009-04-13 08:16:39 UTC
Well, for example, ipython-0.9.1

% eix -l ipython:
[D] dev-python/ipython
     Available versions:  
		**	0.8.4-r1
		**	0.9.1
     Installed versions:  0.9.1(14:10:24 04/13/09)(gnuplot readline -doc -emacs -examples -smp -test -wxwindows)

% grep KEYWORDS ipython-0.9.1.ebuild
KEYWORDS="~amd64-linux ~x86-linux ~x86-macos"

(I'm on x86-macos)

Does the example above show the metadata/cache/ is broken?
If it is the case, please change the summary.
Comment 3 Martin Väth 2009-04-13 10:03:16 UTC
(In reply to comment #2)
> Does the example above show the metadata/cache/ is broken?

It seems so, but just to be sure: Does

grep -n x86 /usr/portage/metadata/cache/dev-python/ipython-0.9.1

show something? If yes, in which line? (The keywords should be in line 9).
Comment 4 MATSUI Tetsushi 2009-04-13 10:43:20 UTC
grep -n x86 $EPREFIX/usr/portage/metadata/cache/dev-python/ipython-0.9.1
prints nothing.  Actually, -0 on line 15 is the only visible content of that file.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-13 14:30:17 UTC
grobian, please look into this. the metadata cache is extremely empty/broken.

# return the number of lines in the cache file
%% wc -l $EPREFIX/usr/portage/metadata/cache/dev-python/ipython-0.9.1
22 /home/jolexa/portage/linux-64/usr/portage/metadata/cache/dev-python/ipython-0.9.1

# return ALL the non blank lines
%% grep -v '^$' $EPREFIX/usr/portage/metadata/cache/dev-python/ipython-0.9.1
-0
%%
# to confirm it is tree wide, try another random package
%% grep -v '^$' $EPREFIX/usr/portage/metadata/cache/app-portage/eix-0.15.6 
-0
%%
Comment 6 Fabian Groffen gentoo-dev 2009-04-13 17:16:39 UTC
Correct, metadata cache is screwed.  Regenerating as we speak.  Hopefully solved within an hour.  Thanks for figuring this out.  It is all related to the EAPI change the tree went through.
Comment 7 Fabian Groffen gentoo-dev 2009-04-13 19:52:25 UTC
metadata is flowing to the rsync slaves now, please reopen if this problem persists after syncing in half an hour from now.
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-14 14:34:04 UTC
(In reply to comment #7)
> metadata is flowing to the rsync slaves now, please reopen if this problem
> persists after syncing in half an hour from now.
> 

Looks good after last night's webrsync.
Comment 9 MATSUI Tetsushi 2009-04-16 08:03:26 UTC
metadata cache is behind the tree, now.
I think some settings are still incomplete.

% ls metadata/cache/sys-apps/portage-*
metadata/cache/sys-apps/portage-2.2.00.13200
metadata/cache/sys-apps/portage-2.2.00.13280
metadata/cache/sys-apps/portage-2.2.00.13286
% ls sys-apps/portage/portage-*
sys-apps/portage/portage-2.2.00.13286-r1.ebuild
sys-apps/portage/portage-2.2.00.13346.ebuild
Comment 10 Fabian Groffen gentoo-dev 2009-04-16 09:33:11 UTC
I'm affraid this is caused by one of the portage ebuilds being EAPI="prefix" which the metadata cache gen doesn't understand.  This ebuild is about to be nuked soon.  Does it cause problems other than performance?
Comment 11 MATSUI Tetsushi 2009-04-18 01:37:07 UTC
If I ignore the performance problem, I have nothing to do with this bug.
Comment 12 Fabian Groffen gentoo-dev 2009-04-19 10:02:07 UTC
metadata seems not to be generated at all, I misunderstood comment #9
Comment 13 Fabian Groffen gentoo-dev 2009-04-19 15:10:58 UTC
metadata was generated in the wrong location, hence never ended up in the rsync tree.