Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 582762 - app-office/libreoffice-l10n-5.1.2.2::gentoo build fails: cannot open file `/usr/portage/eclass/eutils.eclass' for reading (No such file or directory)
Summary: app-office/libreoffice-l10n-5.1.2.2::gentoo build fails: cannot open file `/u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-11 15:15 UTC by Grygoriy I. Fuchedzhy
Modified: 2016-05-12 08:22 UTC (History)
0 users

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


Attachments
emerge --info '=app-office/libreoffice-l10n-5.1.2.2::gentoo' (he,15.78 KB, text/plain)
2016-05-11 15:15 UTC, Grygoriy I. Fuchedzhy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grygoriy I. Fuchedzhy 2016-05-11 15:15:59 UTC
Created attachment 433976 [details]
emerge --info '=app-office/libreoffice-l10n-5.1.2.2::gentoo'

I have non default place for portage tree: /var/portage. However during build there are attempts to read from /usr/portage/eclass/eutils.eclass which doesn't exist. Seems like /usr/portage is hardcoded somewhere.

/tmp/portage/app-office/libreoffice-l10n-5.1.2.2/temp/environment has following bit mentioning this file:
pre_src_prepare () 
{ 
    if ! type epatch_user > /dev/null 2>&1; then
        local names="epatch_user epatch evar_push evar_push_set evar_pop estack_push estack_pop";
        source <(awk "/^# @FUNCTION: / { p = 0 } /^# @FUNCTION: (${names// /|})\$/ { p = 1; } p { print  }" /usr/portage/eclass/eutils.eclass);
    fi;
    epatch_user;
    for name in $names;
    do
        unset $name;
    done
}

build log:
 * Package:    app-office/libreoffice-l10n-5.1.2.2
 * Repository: gentoo
 * Maintainer: office@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Source unpacked in /tmp/portage/app-office/libreoffice-l10n-5.1.2.2/work
awk: fatal: cannot open file `/usr/portage/eclass/eutils.eclass' for reading (No such file or directory)
/etc/portage/bashrc: line 7: epatch_user: command not found
>>> Preparing source in /tmp/portage/app-office/libreoffice-l10n-5.1.2.2/work ...
>>> Source prepared.
>>> Configuring source in /tmp/portage/app-office/libreoffice-l10n-5.1.2.2/work ...
>>> Source configured.
>>> Compiling source in /tmp/portage/app-office/libreoffice-l10n-5.1.2.2/work ...
>>> Source compiled.
>>> Test phase [not enabled]: app-office/libreoffice-l10n-5.1.2.2

>>> Install libreoffice-l10n-5.1.2.2 into /tmp/portage/app-office/libreoffice-l10n-5.1.2.2/image/ category app-office
/tmp/portage/app-office/libreoffice-l10n-5.1.2.2/temp/environment: line 630: estack_push: command not found
/tmp/portage/app-office/libreoffice-l10n-5.1.2.2/temp/environment: line 630: estack_push: command not found
/tmp/portage/app-office/libreoffice-l10n-5.1.2.2/temp/environment: line 619: estack_pop: command not found
 * ERROR: app-office/libreoffice-l10n-5.1.2.2::gentoo failed (install phase):
 *   eshopts_pop: unbalanced push
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_install
 *   environment, line 1909:  Called get_version_component_range '1-2'
 *   environment, line 1065:  Called get_all_version_components '5.1.2.2'
 *   environment, line  943:  Called eshopts_pop
 *   environment, line  619:  Called die
 * The specific snippet of code:
 *       estack_pop eshopts s || die "${FUNCNAME}: unbalanced push";
 * 
 * If you need support, post the output of `emerge --info '=app-office/libreoffice-l10n-5.1.2.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-office/libreoffice-l10n-5.1.2.2::gentoo'`.
 * The complete build log is located at '/tmp/portage/app-office/libreoffice-l10n-5.1.2.2/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/app-office/libreoffice-l10n-5.1.2.2/temp/environment'.
 * Working directory: '/tmp/portage/app-office/libreoffice-l10n-5.1.2.2/work'
 * S: '/tmp/portage/app-office/libreoffice-l10n-5.1.2.2/work'
[33;01m * [39;49;00mQA Notice: command not found:
[33;01m * [39;49;00m
[33;01m * [39;49;00m	/etc/portage/bashrc: line 7: epatch_user: command not found
[33;01m * [39;49;00m	/tmp/portage/app-office/libreoffice-l10n-5.1.2.2/temp/environment: line 630: estack_push: command not found
[33;01m * [39;49;00m	/tmp/portage/app-office/libreoffice-l10n-5.1.2.2/temp/environment: line 630: estack_push: command not found
[33;01m * [39;49;00m	/tmp/portage/app-office/libreoffice-l10n-5.1.2.2/temp/environment: line 619: estack_pop: command not found
Comment 1 Coacher 2016-05-11 16:58:26 UTC
From your emerge --info:
gentoo
    location: /var/portage

Adjust your path in /etc/portage/bashrc to /var/portage/eclass/eutils.eclass instead. This a problem with your misconfigured system and not a bug.
Comment 2 Grygoriy I. Fuchedzhy 2016-05-12 08:22:32 UTC
Oh, sorry for the noise.