Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113735 - (app-portage/eix-0.5.0_rc1) update-eix fails when /usr/portage != PORTDIR
Summary: (app-portage/eix-0.5.0_rc1) update-eix fails when /usr/portage != PORTDIR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-27 12:21 UTC by Jeroen Roovers (RETIRED)
Modified: 2005-12-01 00:52 UTC (History)
2 users (show)

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


Attachments
eix-0.5.0_rc1-fix-varsreader.patch (eix-0.5.0_rc1-fix-varsreader.patch,634 bytes, patch)
2005-11-28 20:49 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2005-11-27 12:21:09 UTC
update-eix fails when /usr/portage is empty (and PORTDIR happens to be located 
elsewhere):

epia ~ # update-eix
Reading Portage settings ..
Building database (/var/cache/eix) from scratch ..
[0] /usr/portage/ (cache: flat)
     Reading 100%
[1] /keeps/gentoo/local (cache: none)
     Reading 100%
Applying masks ..
Can't read /usr/portage/profiles/package.mask

Database contains 0 packages in 3 categories.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2005-11-27 12:23:39 UTC
Followed up with:

epia ~ # cd /usr/ ; ln -s /keeps/gentoo/portage portage ; update-eix
Reading Portage settings ..
Building database (/var/cache/eix) from scratch ..
[0] /usr/portage/ (cache: flat)
     Reading 026%

<and so on>
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2005-11-27 12:31:11 UTC
Ok, that was on a system that lacked the /usr/portage directory entirely. If 
that directory is present but empty, update-eix reports no problem at all: it 
just writes an empty database for it and gives no error message or error value.
Comment 3 TGL 2005-11-28 20:48:36 UTC
It seems that the new VarsReader::read() code forgets to update values of
non-incremental vars as it reads them, and thus miss user-defined $PORTDIR. I
will attach a patch which seems to work here.
Comment 4 TGL 2005-11-28 20:49:18 UTC
Created attachment 73778 [details, diff]
eix-0.5.0_rc1-fix-varsreader.patch
Comment 5 Benedikt Böhm (RETIRED) gentoo-dev 2005-11-28 22:17:17 UTC
has been fixed already.. http://dev.croup.de/proj/eix/changeset/43 
Comment 6 TGL 2005-11-29 03:23:00 UTC
Doh! Oh well, at least it confirms this patch was correct... :)
Comment 7 Benedikt Böhm (RETIRED) gentoo-dev 2005-12-01 00:52:14 UTC
0.5.0 is in cvs