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

Bug 538918

Summary: =app-portage/eix-0.30.4 fails to clean main tree if package of sometime installed atom presents in local overlay
Product: Portage Development Reporter: Sergey S. Starikoff <Ikonta>
Component: Third-Party ToolsAssignee: Martin Väth <martin>
Status: RESOLVED CANTFIX    
Severity: normal CC: axs, proxy-maint, xmw
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sergey S. Starikoff 2015-02-05 11:35:41 UTC
As a proxy maintainer of some packages, I need to keep their test versions in local overlay.
Soon I've find it inconsistent with my system's portage tree:

# eix-update 
Reading Portage settings ..
Building database (/var/cache/eix/portage.eix) ..
[0] 'gentoo' /usr/portage/gentoo/ (cache: sqlite)
     Reading Packages .. Finished
[1] 'local_hdd' /usr/portage/local (cache: sqlite)
     Reading Packages .. Finished
Applying masks ..
Calculating hash tables ..
Writing database file /var/cache/eix/portage.eix ..
Database contains 15785 packages in 164 categories.

# eix -Ie tora
[I] dev-db/tora
     Available versions:  2.1.1 (~)2.1.3-r1 2.1.3-r2 (~)2.1.3-r3{tbz2} (~)3.0.0_pre201409-r2^m[1] (~)3.0.0_pre20140918^m[1] (~)3.0.0_pre20140924^m[1] (~)3.0.0_pre20140928^m[1] (~)3.0.0_pre20140928-r1^m[1] (~)3.0.0_pre20140928-r2^m[1] (~)3.0.0_pre20140929 (~)3.0.0_pre20140929[1] (~)3.0.0_pre20140929-r1[1] (~)3.0.0_pre20141223[1] (~)3.0.0_pre20141223-r1[1] **9999 **9999[1] {debug mysql oci8-instant-client oracle postgres}

[1] "local_hdd" /usr/portage/local

But 2.1.1 version was removed for rather long ago…
Next one:

# eix -I fbtools
[I] app-officeext/ooofbtools
     Available versions:  2.12 ~2.18^p[1] ~2.21^p[1] ~2.24^p[1] ~2.25[1] ~2.26[1] ~2.26-r1 ~2.26-r1[1] ~2.27[1] ~2.28[1] ~2.29^p[1] 2.30 ~2.30^p[1] ~2.31[1] (~)2.32[1] {doc examples OFFICE_IMPLEMENTATION="libreoffice openoffice"}
     Installed versions:  2.32[1](15:42:40 02/04/15)(OFFICE_IMPLEMENTATION="libreoffice -openoffice")
     Homepage:            https://sourceforge.net/projects/fbtools/
     Description:         Extension for converting and processing eBooks in FictionBook2 format with validator

[1] "local_hdd" /usr/portage/local

2.12 was gone away many months ago.
And 2.26-r1 too.

Outdated (removed from main tree, but present in portage's cache) were installed.
Not ever installed (for example =app-officeext/ooofbtools-2.25 or 2.26 from gentoo overlay) are cleaned as expected.

Switching to default (parse) cache method (see bug #538916) changes nothing. Outdated versions still present in eix cache.
Comment 1 Martin Väth 2015-02-05 20:53:29 UTC
Does it help to clear /var/cache/edb/dep/*
Comment 2 Sergey S. Starikoff 2015-02-06 06:20:27 UTC
(In reply to Martin Väth from comment #1)
> Does it help to clear /var/cache/edb/dep/*

After cleaning this cache eix fails to rebuild database using sqlite cache at all:

# eix-update 
Reading Portage settings ..
Building database (/var/cache/eix/portage.eix) ..
[0] 'gentoo' /usr/portage/gentoo/ (cache: sqlite)
     Reading Packages .. 
Can't open cache file /var/cache/edb/dep/usr/portage/gentoo.sqlite
     Reading Packages .. ABORTED!
[1] 'local_hdd' /usr/portage/local (cache: sqlite)
     Reading Packages .. 
Can't open cache file /var/cache/edb/dep/usr/portage/local.sqlite
     Reading Packages .. ABORTED!
Applying masks ..
Calculating hash tables ..
Writing database file /var/cache/eix/portage.eix ..
Database contains 0 packages in 164 categories.
Comment 3 Martin Väth 2015-02-06 13:03:30 UTC
I forgot that the sqlite files also reside in this directory.
You have to recreate them as usual (e.g. with emerge --metadata).
Comment 4 Martin Väth 2015-02-07 08:13:00 UTC
Closing as CANTFIX for the reasons explained in the related bug 538916