Gentoo Archives: gentoo-user

From: Alan Mackenzie <acm@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Missing function, trying to emerge libreoffice-l10n.
Date: Sun, 22 May 2016 10:07:02
Message-Id: 20160522100651.GC2136@acm.fritz.box
In Reply to: [gentoo-user] Missing function, trying to emerge libreoffice-l10n. by Alan Mackenzie
1 Hello, Gentoo.
2
3 On Tue, May 10, 2016 at 01:00:25PM +0000, Alan Mackenzie wrote:
4 > Attempting to emerge app-office/libreoffice-l10n-5.1.2.2, I get the
5 > following failure:
6
7 > * ERROR: app-office/libreoffice-l10n-5.1.2.2::gentoo failed (install
8 > * phase):
9 > * eshopts_pop: unbalanced push
10 > *
11 > * Call stack:
12 > * ebuild.sh, line 133: Called src_install
13 > * environment, line 1905: Called get_version_component_range '1-2'
14 > * environment, line 1061: Called get_all_version_components '5.1.2.2'
15 > * environment, line 939: Called eshopts_pop
16 > * environment, line 615: Called die
17 > * The specific snippet of code:
18 > * estack_pop eshopts s || die "${FUNCNAME}: unbalanced push";
19 > *
20
21 > And then, ....
22
23 > * QA Notice: command not found:
24 > *
25 > * /var/tmp/portage/app-office/libreoffice-l10n-5.1.2.2/temp/environment: line 626: estack_push: command not found
26 > * /var/tmp/portage/app-office/libreoffice-l10n-5.1.2.2/temp/environment: line 626: estack_push: command not found
27 > * /var/tmp/portage/app-office/libreoffice-l10n-5.1.2.2/temp/environment: line 615: estack_pop: command not found
28
29 > That file .../temp/environment is a shell script, and at lines 626 and
30 > 615, it does indeed call estack_p{ush,op}. Those commands, indeed, have
31 > no definition in that file. Can anybody tell me where they should be defined,
32 > and possibly, how I can fix my environment so that they are defined?
33
34 I eventually posted this on the Gentoo bugzilla, and got pointed at the
35 cause. It was the file /etc/portage/bashrc, which I'd put there to
36 enable patches to be made to package sources on emerging. This file
37 came from <https://wiki.gentoo.org/wike//etc/portage/patches>.
38
39 It turns out it did not work properly with EAPI=6, but there is now a
40 corrected version of /etc/portage/bashrc on that wiki page which does.
41
42 :-)
43
44 --
45 Alan Mackenzie (Nuremberg, Germany).