Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245762 - eix-0.14.2 uses wrong path to ebuild.sh
Summary: eix-0.14.2 uses wrong path to ebuild.sh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-05 22:10 UTC by Michał Bartoszkiewicz
Modified: 2008-11-06 15:05 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 Michał Bartoszkiewicz 2008-11-05 22:10:40 UTC
update-eix from eix-0.14.2:
embe@MB-MacBook ~ $ update-eix 
Reading Portage settings ..
Building database (/Volumes/Gentoo/var/cache/eix) ..
[0] "gentoo_prefix" /Volumes/Gentoo/usr/portage/ (cache: parse|ebuild*)
     Reading   0%
Could not start /Volumes/Gentoo/Volumes/Gentoo/usr/lib/portage/bin/ebuild.sh
     Reading   0%
Could not properly execute /Volumes/Gentoo/usr/portage//app-admin/apache-tools/apache-tools-2.2.8-r1.ebuild
     Reading   0%
Could not start /Volumes/Gentoo/Volumes/Gentoo/usr/lib/portage/bin/ebuild.sh
     Reading   0%
(and so on)

/Volumes/Gentoo is the value of my EPREFIX. It appears in the path twice instead of once.

Removing the line containing '--with-ebuild-sh-default="${EPREFIX}/usr/$(get_libdir)/portage/bin/ebuild.sh"' from the ebuild fixes this for me (eix seems to automatically prefix the EPREFIX to this path).
Comment 1 Martin Väth 2008-11-06 13:06:33 UTC
(In reply to comment #0)
> Removing the line containing
> '--with-ebuild-sh-default="${EPREFIX}/usr/$(get_libdir)/portage/bin/ebuild.sh"'

This line should be the same as it is in the x86 ebuild:
 --with-ebuild-sh-default="/usr/$(get_libdir)/portage/bin/ebuild.sh"
The "%{EPREFIX_PORTAGE_EXEC}" is automagically prefixed to the passed value.

To avoid a similar misunderstanding for the forthcoming eix-0.14.3:
There will be two further variables PORTAGE_BIN_PATH and PORTAGE_ROOT_PATH
whose defaults can be set; they will just passed "as-is" (without prefixing
something) to the ebuild.sh script. So, as far as I can see, also for their
defaults there should be just the values used which are present when the
ebuild is executed.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-11-06 15:05:05 UTC
Thanks Martin for the explanation, fixed.