Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399233 - app-portage/eix-0.23.6 breaks prefix support
Summary: app-portage/eix-0.23.6 breaks prefix support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-18 01:43 UTC by Dan Wallis
Modified: 2012-01-23 13:41 UTC (History)
4 users (show)

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


Attachments
Strace output ("strace eix-update 2>&1 | tee eix-update.strace") (eix-update.strace.bz2,5.19 KB, application/x-bzip2)
2012-01-18 03:30 UTC, Dan Wallis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Wallis 2012-01-18 01:43:23 UTC
I've recently upgraded eix from v0.23.5 to v0.23.6, and I'm now getting an empty catalogue:

fredden@gordo ~ $ eix --version 
eix 0.23.6 (gcc-4.5.3, i686-pc-linux-gnu)
fredden@gordo ~ $ eix-update 
Reading Portage settings ..
Building database (/home/fredden/.gentoo/var/cache/eix) ..
[0] "" /home/fredden/.gentoo/usr/portage/ in /home/fredden/.gentoo (cache: metadata-md5-or-flat)
     Reading category 154|154 (100%) EMPTY!
Applying masks ..
Calculating hash tables ..
Writing database file /home/fredden/.gentoo/var/cache/eix ..
Database contains 0 packages in 154 categories.
fredden@gordo ~ $ 


Reinstalling v0.23.5 gets me a working eix again.
Comment 1 Dan Wallis 2012-01-18 03:30:22 UTC
Created attachment 299201 [details]
Strace output ("strace eix-update 2>&1 | tee eix-update.strace")

Ran a strace as per darkside's recommendation on IRC. It looks like eix trying to open("$EPREFIX$EPREFIX/usr/portage/metadata/cache/..."). Perhaps it's prepending $EPREFIX to $PORTDIR?
Comment 2 Fabian Groffen gentoo-dev 2012-01-18 07:36:42 UTC
since portdir is defined as ${EPREFIX}/usr/portage these days, perhaps that's causing pain here?
Comment 3 Martin Väth 2012-01-18 22:37:55 UTC
I cannot see that eix' behavior concerning appending EPREFIX
should have changed in the last upgrade.
Do you really get a different beahviour if you reemerge eix-0.23.5?

If PORTDIR now is ${EPREFIX}/usr/portage and was previously
/usr/portage, this will break eix, of course.

How is it with overlays? Do you now also have
PORTDIR_OVERLAY="${EPREFIX}/var/lib/layman/..." in the make.conf?

If yes, please try whether setting EPREFIX_PORTAGE_CACHE='' works
for PORTDIR *and* for overlays with and without metadata directories
(This is not the final solution, just a temporary workaround for testing
so that I know which paths should be changed.)
Thanks in advance.
Comment 4 Dan Wallis 2012-01-19 01:24:44 UTC
(In reply to comment #3)
> Do you really get a different behaviour if you reemerge eix-0.23.5?

Yes.

fredden@gordo ~ $ emerge -1 =app-portage/eix-0.23.5 >/dev/null
fredden@gordo ~ $ date; eix --version; eix-update 
Thu Jan 19 14:13:47 NZDT 2012
eix 0.23.5 (gcc-4.5.3, i686-pc-linux-gnu)
Reading Portage settings ..
Building database (/home/fredden/.gentoo/var/cache/eix) ..
[0] "gentoo_prefix" /home/fredden/.gentoo/usr/portage/ (cache: metadata-flat)
     Reading category 154|154 (100%) Finished             
[1] "fredden_dropbox" /home/fredden/Dropbox/gentoo-overlay (cache: parse|ebuild*#metadata-md5#metadata-flat#assign)
     Reading category 154|154 (100%) Finished      
Applying masks ..
Calculating hash tables ..
Writing database file /home/fredden/.gentoo/var/cache/eix ..
Database contains 9441 packages in 154 categories.
fredden@gordo ~ $ eix -uc eix 
[U] app-portage/eix (0.23.5@19/01/12 -> 0.23.6): Search and query ebuilds, portage incl. local settings, ext. overlays, version changes, and more
fredden@gordo ~ $ emerge -1 eix >/dev/null 
fredden@gordo ~ $ date; eix --version; eix-update 
Thu Jan 19 14:19:29 NZDT 2012
eix 0.23.6 (gcc-4.5.3, i686-pc-linux-gnu)
Reading Portage settings ..
Building database (/home/fredden/.gentoo/var/cache/eix) ..
[0] "" /home/fredden/.gentoo/usr/portage/ in /home/fredden/.gentoo (cache: metadata-md5-or-flat)
     Reading category 154|154 (100%) EMPTY!
[1] "fredden_dropbox" /home/fredden/Dropbox/gentoo-overlay (cache: parse|ebuild*#metadata-md5#metadata-flat#assign)
     Reading category 154|154 (100%) Finished      
Applying masks ..
Calculating hash tables ..
Writing database file /home/fredden/.gentoo/var/cache/eix ..
Database contains 5 packages in 154 categories.
fredden@gordo ~ $ eix -I eix 
No matches found.
fredden@gordo ~ $ 


> If yes, please try whether setting EPREFIX_PORTAGE_CACHE='' works

Looks like this does work around the issue:

fredden@gordo ~ $ eix --version; EPREFIX_PORTAGE_CACHE='' eix-update 
eix 0.23.6 (gcc-4.5.3, i686-pc-linux-gnu)
Reading Portage settings ..
Building database (/home/fredden/.gentoo/var/cache/eix) ..
[0] "gentoo_prefix" /home/fredden/.gentoo/usr/portage/ (cache: metadata-md5-or-flat)
     Reading category 154|154 (100%) Finished             
[1] "fredden_dropbox" /home/fredden/Dropbox/gentoo-overlay (cache: parse|ebuild*#metadata-md5#metadata-flat#assign)
     Reading category 154|154 (100%) Finished      
Applying masks ..
Calculating hash tables ..
Writing database file /home/fredden/.gentoo/var/cache/eix ..
Database contains 9441 packages in 154 categories.
fredden@gordo ~ $
Comment 5 Martin Väth 2012-01-19 21:18:14 UTC
Thanks. It was really a regression of eix-0.23.6
This should be fixed in the current eix git master branch (>=eix-0.23.7)
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-01-23 13:41:05 UTC
+*eix-0.23.7 (23 Jan 2012)
+
+  23 Jan 2012; Jeremy Olexa <darkside@gentoo.org> -eix-0.23.6.ebuild,
+  +eix-0.23.7.ebuild:
+  Version bump to fix regressions in last version, fixes bugs 399233, 399117,
+  399451