Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 702814 - app-portage/eix-0.33.9 eix-sync stopped working after 0.33.9 upgrade
Summary: app-portage/eix-0.33.9 eix-sync stopped working after 0.33.9 upgrade
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-14 08:38 UTC by Marius Stoica
Modified: 2019-12-15 13:00 UTC (History)
4 users (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 Marius Stoica 2019-12-14 08:38:22 UTC
letto@localhost: ~ $ sudo eix-sync 
eix-sync: cannot find eix-functions.sh
letto@localhost: ~ $ 

This happens after the 0.33.9 upgrade.

Reproducible: Always
Comment 1 Laslo Hunhold 2019-12-15 12:08:29 UTC
I can confirm this. The problem is that /usr/bin/eix-sync contains the block

   if eix_funcs=`cat "usr/share/eix/eix-functions" 2>/dev/null`
   then    eval "$eix_funcs"
   else    echo "${0##*/}: cannot find eix-functions.sh" >&2
           exit 1
   fi

As you can see, the slash behind "usr" is missing, which means that it's trying to resolve it as a relative path.
The same problem is present in lines 261 and 277  in eix-functions.sh, which leads me to believe that the preprocessing happening on compile time, which "translates" the paths, is flawed by not adding the slashes in the beginning. Manually adding them in these three locations fixes the problem for me.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-12-15 12:35:23 UTC
This seems to have been fixed without revbump by:

commit 6f827ddcd47d9c69f65a90d5db5c5c86774b733f
Author:     Mikle Kolyada <zlogene@gentoo.org>
AuthorDate: 2019-12-13 08:44:23 +0100
Commit:     Mikle Kolyada <zlogene@gentoo.org>
CommitDate: 2019-12-13 08:44:46 +0100

    app-portage/eix: make ci green
    
    Package-Manager: Portage-2.3.79, Repoman-2.3.16
    Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>


However, I see another issue, so I'll fix that and then revbump to propagate it properly.
Comment 3 Laslo Hunhold 2019-12-15 12:51:41 UTC
(In reply to Michał Górny from comment #2)
> This seems to have been fixed without revbump by:
> 
> commit 6f827ddcd47d9c69f65a90d5db5c5c86774b733f
> Author:     Mikle Kolyada <zlogene@gentoo.org>
> AuthorDate: 2019-12-13 08:44:23 +0100
> Commit:     Mikle Kolyada <zlogene@gentoo.org>
> CommitDate: 2019-12-13 08:44:46 +0100
> 
>     app-portage/eix: make ci green
>     
>     Package-Manager: Portage-2.3.79, Repoman-2.3.16
>     Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
> 
> 
> However, I see another issue, so I'll fix that and then revbump to propagate
> it properly.

Thanks for the quick response! I didn't consider the ebuild itself, as I thought this was a bug in the package itself. I'll do that in the future.
Comment 4 Larry the Git Cow gentoo-dev 2019-12-15 13:00:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=186273c339c1fdbbc5d3621d8be036b31fef40e2

commit 186273c339c1fdbbc5d3621d8be036b31fef40e2
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2019-12-15 12:54:34 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2019-12-15 13:00:04 +0000

    app-portage/eix: Fix sourced file paths
    
    Fix sourced file paths to use EPREFIX rather than EROOT.  ROOT is meant
    to be only temporary, and used only in pkg_*inst/*rm.
    
    The revbump also covers propagating earlier fix to missing slash
    in the ebuild.
    
    Closes: https://bugs.gentoo.org/702814
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 app-portage/eix/{eix-0.33.9.ebuild => eix-0.33.9-r1.ebuild} | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)